/* ═══════════════════════════════════════════════
   WOOCHAN FAN SITE — GLOBAL DESIGN SYSTEM
   ═══════════════════════════════════════════════
   
   Theme: Dark terminal / retro-futuristic
   Inspired by: designprompts.dev/terminal
   Vibe: Modern, clean, slightly artistic — 
         digital interface meets fan culture
   
   ─── HOW TO UPDATE THE THEME ───
   1. Change CSS custom properties below
   2. All pages update automatically
   3. No page-level color/font overrides allowed
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=VT323&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── Typography ── */
  --font-mono: 'Share Tech Mono', monospace;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'VT323', monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.9375rem;/* 15px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 2rem;      /* 32px */
  --text-3xl: 3rem;      /* 48px */
  --text-4xl: 4.5rem;    /* 72px */

  --leading-tight: 1.15;
  --leading-normal: 1.65;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.12em;
  --tracking-mono: 0.02em;

  /* ── Color Palette — Dark Terminal ── */
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-elevated: #161616;
  --color-surface: #1a1a1a;
  --color-surface-hover: #222222;

  --color-text: #e0e0e0;
  --color-text-secondary: #888888;
  --color-text-muted: #555555;

  /* Primary accent — terminal green */
  --color-accent: #00ff41;
  --color-accent-dim: #00cc33;
  --color-accent-hover: #33ff66;
  --color-accent-subtle: rgba(0, 255, 65, 0.06);
  --color-accent-glow: rgba(0, 255, 65, 0.15);

  /* Secondary accent — warm amber (for highlights, badges) */
  --color-highlight: #ffaa00;
  --color-highlight-soft: rgba(255, 170, 0, 0.08);

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  --color-border-accent: rgba(0, 255, 65, 0.15);

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

  /* ── Layout ── */
  --max-width: 1200px;
  --content-padding: var(--space-5);

  /* ── Cards ── */
  --card-radius: 8px;
  --card-shadow: 0 0 0 1px var(--color-border);
  --card-shadow-hover: 0 0 0 1px var(--color-border-accent), 0 4px 24px rgba(0, 255, 65, 0.04);
  --card-border: 1px solid var(--color-border);
  --card-padding: var(--space-5);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── Nav ── */
  --nav-height: 56px;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --nav-blur: 16px;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ── Subtle scanline overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Selection ── */
::selection {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ── Utility: terminal-style prefix ── */
.terminal-prefix::before {
  content: '> ';
  color: var(--color-accent);
  opacity: 0.6;
}

/* ── Utility: glow text ── */
.glow {
  text-shadow: 0 0 20px var(--color-accent-glow), 0 0 40px rgba(0, 255, 136, 0.05);
}

/* ── Utility: mono text ── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
}
