/* Theme Variables */
:root {
  --primary-bg: #0f1117;
  --secondary-bg: #1a1d29;
  --card-bg: #1e2130;
  --surface-bg: #23263a;
  --hover-bg: #2a2d42;

  --accent-color: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-glow: rgba(124, 58, 237, 0.3);

  --success-color: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --warning-color: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.3);

  --shadow-color: #7c3aed;
  --shadow-glow: rgba(124, 58, 237, 0.4);
  --gold-color: #fbbf24;

  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --text-accent: #a78bfa;

  --border-color: #2d3142;
  --border-hover: #3d4158;

  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);

  --glass-bg: rgba(26, 29, 41, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Unified Container */
.unified-container {
  max-width: 1800px;
  margin: 2rem auto;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.unified-container:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Top Navigation Bar */
.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 29, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.nav-links a:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #7c3aed;
  color: #a78bfa;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: #8b5cf6;
}

.nav-icon {
  width: 18px;
  height: 18px;
}

/* Common Heading Styles */
h1 {
  margin: 0 0 1rem 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 29, 41, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.mobile-open {
    max-height: 500px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
  }

  body {
    padding: 1rem;
  }

  .unified-container {
    border-radius: 16px;
  }

  h1 {
    font-size: 1.75rem;
    letter-spacing: 0.05em;
  }
}
