/*
 * Terminal43 Code - Modern 2026 Design
 * Vibrant, gamified, student-focused
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Light mode - Clean, vibrant */
  --bg: #fafbff;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0f4ff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Primary gradient - Electric purple to blue */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #ede9fe;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);

  /* Secondary - Cyan accent */
  --secondary: #06b6d4;
  --secondary-light: #cffafe;

  /* Accent - Warm orange for energy */
  --accent: #f97316;
  --accent-light: #ffedd5;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

  /* Success - Fresh green */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);

  /* Warning */
  --warning: #f59e0b;
  --warning-light: #fef3c7;

  /* Danger */
  --danger: #ef4444;
  --danger-light: #fee2e2;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(249, 115, 22, 0.15);
}

/* Dark mode */
body.dark {
  --bg: #0c0a1d;
  --bg-card: #151228;
  --bg-elevated: #1e1a36;
  --bg-subtle: #1e1a36;
  --bg-glass: rgba(21, 18, 40, 0.8);

  --text: #f1f5f9;
  --text-secondary: #a5b4c8;
  --text-muted: #64748b;

  --border: #2d2854;
  --border-strong: #3d3670;

  --primary-light: rgba(124, 58, 237, 0.15);
  --secondary-light: rgba(6, 182, 212, 0.15);
  --accent-light: rgba(249, 115, 22, 0.15);
  --success-light: rgba(16, 185, 129, 0.15);
  --warning-light: rgba(245, 158, 11, 0.15);
  --danger-light: rgba(239, 68, 68, 0.15);

  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated gradient background for special sections */
.gradient-bg {
  background: linear-gradient(-45deg, #7c3aed, #2563eb, #06b6d4, #7c3aed);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ============================================
   HEADER
   ============================================ */
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-bar.scrolled {
  box-shadow: var(--shadow-md);
}

.header-logo {
  height: 120px;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.02);
}

.header-nav {
  display: flex;
  gap: 8px;
}

.header-nav a {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.header-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.header-nav a.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-dropdown-trigger:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.nav-dropdown-trigger.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.nav-dropdown-trigger svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.nav-dropdown-menu a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Icon Buttons */
.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.header-icon-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.header-icon-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Notification Badge */
.notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: pulse-badge 2s ease infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .header-icon-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.875rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.btn-accent {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
  color: white;
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

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

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 48px;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* Difficulty badges */
.difficulty-easy {
  background: var(--success-light);
  color: var(--success);
}

.difficulty-medium {
  background: var(--warning-light);
  color: var(--warning);
}

.difficulty-hard {
  background: var(--danger-light);
  color: var(--danger);
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */
.progress-bar {
  height: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--bg-subtle);
}

.progress-ring-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* ============================================
   STATS & METRICS
   ============================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Streak indicator */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.streak-badge .fire {
  font-size: 1.25rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 0.9375rem;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.flash-message.success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.flash-message.error,
.flash-message.danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.flash-message.warning {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.flash-message.info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ============================================
   CODE EDITOR
   ============================================ */
.code-editor {
  background: #1e1e2e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-editor-header {
  background: #2a2a3e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-editor-dots {
  display: flex;
  gap: 8px;
}

.code-editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-editor-dot.red { background: #ff5f57; }
.code-editor-dot.yellow { background: #febc2e; }
.code-editor-dot.green { background: #28c840; }

.code-editor textarea {
  width: 100%;
  min-height: 300px;
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cdd6f4;
  background: transparent;
  border: none;
  resize: vertical;
}

.code-editor textarea:focus {
  outline: none;
}

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

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--bg-subtle);
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: none;
}

.mobile-menu-drawer.active {
  display: block;
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.mobile-menu-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-section:last-child {
  border-bottom: none;
}

.mobile-menu-section-title {
  padding: 8px 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-menu-link:hover {
  background: var(--bg-subtle);
}

.mobile-menu-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-menu-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-menu-link.active svg {
  color: var(--primary);
}

/* Bottom Navigation Bar (phones only) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 0 8px;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 56px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   TASK/PROBLEM DISPLAY
   ============================================ */
.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-title h1 {
  font-size: 1.75rem;
}

.task-actions {
  display: flex;
  gap: 12px;
}

.problem-description {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
}

.problem-description h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--text);
}

.problem-description pre {
  background: var(--bg-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* Test results */
.test-results {
  display: grid;
  gap: 12px;
}

.test-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.test-result.pass {
  border-color: var(--success);
  background: var(--success-light);
}

.test-result.fail {
  border-color: var(--danger);
  background: var(--danger-light);
}

.test-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.test-result.pass .test-icon {
  background: var(--success);
  color: white;
}

.test-result.fail .test-icon {
  background: var(--danger);
  color: white;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

/* Large tablets and small laptops (11-12 inch screens, ~1024px) */
@media (max-width: 1200px) {
  .header-nav {
    gap: 4px;
  }

  .header-nav a,
  .nav-dropdown-trigger {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

/* Tablets (7-10 inch screens, ~768px-1024px) */
@media (max-width: 1024px) {
  .header-nav {
    display: none !important;
  }

  .hamburger-btn {
    display: block !important;
  }

  .header-search {
    display: none;
  }
}

/* Small tablets and large phones (768px) */
@media (max-width: 768px) {
  .mobile-nav {
    display: flex !important;
  }

  .main-content {
    padding-bottom: 80px !important;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .mobile-menu-drawer {
    width: 280px;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  .header-bar {
    padding: 0 12px;
  }

  h1 { font-size: 1.5rem; }

  .card {
    padding: 16px;
  }

  .mobile-nav-item {
    padding: 6px 8px;
    min-width: 48px;
    font-size: 0.5625rem;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Glassmorphism utility */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* Glow effects */
.glow-primary {
  box-shadow: var(--shadow-glow);
}

.glow-accent {
  box-shadow: var(--shadow-glow-accent);
}
