/**
 * Immerse - Apple-Inspired Design System
 * Dark theme with light blue accents (Sky/Zinc palette)
 * Based on minimal, modern Apple-like aesthetics
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */

:root {
  /* Colors - Sky + Zinc Palette */
  --sky-300: #7dd3fc;
  --sky-200: #bae6fd;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Semantic Colors */
  --bg-primary: var(--zinc-950);
  --bg-secondary: var(--zinc-900);
  --bg-elevated: var(--zinc-800);
  --text-primary: var(--zinc-50);
  --text-secondary: var(--zinc-300);
  --text-muted: var(--zinc-400);
  --accent-primary: var(--sky-300);
  --accent-secondary: var(--sky-200);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-default: rgba(255, 255, 255, 0.15);

  /* Success/Error */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 6px rgba(125, 211, 252, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* ============================================================================
   BASE RESET & DEFAULTS
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-secondary);
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* ============================================================================
   GRADIENT BACKDROP (Background Effects)
   ============================================================================ */

.gradient-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-backdrop::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.15) 0%, transparent 70%);
  filter: blur(80px);
}

.gradient-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, var(--bg-primary) 100%);
}

/* Grain texture overlay */
.grain-texture {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  border-bottom-color: var(--border-subtle);
  background-color: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.nav-brand a:hover {
  color: var(--accent-primary);
}

.nav-brand a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  ring: 2px solid var(--accent-primary);
  ring-offset: 2px;
  ring-offset-color: var(--bg-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--accent-primary);
  color: var(--zinc-950);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-secondary);
}

/* Secondary Button */
.btn-secondary {
  background-color: rgba(39, 39, 42, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--zinc-800);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--zinc-900);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Large Button */
.btn-large {
  padding: 14px 32px;
  font-size: 15px;
}

/* Full Width Button */
.btn-full {
  width: 100%;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-dot::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: rgba(9, 9, 11, 0.4);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 640px) {
  section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section-eyebrow::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.section-eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.section-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  position: relative;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

.hero-content {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto var(--space-8);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ============================================================================
   FEATURE GRID
   ============================================================================ */

.feature-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: rgba(9, 9, 11, 0.4);
  font-size: 20px;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--zinc-800);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================================
   FLASH MESSAGES
   ============================================================================ */

.flash-messages {
  position: fixed;
  top: 72px;
  right: var(--space-5);
  z-index: 2000;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.flash {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-success {
  background-color: var(--success);
  color: white;
}

.flash-error {
  background-color: var(--error);
  color: white;
}

.flash-warning {
  background-color: var(--warning);
  color: var(--zinc-950);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-10) 0;
  margin-top: var(--space-16);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-brand::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

.footer-brand-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.footer-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .show-mobile {
    display: none !important;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-delay-1 {
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) 60ms;
}

.fade-in-delay-2 {
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) 120ms;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ============================================================================
   AUTH PAGES (Login/Register)
   ============================================================================ */

.auth-section {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.auth-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: blur(12px);
}

.auth-card h2 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.auth-form {
  margin-bottom: var(--space-6);
}

.auth-footer {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.auth-footer p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.auth-footer a {
  color: var(--accent-primary);
  font-weight: 500;
}

.auth-footer a:hover {
  color: var(--accent-secondary);
}

/* ============================================================================
   CURRICULUM PAGE
   ============================================================================ */

.user-progress {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.progress-stat {
  text-align: center;
}

.progress-stat .number {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.progress-stat .label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-section {
  margin-bottom: var(--space-10);
}

.level-header {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-primary);
}

.level-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.level-badge {
  padding: 6px 12px;
  background-color: var(--accent-primary);
  color: var(--zinc-950);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-grid {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.skill-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.skill-card.locked::before {
  content: '🔒';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 16px;
}

.skill-card.completed {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

.skill-card.completed::before {
  content: '✓';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 18px;
  color: var(--success);
  font-weight: bold;
}

.skill-card:not(.locked):hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 16px rgba(125, 211, 252, 0.15);
}

.skill-icon {
  font-size: 28px;
  margin-bottom: var(--space-3);
}

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.skill-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.skill-card.locked .skill-name,
.skill-card.locked .skill-description {
  color: var(--text-muted);
}

.not-authenticated {
  text-align: center;
  padding: var(--space-12);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  margin: var(--space-10) 0;
}

.not-authenticated h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.not-authenticated p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ============================================================================
   DASHBOARD PAGE
   ============================================================================ */

.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.dashboard-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--space-2);
}

.dashboard-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.dashboard-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  backdrop-filter: blur(12px);
}

.dashboard-card h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.dashboard-card .level-display,
.dashboard-card .stat-display,
.dashboard-card .language-display {
  font-size: 36px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.dashboard-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.action-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-default);
}

.action-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.action-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.progress-section {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.progress-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.progress-bar-container {
  margin-top: var(--space-4);
}

.progress-bar {
  height: 12px;
  background-color: var(--zinc-800);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.progress-bar-container p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.recent-activity {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.recent-activity h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list strong {
  color: var(--text-primary);
  font-weight: 500;
}
