/* =========================================
   1. Theme Variables & Reset
   ========================================= */
:root {
  /* Default: Custom Theme */
  --bg-deep: #2A3A38;
  --bg-gradient: radial-gradient(circle at top center, #508A80 0%, #2A3A38 60%);
  --bg-surface: rgba(42, 58, 56, 0.6);
  --primary: #4ed4b8;
  --primary-glow: rgba(78, 212, 184, 0.3);
  --secondary: #80B5A8;
  --text-main: #FFFFFF;
  --text-muted: #80B5A8;
  --border-light: rgba(255, 255, 255, 0.1);
  --glass: blur(16px) saturate(180%);
  --radius: 24px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 80px;
}

/* Light Mode Override */
[data-theme="light"] {
  --bg-deep: #f0f5f4;
  --bg-gradient: radial-gradient(circle at top center, #ffffff 0%, #f0f5f4 70%);
  --bg-surface: rgba(255, 255, 255, 0.7);
  --primary: #4ed4b8;
  --primary-glow: rgba(78, 212, 184, 0.25);
  --secondary: #508A80;
  --text-main: #2A3A38;
  --text-muted: #508A80;
  --border-light: rgba(42, 58, 56, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* =========================================
   2. Navbar & Mobile Menu
   ========================================= */
.navbar {
  position: fixed;
  top: 0; width: 100%; height: var(--nav-height);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  background: rgba(var(--bg-deep), 0.2);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  width: 90%; max-width: 1200px;
  display: flex; justify-content: space-between; align-items: center;
}

.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; z-index: 1002; }
.logo-img { 
  height: 48px; width: 48px; object-fit: cover; 
  border-radius: 50%; border: 2px solid var(--primary); 
  box-shadow: 0 0 15px var(--primary-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-img:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 25px var(--primary); }
.logo-text { font-weight: 800; font-size: 1.3rem; color: var(--text-main); letter-spacing: -0.5px; }

/* Desktop Nav Links */
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-muted); text-decoration: none; transition: 0.3s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px;
  background: var(--primary); border-radius: 2px;
}

.discord-btn {
  background: #5865F2; color: white !important;
  padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; text-decoration: none; transition: transform 0.2s;
}
.discord-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4); }

.theme-toggle {
  background: transparent; border: 1px solid var(--border-light);
  color: var(--text-main); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
}
.theme-toggle:hover { background: var(--border-light); }

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* =========================================
   3. Main Content & Utilities
   ========================================= */
.main-content { 
  padding-top: 140px; padding-bottom: 60px; flex: 1; 
  width: 90%; max-width: 1000px; margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Glass Cards */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px; margin-bottom: 25px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: rgba(255,255,255,0.15); }

/* Command Styling */
code.cmd { background: rgba(0,0,0,0.3); color: var(--primary); padding: 4px 8px; border-radius: 4px; font-family: monospace; }
.cmd-box { background: rgba(0,0,0,0.2); border-left: 3px solid var(--primary); padding: 15px; border-radius: 6px; margin-top: 10px; }
.cmd-box code { display: block; font-size: 1.1rem; color: var(--text-main); font-weight: 600; }
.cmd-box span { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* Footer */
footer {
  text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.9rem;
  border-top: 1px solid var(--border-light); margin-top: auto;
}
footer a { color: var(--text-muted); margin: 0 10px; text-decoration: none; }
footer a:hover { color: var(--primary); }

/* =========================================
   4. Mobile Responsive Styles
   ========================================= */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%; /* Hidden by default */
    width: 70%; height: 100vh;
    background: var(--bg-deep);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
    backdrop-filter: blur(20px);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  /* When menu is active (JavaScript will add this class) */
  .nav-links.active { right: 0; }

  .nav-link { font-size: 1.2rem; }
  
  /* Fix vertical stacking for setup steps */
  .glass-panel[style*="display: flex"] {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-content { padding-top: 110px; }
  h1 { font-size: 2.8rem !important; }
}
