/* =========================================
   WEEWOO MASTER THEME - V4 (HYBRID)
   Merges "Old Core" stability with "New Design"
========================================= */

/* --- 1. FONTS & RESETS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=JetBrains+Mono:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

:root {
  /* Core Colors (Updated to Black/Yellow) */
  --bg-color: #050505;
  --bg-secondary: #0a0a0c;
  --card-bg: rgba(14, 10, 19, 0.85); /* Glassy dark */
  
  --primary: #F5B301;       /* The Signature Yellow */
  --primary-hover: #e0a100;
  --primary-dim: rgba(245, 179, 1, 0.15);
  
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  
  --border: rgba(255, 255, 255, 0.12);
  --border-focus: #F5B301;

  --glass: rgba(0, 0, 0, 0.7);
  --blur: 16px;

  /* Fonts */
  --font-main: 'Inter', 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Blobs (Restored & Enhanced) */
body::before, body::after {
  content: "";
  position: fixed;
  width: 600px; height: 600px;
  pointer-events: none;
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
}
body::before {
  top: -150px; left: -100px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
}
body::after {
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, #444, transparent 70%);
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* --- 2. LAYOUT CONTAINERS --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 100px 20px 40px; /* Padding for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Helper for admin pages that used .nav at top */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.nav a { color: var(--text-muted); border-bottom: 1px dashed #444; }
.nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- 3. CARDS & SECTIONS --- */
.card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  border-color: rgba(245, 179, 1, 0.3);
}

/* Typography Helpers */
h1 {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 15px;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 800;
  margin: 0 0 15px;
  color: var(--text-main);
}

.text-yellow { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
  display: inline-block;
}

/* --- 4. FORMS & INPUTS --- */
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.input-group {
  position: relative;
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  height: 56px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s;
}

/* Special styling for icon inputs */
.input-field {
  padding-left: 50px !important;
}
.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 0 4px var(--primary-dim);
}

/* --- 5. BUTTONS (Responsive Fixes) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap; /* Prevents text breaking weirdly */
}

.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 179, 1, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 179, 1, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-secondary:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

/* Responsive Button Groups */
.action-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 500px) {
  .action-group {
    flex-direction: column-reverse; /* Stack buttons on mobile */
  }
  .btn {
    width: 100%;
    padding: 18px; /* Larger touch target */
  }
}


/* --- 6. HEXAGON BUTTONS (Homepage) --- */
.hex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Always side-by-side */
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
}

.hex-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hex-btn:hover {
  background: rgba(245, 179, 1, 0.08);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.hex-icon-wrapper {
  width: 64px; height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Shape logic */
.hex-shape {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.hex-shape path { transition: stroke 0.3s; }
.hex-btn:hover .hex-shape path:first-child { stroke: var(--primary); stroke-width: 3; }

.hex-content-icon {
  font-size: 1.8rem;
  color: var(--text-muted);
  z-index: 2;
  transition: 0.3s;
}
.hex-btn:hover .hex-content-icon { color: var(--primary); transform: scale(1.1); }

.hex-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
}
.hex-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: #000;
  padding: 3px 8px;
  border-radius: 4px;
  color: #666;
  border: 1px solid #222;
}

@media (max-width: 400px) {
  .hex-grid { gap: 10px; }
  .hex-btn { padding: 20px 5px; } 
  .hex-title { font-size: 0.9rem; }
}


/* --- 7. PREMIUM BUY BUTTON --- */
.buy-btn-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #F5B301, #FFD700);
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 179, 1, 0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-buy:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(245, 179, 1, 0.5);
}

.btn-buy i { font-size: 1.2rem; }


/* --- 8. TOP NAVIGATION --- */
.top-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  border-radius: 6px;
  transform: skewX(-10deg);
  box-shadow: 0 0 15px rgba(245,179,1,0.3);
}
.brand-name {
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  transition: 0.2s;
}
.nav-btn:hover {
  border-color: var(--primary);
  background: rgba(245,179,1,0.1);
}

/* --- 9. TUTORIAL MODAL --- */
.tutorial-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: none; /* Controlled by JS */
  align-items: center; justify-content: center;
  padding: 20px;
}
.tutorial-box {
  background: #0f0f12;
  border: 1px solid var(--primary);
  width: 100%; max-width: 500px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  position: relative;
}
.tutorial-close {
  position: absolute; top: 15px; right: 20px;
  background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}
.t-header { font-size: 1.4rem; color: #fff; text-transform: uppercase; font-style: italic; margin-bottom: 20px; }
.t-steps { margin-top: 20px; }
.t-step-row { display: flex; gap: 15px; margin-bottom: 20px; }
.t-step-num {
  width: 28px; height: 28px; background: var(--primary); color: #000;
  font-weight: 900; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0;
}
.t-step-content { font-size: 0.9rem; color: #ccc; line-height: 1.5; }
.t-step-content strong { color: #fff; display: block; margin-bottom: 4px; text-transform: uppercase; }

/* --- 10. ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
}