/* ============================================================
   Tema do site institucional — Distrito 11
   Carregado DEPOIS do style.css. Troca o background da loja
   (aurora + mini cidade) por um horizonte digital estilo jogo:
   grade em perspectiva, lua digital e névoa.
   ============================================================ */

/* Céu: gradiente profundo com brilho azul no horizonte */
body {
  background-image:
    radial-gradient(ellipse 120% 40% at 50% 100%, rgba(47, 168, 245, 0.16), transparent 70%),
    linear-gradient(180deg, #02040A 0%, #060A16 45%, #0A1226 78%, #0E1B38 100%);
}

/* Remove a gradezinha de circuito do topo (a perspectiva assume a textura) */
body::before { display: none; }

/* ---------- Lua digital ---------- */
.fx-moon {
  position: absolute;
  right: 12vw;
  top: 16vh;
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #EAF2FF 0%, #7FD0FF 45%, #2FA8F5 100%);
  box-shadow:
    0 0 60px rgba(47, 168, 245, 0.35),
    0 0 140px rgba(47, 168, 245, 0.18);
  /* cortes de scanline na metade de baixo, estilo retro-game */
  -webkit-mask-image: linear-gradient(180deg,
    #000 0 55%,
    transparent 55% 58%,
    #000 58% 66%,
    transparent 66% 70%,
    #000 70% 76%,
    transparent 76% 81%,
    #000 81% 86%,
    transparent 86% 92%,
    #000 92% 100%);
  mask-image: linear-gradient(180deg,
    #000 0 55%,
    transparent 55% 58%,
    #000 58% 66%,
    transparent 66% 70%,
    #000 70% 76%,
    transparent 76% 81%,
    #000 81% 86%,
    transparent 86% 92%,
    #000 92% 100%);
  animation: moonBreathe 9s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes moonBreathe {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50%      { transform: translateY(-10px); filter: brightness(1.12); }
}

/* ---------- Grade em perspectiva (chão digital) ---------- */
.fx-gridwrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  overflow: hidden;
  perspective: 480px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26%);
}

.fx-gridplane {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 0;
  height: 300%;
  background-image:
    linear-gradient(rgba(47, 168, 245, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(47, 168, 245, 0.22) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  transform: rotateX(62deg);
  transform-origin: 50% 0%;
  animation: gridRun 2.6s linear infinite;
  will-change: background-position;
}

@keyframes gridRun {
  from { background-position: 0 0; }
  to   { background-position: 0 72px; }
}

/* Linha do horizonte brilhando onde a grade encontra o céu */
.fx-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42vh;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(127, 208, 255, 0.85), transparent);
  filter: drop-shadow(0 0 12px rgba(47, 168, 245, 0.8));
  animation: horizonPulse 5s ease-in-out infinite;
}

@keyframes horizonPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

/* ---------- Névoa deslizando sobre a grade ---------- */
.fx-haze {
  position: absolute;
  bottom: 8vh;
  left: -30%;
  width: 90vw;
  height: 26vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(143, 165, 201, 0.10), transparent 65%);
  filter: blur(40px);
  animation: hazeDrift 26s ease-in-out infinite alternate;
}
.fx-haze-b {
  left: auto;
  right: -25%;
  bottom: 14vh;
  width: 70vw;
  background: radial-gradient(ellipse at center, rgba(47, 168, 245, 0.09), transparent 65%);
  animation-duration: 34s;
  animation-delay: -12s;
}

@keyframes hazeDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(22vw); }
}

/* ---------- Ajustes de estilo próprios do site ---------- */

/* Header integrado ao céu novo */
.site-header {
  background: rgba(2, 4, 10, 0.75);
}

/* ============================================================
   Cartão holográfico do servidor (widget do hero, só no site)
   ============================================================ */

.holo-tilt {
  perspective: 900px;
  animation: holoFloat 7s ease-in-out infinite;
}

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

.holo-card {
  position: relative;
  width: 340px;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(127, 208, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(10, 18, 38, 0.85), rgba(4, 8, 18, 0.75));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 34px rgba(47, 168, 245, 0.20),
    0 24px 60px rgba(0, 0, 0, 0.55);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Brilho holográfico que acompanha o mouse */
.holo-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(240px circle at var(--hx, 70%) var(--hy, 20%),
      rgba(127, 208, 255, 0.22),
      rgba(120, 90, 245, 0.10) 40%,
      transparent 70%),
    linear-gradient(115deg,
      transparent 30%,
      rgba(200, 214, 238, 0.06) 45%,
      rgba(47, 168, 245, 0.08) 55%,
      transparent 72%);
  mix-blend-mode: screen;
}

.holo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(127, 208, 255, 0.22);
}
.holo-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(127, 208, 255, 0.35);
  box-shadow: 0 0 16px rgba(47, 168, 245, 0.35);
}
.holo-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.holo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.holo-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.holo-live {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(76, 217, 167, 0.4);
  background: rgba(76, 217, 167, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  animation: blink 2.2s ease-in-out infinite;
}

.holo-stats {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 0;
}
.holo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.holo-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  width: 84px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.holo-row b {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  width: 62px;
  text-align: right;
  flex-shrink: 0;
}

/* Barras de status: preenchem quando o site aparece */
.holo-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(127, 208, 255, 0.10);
  overflow: hidden;
}
.holo-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7FD0FF);
  box-shadow: 0 0 10px rgba(47, 168, 245, 0.6);
  transition: width 1.1s cubic-bezier(0.3, 0, 0.2, 1);
}
body.ready .holo-bar i { width: var(--v); transition-delay: 0.55s; }

.holo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(127, 208, 255, 0.22);
}
.holo-season {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.holo-season-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
}

@media (prefers-reduced-motion: reduce) {
  .fx-gridplane { animation: none; }
  .holo-tilt { animation: none; }
  .holo-bar i { transition: none; width: var(--v); }
}
