/* ═══════════════════════════════════════════════════════════════
   Amak Data Research Sandbox — Shared Design System
   IDSN 530 · Assignment 05a
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --bg-primary:    #0d0e14;
  --bg-secondary:  #13151f;
  --bg-card:       rgba(19, 21, 31, 0.85);
  --bg-glass:      rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary:   #e8e9ed;
  --text-secondary: #8b8fa3;
  --text-muted:     #5a5e73;

  /* Accent — blue/green (marketing project) */
  --accent:         #0b69ff;
  --accent-dim:     rgba(11, 105, 255, 0.18);
  --accent-glow:    rgba(11, 105, 255, 0.25);
  --green:          #00e676;
  --green-dim:      rgba(0, 230, 118, 0.15);
  --cyan:           #06b6d4;

  /* Lakers accent — purple/gold */
  --lakers-purple:  #552583;
  --lakers-gold:    #ffd700;
  --lakers-gold-dim: rgba(255, 215, 0, 0.15);
  --lakers-purple-dim: rgba(85, 37, 131, 0.25);

  /* Status */
  --red:     #ff1744;
  --red-dim: rgba(255, 23, 68, 0.15);
  --yellow:  #ffab40;

  /* Shape */
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 24px;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e8e9ed 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  text-decoration: none;
}

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

.nav-links a {
  display: block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER / HERO
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-hero .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero h1 .gradient {
  background: linear-gradient(135deg, #e8e9ed 0%, var(--accent) 60%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════════════════════════ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.glass-card:hover {
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION LABELS
   ═══════════════════════════════════════════════════════════════ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   TABLES — shared base
   ═══════════════════════════════════════════════════════════════ */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(11, 105, 255, 0.3);
}

.badge-gold {
  background: var(--lakers-gold-dim);
  color: var(--lakers-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-wrapper { padding: 32px 16px 60px; }
  .nav-inner { padding: 0 16px; }
  .page-hero { padding: 36px 0 28px; }

  .nav-brand {
    font-size: 0.8rem;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 5px 8px; }
}
