/* ═══════════════════════════════════════════════════════════════
   POKÉMON CHAMPIONS - GRANDMASTER HUD SYSTEM (v2.1)
   Minimalist, High-Tech, High-Contrast Dashboard Aesthetic.
═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #020617;                 /* Deep space blue-black */
  --panel: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  
  --pkc-red: #ef4444;
  --pkc-gold: #fbbf24;           /* Vivid Gold */
  --pkc-blue: #3b82f6;
  --pkc-text: #f8fafc;
  --pkc-mute: #94a3b8;
  
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Bungee', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body.champion-theme {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--pkc-text);
  margin: 0; padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background: Subtle Cyber Grid */
body.champion-theme::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: 
    radial-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* ───────────────────── TOP NAV ───────────────────── */
.pokebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.pokebar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pokeball-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, var(--pkc-red) 50%, #fff 50%);
  border: 2px solid #000;
}
.pokebar-name {
  font-family: var(--font-heading); font-size: 16px; color: #fff;
  letter-spacing: 0.05em; line-height: 1;
}
.pokebar-tag {
  display: block; font-family: var(--font-main); font-size: 9px;
  font-weight: 700; letter-spacing: 0.2em; color: var(--pkc-gold);
  margin-bottom: 3px; line-height: 1;
}

/* nav action buttons (right side) */
.pokebar-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: nowrap;
}
.poke-link {
  font-family: var(--font-main); font-weight: 600; font-size: 13px;
  color: var(--pkc-text); text-decoration: none;
  padding: 7px 12px; border-radius: 6px;
  border: 1px solid transparent;
  transition: 0.15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.poke-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--pkc-gold);
}
.poke-cta {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.05em;
  background: var(--pkc-gold); color: #000;
  padding: 8px 16px; border-radius: 6px;
  text-decoration: none; transition: 0.15s; white-space: nowrap;
  box-shadow: 0 0 16px rgba(251,191,36,0.3);
}
.poke-cta:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(251,191,36,0.5); }

/* Landing-page lang toggle (different shell from app.html's #lang-toggle) */
.lang-toggle.landing {
  display: inline-flex; gap: 2px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  padding: 2px;
}
.lang-toggle.landing button {
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  background: transparent; border: none; color: var(--pkc-mute);
  cursor: pointer; border-radius: 4px; transition: 0.15s;
  font-family: var(--font-main);
}
.lang-toggle.landing button.active {
  background: var(--pkc-gold); color: #000;
}

/* App-mode lang toggle (re-style its existing buttons to match) */
body.champion-theme .lang-toggle:not(.landing) {
  display: inline-flex; gap: 2px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  padding: 2px;
}
body.champion-theme .lang-toggle:not(.landing) button {
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  background: transparent; border: none; color: var(--pkc-mute);
  cursor: pointer; border-radius: 4px; transition: 0.15s;
  font-family: var(--font-main);
}
body.champion-theme .lang-toggle:not(.landing) button.active {
  background: var(--pkc-gold); color: #000;
}

@media (max-width: 700px) {
  .pokebar { padding: 0.7rem 1rem; }
  .pokebar-name { font-size: 13px; }
  .pokebar-tag { font-size: 8px; }
  .poke-link { padding: 6px 8px; font-size: 12px; }
  .hide-sm { display: none !important; }
}

/* Format / availability notice (e.g. "Singles only — Doubles coming soon") */
.format-notice {
  display: inline-block;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid var(--pkc-gold);
  color: var(--pkc-gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.format-notice strong { color: #fff; font-weight: 700; }

/* ───────────────────── HERO SECTION ───────────────────── */
.champ-hero {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem; position: relative;
}
.champ-hero-inner {
  max-width: 1200px; width: 100%;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem;
  align-items: center;
}

.champ-title {
  margin: 0 0 1.5rem; line-height: 1;
}
.champ-title .line {
  display: block; font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 84px);
  text-transform: uppercase;
}
.champ-title .line-zh { font-family: var(--font-main); font-weight: 900; letter-spacing: -0.02em; }
.champ-title .g {
  color: var(--pkc-gold);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.champ-sub {
  font-size: 18px; color: var(--pkc-mute); line-height: 1.6;
  max-width: 500px; margin-bottom: 2.5rem;
}

/* ───────────────────── STAGE & MONS ───────────────────── */
.champ-stage {
  position: relative; height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.stage-ring {
  position: absolute; width: 120%; height: 60px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  bottom: 0; border-radius: 50%; transform: rotateX(75deg);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.stage-mon {
  position: absolute; width: 220px; height: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: mon-float 4s ease-in-out infinite;
}
.stage-mon.center { z-index: 10; width: 280px; }
.stage-mon.left { left: -10%; bottom: 10%; z-index: 5; animation-delay: -1s; }
.stage-mon.right { right: -10%; bottom: 10%; z-index: 5; animation-delay: -2s; }

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

/* ───────────────────── HUD FEED ───────────────────── */
.live-feed-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pkc-gold);
  border-radius: 4px;
  padding: 1rem; margin-bottom: 2rem;
  font-family: monospace; font-size: 12px; color: #a3e635;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.feed-ln { display: block; margin-bottom: 4px; opacity: 0.8; }
.feed-ln.hl { color: var(--pkc-gold); font-weight: bold; }

/* ───────────────────── BUTTONS ───────────────────── */
.champ-cta { display: flex; gap: 1rem; }
.big-btn {
  padding: 1rem 2.5rem; border-radius: 8px;
  font-family: var(--font-heading); font-size: 14px;
  text-decoration: none; transition: 0.2s;
  display: flex; align-items: center; gap: 10px;
}
.big-btn-gold {
  background: var(--pkc-gold); color: #000;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.big-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(251, 191, 36, 0.6); }
.big-btn-ghost {
  background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid var(--border);
}
.big-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ───────────────────── STATS STRIP ───────────────────── */
.trophy-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trophy {
  padding: 2rem; text-align: center; border-right: 1px solid var(--border);
}
.t-num { font-family: var(--font-heading); font-size: 32px; color: var(--pkc-gold); }
.t-lbl { font-size: 11px; color: var(--pkc-mute); text-transform: uppercase; letter-spacing: 0.1em; }

/* ... Rest of components ... */
.poke-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.poke-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; transition: 0.3s;
}
.poke-card:hover { border-color: var(--pkc-gold); transform: translateY(-5px); }
.poke-card-icon { font-size: 24px; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .champ-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .champ-stage { display: none; }
  .champ-sub { margin-left: auto; margin-right: auto; }
  .champ-cta { justify-content: center; }
}
