/* ============================================================
   sprout-home.css — template MuSprout (Figma "Mu Sprout" 47-5)
   Carregar SEMPRE depois de home-styles.css: aqui vivem os
   overrides de marca (logo, footer escuro) e as seções novas
   da home (cards, notícias+sidebar, staff, rank em 3 colunas).
   ============================================================ */

:root {
  --font-display: "Cinzel", Georgia, serif;  /* identidade Sprout: Cinzel no lugar da Albertus Nova */
  --sp-red: #ff4655;                     /* nomes da staff (Dono/Master) */
  --sp-card: rgba(24, 24, 27, 0.94);     /* superfície de cartão */
  --sp-card-2: rgba(15, 15, 18, 0.95);
  --sp-line: rgba(255, 255, 255, 0.08);  /* borda sutil padrão do Figma */
  --sp-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

/* ---------- marca ---------- */
.mu-logo-mark {
  width: 145px; height: 36px;
  background: url(assets/sprout-logo-nav.png) 0 50% / contain no-repeat;
}

/* ---------- hero (logo central, sem personagem) ---------- */
/* efeito cortina: o hero fica preso no topo (sticky) e o resto da página
   desliza por cima dele; .sp-main sobe pra camada 1 com fundo próprio */
.sp-main { position: relative; z-index: 1; background: var(--mu-black); }
.mu-footer.dark { position: relative; z-index: 1; }
.sp-hero {
  position: sticky;
  top: 0;
  min-height: min(800px, 96vh);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 46% at 50% 42%, rgba(0, 155, 255, 0.10) 0%, transparent 62%),
    var(--mu-black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 44px;
  padding: 150px 24px 90px;
}
/* vídeo de fundo + véu preto 80% (fills do Figma); conteúdo sobe pra camada 1 */
.sp-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sp-hero-shade {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 0;
}
.sp-hero > *:not(.sp-hero-video):not(.sp-hero-shade) { position: relative; z-index: 1; }
.sp-hero-online {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  border-radius: 18px;
  background: var(--mu-panel);
  box-shadow: inset 0 0 0 1px rgba(24, 24, 26, 0.4);
  font-family: "Inter", var(--font-ui);
  font-weight: 700; font-size: 14px; color: #fff;
  text-transform: uppercase;
}
.sp-hero-online .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mu-green);
  box-shadow: 0 0 0 1px var(--mu-green-ring), 0 0 10px rgba(0, 227, 42, 0.8);
  animation: mu-pulse 1.8s ease-in-out infinite;
}
.sp-hero-online .label { color: rgba(255, 255, 255, 0.5); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.sp-hero-logo {
  width: min(550px, 84vw);
  aspect-ratio: 550 / 320;
  background: url(assets/sprout-logo-hero.png) 50% 50% / contain no-repeat;
  filter: drop-shadow(0 18px 50px rgba(0, 90, 200, 0.30));
}
.sp-hero-ctas { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.sp-btn:active { transform: scale(0.97); }
.sp-btn-blue {
  background: var(--mu-blue);
  border: 2px solid rgba(0, 155, 255, 0.4);
  box-shadow: 0 4px 13px rgba(0, 155, 255, 0.24);
}
.sp-btn-blue:hover { filter: brightness(1.12); box-shadow: 0 4px 22px rgba(0, 155, 255, 0.45); }
.sp-btn-dark {
  background: rgba(29, 29, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.sp-btn-dark:hover { background: rgba(44, 44, 50, 0.9); }

/* seções da home coladas como no Figma (o padrão .mu-section de 96px é grande demais aqui) */
#guia.mu-section { padding: 44px 0 12px; }
#novidades.mu-section { padding: 12px 0; }
#staff.mu-section { padding: 12px 0 48px; }

/* espaçamento compacto entre as seções da home (o padrão da engine é 96px) */
#guia { padding: 44px 0 12px; }
#novidades { padding: 12px 0; }
#castle { padding: 12px 0 44px; }

/* ---------- 3 cards de destaque (Guias / Informações / Donates) ---------- */
.sp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sp-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  min-height: 136px;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(166deg, var(--sp-card) 0%, var(--sp-card-2) 100%);
  box-shadow: inset 0 0 0 1px var(--sp-line), var(--sp-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.sp-card:hover { box-shadow: inset 0 0 0 1px rgba(0, 155, 255, 0.35), var(--sp-shadow); }
@media (hover: none) { .sp-card:hover { transform: translateY(-3px); } }
.sp-card .kicker {
  font-family: var(--font-ui);
  font-weight: 600; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu-muted);
}
.sp-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600; font-size: 23px;
  color: #fff;
}
.sp-card p {
  margin: 0;
  max-width: 56%;
  font-family: var(--font-ui);
  font-weight: 400; font-size: 12.5px; line-height: 1.45;
  color: var(--mu-muted);
}
.sp-card .art {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 44%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  pointer-events: none;
  transition: transform 0.25s ease;
}
.sp-card:hover .art { transform: scale(1.05); }

/* ---------- notícias: carrossel grande + sidebar "Últimas Notícias" ---------- */
.sp-news {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.sp-news-stage {
  position: relative;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--sp-line), var(--sp-shadow);
  cursor: pointer;
}
.sp-news-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease, opacity 0.35s ease;
}
.sp-news-stage:hover .sp-news-bg { transform: scale(1.03); }
.sp-news-stage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 8, 10, 0.9) 100%);
  pointer-events: none;
}
.sp-news-content {
  position: absolute; left: 24px; right: 24px; bottom: 20px;
  z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.sp-news-title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700; font-size: 20px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.sp-news-sub { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.sp-news-read {
  margin-top: 6px;
  align-self: flex-start;
  font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mu-blue);
  background: none; border: none; padding: 0; cursor: pointer;
}
.sp-news-read:hover { text-decoration: underline; }
.sp-news-dots {
  position: absolute; right: 20px; bottom: 20px; z-index: 1;
  display: flex; gap: 7px;
}
.sp-news-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, width 0.2s ease;
}
.sp-news-dots button.on { background: var(--mu-blue); width: 20px; border-radius: 5px; }

.sp-news-side {
  display: flex; flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(166deg, var(--sp-card) 0%, var(--sp-card-2) 100%);
  box-shadow: inset 0 0 0 1px var(--sp-line), var(--sp-shadow);
}
.sp-news-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 12px;
}
.sp-news-side-head .t {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.03em;
  color: var(--mu-blue);
}
.sp-news-side-head .t svg { flex: 0 0 auto; }
.sp-news-side-head a {
  font-weight: 500; font-size: 12px;
  color: var(--mu-muted);
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}
.sp-news-side-head a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.sp-news-list { display: flex; flex-direction: column; gap: 4px; }
.sp-news-item {
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: none; cursor: pointer;
  transition: background 0.18s ease;
}
.sp-news-item:hover { background: rgba(0, 155, 255, 0.14); }
.sp-news-item.on { background: var(--mu-blue); }
.sp-news-item .t {
  font-weight: 600; font-size: 13px; letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e8e8ea;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-news-item.on .t { color: #fff; }
.sp-news-item .d { font-size: 11.5px; color: var(--mu-muted); }
.sp-news-item.on .d { color: rgba(255, 255, 255, 0.75); }

/* ---------- card staff (Dono / Master) ---------- */
.sp-staff {
  padding: 21px;
  border-radius: 16px;
  background: linear-gradient(166deg, var(--sp-card) 0%, var(--sp-card-2) 100%);
  box-shadow: inset 0 0 0 1px var(--sp-line), var(--sp-shadow);
}
.sp-staff-inner {
  position: relative;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--sp-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: url(assets/staff-bg.png) center 30% / cover no-repeat;
}
.sp-staff-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(22, 22, 26, 0.78);
}
.sp-staff-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  width: min(1090px, 100%);
  padding: 25px 50px 0;
}
.sp-staff-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 24px; }
.sp-staff-col .role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.sp-staff-col .nick {
  margin: 0;
  font-family: "Ropa Sans", var(--font-ui);
  font-size: clamp(17px, 1.8vw, 24px); line-height: 1.2;
  text-transform: uppercase;
  color: var(--sp-red);
}
.sp-staff-crown {
  flex: 0 0 auto;
  display: flex;
  padding: 12px;
  border-radius: 5px;
  background: rgba(32, 34, 40, 0.23);
  border: 2px solid var(--sp-line);
}
.sp-staff-crown img { width: 80px; height: 80px; display: block; image-rendering: pixelated; }
.sp-staff-pill {
  position: relative;
  margin-top: 14px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 24, 0.35);           /* vidro: translúcido + blur */
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.35);
  font-family: var(--font-ui);
  font-size: 15px;
  color: #c9c9cf;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.sp-staff-mark { display: flex; }
.sp-staff-mark canvas { width: 80px; height: 80px; image-rendering: pixelated; }

/* ---------- faixa BORA JOGAR / BAIXE AGORA ---------- */
.sp-cta { text-align: left; }
.sp-cta::before { background-image: url(assets/texture-strip.jpg); } /* textura do Figma */
.sp-cta .inner { justify-content: center; gap: clamp(30px, 8vw, 120px); }
.sp-cta .stack { display: flex; flex-direction: column; gap: 2px; }
.sp-cta .bora {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(22px, 3vw, 40px); line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
}
.sp-cta .baixe {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--mu-blue);
  text-shadow: 0 3px 14px rgba(0, 36, 182, 0.55);
}

/* ---------- rankings 3 colunas sobre bg ---------- */
.sp-rank {
  position: relative;
  padding: 80px 24px;
  background: url(assets/rank-bg-sprout.png) center / cover no-repeat;
}
.sp-rank::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--mu-black) 0%, transparent 18%, transparent 82%, var(--mu-black) 100%);
  pointer-events: none;
}
.sp-rank-wrap { position: relative; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 42px; }
.sp-rank-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-rank-head .t {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600; font-size: 16px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.sp-rank-head .t img { width: 24px; height: 28px; }
.sp-viewall {
  padding: 10px 24px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid rgba(44, 44, 48, 0.5);
  font-family: var(--font-ui);
  font-weight: 600; font-size: 15px;
  color: var(--mu-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.sp-viewall:hover { color: #fff; border-color: rgba(0, 155, 255, 0.5); }
.sp-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sp-rank-col {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 12, 14, 0.72);
  box-shadow: inset 0 0 0 1px var(--sp-line), var(--sp-shadow);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sp-rank-col > header {
  padding: 10px 14px;
  background: rgba(5, 5, 6, 0.92);
  text-align: center;
}
.sp-rank-col > header h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.sp-rank-table { padding: 8px 10px 12px; }
.sp-rank-thead, .sp-rank-tr {
  display: grid;
  grid-template-columns: 34px 1fr 64px;
  align-items: center; gap: 8px;
  padding: 7px 10px;
}
.sp-rank-thead {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mu-muted);
}
.sp-rank-thead span:last-child, .sp-rank-tr .score { text-align: right; }
.sp-rank-tr {
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13px; color: #e6e6e8;
}
.sp-rank-tr:nth-child(odd) { background: rgba(255, 255, 255, 0.035); }
.sp-rank-tr .pos { color: var(--mu-muted); }
.sp-rank-tr .nick { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; }
.sp-rank-tr .nick span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-rank-tr .st {
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4a4a50;
}
.sp-rank-tr .st.on { background: var(--mu-green); box-shadow: 0 0 6px rgba(0, 227, 42, 0.8); }
.sp-rank-tr .score { font-weight: 600; }

/* ---------- footer escuro (Figma) ---------- */
.mu-footer.dark { background: #1c1c1f; color: #e4e4e8; }
.mu-footer.dark .mark {
  width: 96px; height: 92px;
  background: url(assets/sprout-icon-white.png) 50% 50% / contain no-repeat;
}
.mu-footer.dark .team .role {
  margin-left: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--mu-blue);
}
.mu-footer.dark h4 { color: #fff; }
.mu-footer.dark ul a { color: #9b9ba2; }
.mu-footer.dark ul a:hover { color: var(--mu-blue); }
.mu-footer.dark .team li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; color: #9b9ba2;
}
.mu-footer.dark .team .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mu-green);
  box-shadow: 0 0 6px rgba(0, 227, 42, 0.7);
}
.mu-footer.dark .social a {
  background: #2a2a2e;
  color: #d6d6da;
}
.mu-footer.dark .social a:hover { background: var(--mu-blue); color: #fff; }
.mu-footer.dark .bottom {
  background: #131316;
  color: #7c7c84;
}

/* ---------- animações ---------- */
/* entrada escalonada: as linhas do ranking e itens de notícia ganham --i via JS
   e só animam quando a seção entra na viewport (classe .live via IntersectionObserver) */
@keyframes sp-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sp-rank-grid.live .sp-rank-tr { animation: sp-fade-up 0.45s ease backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.sp-news-list.live .sp-news-item { animation: sp-fade-up 0.4s ease backwards; animation-delay: calc(var(--i, 0) * 70ms); }
/* tilt 3D sutil nos cards de destaque (JS alimenta --rx/--ry no mousemove) */
@media (hover: hover) {
  .sp-card { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); will-change: transform; }
  .sp-card:hover { --lift: -3px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-rank-grid.live .sp-rank-tr, .sp-news-list.live .sp-news-item { animation: none; }
  .sp-card { transform: none !important; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .sp-cards { grid-template-columns: 1fr; }
  .sp-news { grid-template-columns: 1fr; }
  .sp-rank-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .sp-hero { gap: 32px; padding: 120px 18px 70px; }
  .sp-staff-row { flex-direction: column; gap: 18px; padding: 24px 18px 0; }
  .sp-staff-col { padding-top: 0; }
  .sp-staff-inner { padding-bottom: 22px; }
  .sp-news-stage { min-height: 300px; }
  .sp-card p { max-width: 100%; }
  .sp-card .art { opacity: 0.35; width: 60%; }
}
