/* ============================================================
   static/css/main.css
   StarcraftGO — estilos base, tipografía, fondo animado, hovers
   ============================================================ */

:root {
  --sgo-bg: #0A0A0A;
  --sgo-panel: #131313;
  --sgo-border: #2A2A2A;
  --sgo-gold: #E3A82E;
  --sgo-gold-border: #3A3221;
  --sgo-text: #F0F0F0;
  --sgo-muted: #6B6B6B;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--sgo-bg);
  font-family: 'Inter', sans-serif;
  color: var(--sgo-text);
}

/* ---------- Animaciones ---------- */
@keyframes sgoPan {
  0%   { transform: scale(1.06) translate(0, 0); }
  50%  { transform: scale(1.14) translate(-2.2%, -1.6%); }
  100% { transform: scale(1.06) translate(0, 0); }
}
@keyframes sgoFlicker {
  0%, 100% { opacity: 0.5; }
  46% { opacity: 0.38; }
  50% { opacity: 0.56; }
  54% { opacity: 0.42; }
  78% { opacity: 0.5; }
}
@keyframes sgoPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(227, 168, 46, 0.45); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(227, 168, 46, 0); }
}

/* ---------- Fondo animado (home.html lo monta con estas clases) ---------- */
.sgo-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--sgo-bg);
}
.sgo-bg-anim-1 {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 60% 45% at 28% 30%, rgba(120, 120, 120, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 74% 62%, rgba(150, 150, 150, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 55% at 55% 15%, rgba(90, 90, 90, 0.1), transparent 60%),
    linear-gradient(200deg, #121212 0%, #0A0A0A 55%, #0e0e0e 100%);
  animation: sgoPan 26s ease-in-out infinite;
  filter: blur(3px) contrast(1.08);
}
.sgo-bg-anim-2 {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px);
  animation: sgoFlicker 6s steps(12) infinite;
}
.sgo-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.68) 38%, rgba(10, 10, 10, 0.92) 100%);
}

/* ---------- Esquinas doradas (marco decorativo reutilizable) ---------- */
.sgo-corner {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.sgo-corner--tl { top: -2px; left: -2px; border-top: 2px solid var(--sgo-gold); border-left: 2px solid var(--sgo-gold); }
.sgo-corner--tr { top: -2px; right: -2px; border-top: 2px solid var(--sgo-gold); border-right: 2px solid var(--sgo-gold); }
.sgo-corner--bl { bottom: -2px; left: -2px; border-bottom: 2px solid var(--sgo-gold); border-left: 2px solid var(--sgo-gold); }
.sgo-corner--br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--sgo-gold); border-right: 2px solid var(--sgo-gold); }
.sgo-corner--sm { width: 12px; height: 12px; }
.sgo-corner--md { width: 14px; height: 14px; }
.sgo-corner--lg { width: 18px; height: 18px; }
.sgo-corner--xl { width: 20px; height: 20px; }

/* ---------- Indicador Twitch (nav) ---------- */
.sgo-live-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sgo-gold);
  animation: sgoPulse 1.8s ease-in-out infinite;
}
.sgo-offline-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2A2A2A;
}

/* ---------- Hovers (antes style-hover inline) ---------- */
.sgo-nav-link:hover { color: var(--sgo-gold); }

.sgo-race-card { transition: border-color 0.2s ease; }
.sgo-race-card:hover { border-color: var(--sgo-gold); }
.sgo-race-card:hover .sgo-race-title { letter-spacing: 0.2em; }
.sgo-race-card:hover .sgo-race-img {
  transform: translateX(-14px);
  filter: brightness(1.4) saturate(1.15) drop-shadow(0 0 24px rgba(227, 168, 46, 0.5));
}
.sgo-race-title { transition: letter-spacing 0.35s ease; letter-spacing: 0.04em; }

.sgo-article-card { transition: border-color 0.2s ease; }
.sgo-article-card:hover { border-color: var(--sgo-gold); }

.sgo-pager-link { transition: background 0.15s ease; }
.sgo-pager-link:hover { background: rgba(227, 168, 46, 0.14); }

.sgo-social-btn { transition: filter 0.2s ease; }
.sgo-social-btn:hover { filter: brightness(1.15); }

.sgo-icon-btn { transition: filter 0.2s ease; }
.sgo-icon-btn:hover { filter: brightness(1.2); }

.sgo-footer-link { transition: color 0.15s ease; }
.sgo-footer-link:hover { color: var(--sgo-gold); }