/* ═══════════════════════════════════════════════════════════════
   hotsite-v2.css — KNSports Hotsite v2
   Estratégia: APENAS classes prefixadas .v2-* para zero conflito
   com main.css. Carregado após main.css no layout.
   ═══════════════════════════════════════════════════════════════ */

/* ── Variáveis ────────────────────────────────────────────────── */
:root {
  --v2-dark:       #0d0f14;
  --v2-dark-mid:   #161921;
  --v2-accent:     #f5c518;
  --v2-accent-alt: #e6b800;
  --v2-text-light: rgba(255,255,255,0.92);
  --v2-text-muted: rgba(255,255,255,0.60);
  --v2-hero-min-h: 480px;
  --v2-hero-max-h: 640px;
  --v2-overlay-with-cover: linear-gradient(
    160deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.48) 50%,
    rgba(0,0,0,0.68) 100%
  );
  --v2-overlay-no-cover: linear-gradient(
    135deg,
    #0d0f14 0%,
    #1a2235 40%,
    #0f1a2e 70%,
    #0d0f14 100%
  );
  --v2-font-display: 'Barlow Condensed', 'Nunito', sans-serif;
  --v2-font-body:    'Barlow', 'Nunito', sans-serif;
}

/* ── HERO WRAPPER ─────────────────────────────────────────────── */
.v2-hero-wrapper {
  position: relative;
  min-height: var(--v2-hero-min-h);
  max-height: var(--v2-hero-max-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Camada de background — capa ou gradiente */
.v2-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

/* Fallback sem capa: gradiente esportivo dark */
.v2-no-cover .v2-hero-bg {
  background-image: var(--v2-overlay-no-cover);
}

/* Leve zoom ao hover para versão com capa */
.v2-has-cover:hover .v2-hero-bg {
  transform: scale(1.02);
}

/* Overlay escuro */
.v2-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.v2-has-cover .v2-hero-overlay {
  background: var(--v2-overlay-with-cover);
}
.v2-no-cover .v2-hero-overlay {
  /* Sem capa: overlay mais sutil — o gradiente já é escuro */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.35) 100%
  );
}

/* Conteúdo do hero */
.v2-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

/* Logo no hero */
.v2-hero-logo {
  max-height: 100px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
}

/* Título principal */
.v2-hero-title {
  font-family: var(--v2-font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  text-shadow: 0 3px 18px rgba(0,0,0,0.6);
}

/* Subtítulo (datas, local) */
.v2-hero-subtitle {
  font-family: var(--v2-font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--v2-text-muted);
  margin: 0 0 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.v2-hero-subtitle span {
  display: inline-block;
  margin: 0 0.3rem;
}
.v2-hero-subtitle i {
  color: var(--v2-accent);
  margin-right: 0.3rem;
}

/* ── CTAs ─────────────────────────────────────────────────────── */
.v2-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}

.v2-btn-primary,
.v2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--v2-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.v2-btn-primary {
  background: var(--v2-accent);
  color: #0d0f14 !important;
  border: 2px solid var(--v2-accent);
}
.v2-btn-primary:hover {
  background: var(--v2-accent-alt);
  border-color: var(--v2-accent-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.35);
  color: #0d0f14 !important;
  text-decoration: none !important;
}

.v2-btn-outline {
  background: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.55);
}
.v2-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── Padrão pontilhado para versão sem capa (background extra) ── */
.v2-no-cover .v2-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245,197,24,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Linha decorativa accent abaixo do hero ───────────────────── */
.v2-hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--v2-accent) 20%,
    var(--v2-accent) 80%,
    transparent 100%
  );
  z-index: 3;
}

/* ── Responsivo ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .v2-hero-wrapper {
    min-height: 340px;
    max-height: 420px;
  }
  .v2-hero-content {
    padding: 2rem 1rem;
  }
  .v2-hero-logo {
    max-height: 72px;
    max-width: 150px;
    margin-bottom: 0.9rem;
  }
  .v2-hero-ctas {
    gap: 0.5rem;
  }
  .v2-btn-primary,
  .v2-btn-outline {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .v2-hero-wrapper {
    min-height: 300px;
    max-height: 380px;
  }
  .v2-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 260px;
    margin: 0 auto;
  }
  .v2-btn-primary,
  .v2-btn-outline {
    justify-content: center;
  }
}

/* ── Ajuste leve em #conteudo para remover padding-top quando hero existe ── */
.v2-page-with-hero #conteudo > .row {
  padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HOME v2 — corrige o container Bootstrap que envolve o content
   Estrutura real do app.blade.php:
     #conteudo.container-fluid (background:#fff; padding:20px)
       div.row (display:flex; margin:-15px)
         @yield('content') ← nosso HTML vai aqui dentro

   Estratégia:
   1. Neutralizar background branco e padding do #conteudo
   2. Fazer hero e jogos escaparem da div.row
   3. Restaurar layout do #container-home
   ═══════════════════════════════════════════════════════════════ */

/* Ocultar #pre-menu */
body.v2-home #pre-menu { display: none !important; }

/* 1. Neutralizar #conteudo e div.row internos */
body.v2-home #conteudo {
  background: #0d0f14 !important;
  padding: 0 !important;
}
body.v2-home #conteudo > .row {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important; /* cancela o flex do Bootstrap row */
  width: 100% !important;
}

/* 2. Hero — full width */
body.v2-home .v2-hero-wrapper {
  min-height: 560px;
  max-height: 760px;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 3. #home-jogos — full width */
body.v2-home #home-jogos {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  position: relative !important;
}

/* 4. #container-home — restaura o flex wrap do main.css */
body.v2-home #container-home {
  display: flex !important;
  flex-flow: row wrap !important;
  position: relative !important;
  width: 100% !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

/* 5. #home-noticias e #cards-home — preserva widths do main.css */
body.v2-home #home-noticias {
  padding-right: 1rem !important;
  /* width 66.67% vem do main.css */
}
body.v2-home #cards-home {
  padding-left: 0.5rem !important;
  /* width 33.3% vem do main.css */
}

/* Sem notícias: sidebar ocupa tudo */
body.v2-home #cards-home.v2-sem-noticias {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  padding: 0.5rem !important;
}
body.v2-home #cards-home.v2-sem-noticias .card-lateral {
  flex: 1 1 280px !important;
  max-width: 420px !important;
}

/* ── Stats no Hero ──────────────────────────────────────────── */
.v2-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 0.75rem 2rem;
  max-width: 380px;
  width: 100%;
}
.v2-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.v2-hero-stat-value {
  font-family: 'Barlow Condensed', 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.v2-hero-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 0.1rem;
}
.v2-hero-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── Countdown no Hero ──────────────────────────────────────── */
.v2-hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.6rem 0 1.2rem;
}
.v2-hero-cd-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.v2-hero-cd-digits {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.v2-cd-unit {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.v2-cd-unit b {
  font-family: 'Barlow Condensed', 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #f5c518;
  line-height: 1;
  min-width: 1.3rem;
  text-align: center;
}
.v2-cd-unit small {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.v2-cd-sep {
  font-size: 1rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  margin: 0 0.05rem;
  line-height: 1;
}

/* ── Cards de jogo: textos visíveis ────────────────────────── */
body.v2-home #home-jogos .nome-time,
body.v2-home #home-jogos .adv p { color: rgba(255,255,255,0.92) !important; }
body.v2-home #home-jogos .hora-jogo { color: #fff !important; }
body.v2-home #home-jogos .nome-modalidade,
body.v2-home #home-jogos .nome-jogo { color: #f5c518 !important; }
body.v2-home #home-jogos .versus { color: #ffffff !important; }
body.v2-home #home-jogos a { color: #f5c518 !important; }

/* ── Notícias ───────────────────────────────────────────────── */
.v2-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.8rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  margin-bottom: 0.8rem;
}
.v2-section-title {
  font-family: 'Barlow Condensed', 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}
.v2-section-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f5c518 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.v2-noticia-card {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.v2-noticia-card:last-child { border-bottom: none; }
.v2-noticia-img { flex-shrink: 0; width: 90px; }
.v2-noticia-img img { width: 90px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.v2-noticia-body { flex: 1; min-width: 0; }
.v2-noticia-data { font-size: 0.68rem; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 0.15rem; }
.v2-noticia-titulo {
  font-family: 'Barlow Condensed', 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  white-space: normal;
}
.v2-noticia-texto {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.v2-noticia-texto img,
.v2-noticia-texto figure { display: none !important; }

/* ── card-lateral: visual dark ──────────────────────────────── */
body.v2-home .card-lateral {
  background: #1c2030 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  color: rgba(255,255,255,0.85) !important;
}
body.v2-home .card-lateral .titulo-card {
  font-family: 'Barlow Condensed', 'Nunito', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.45) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding-bottom: 0.4rem !important;
  margin-bottom: 0.6rem !important;
}
body.v2-home .card-lateral .nome-modalidade,
body.v2-home .card-lateral .hora-jogo { color: rgba(255,255,255,0.45) !important; font-size: 0.72rem !important; }
body.v2-home .card-lateral .nome-time { color: rgba(255,255,255,0.85) !important; font-size: 0.82rem !important; }
body.v2-home .card-lateral .versus { color: rgba(255,255,255,0.6) !important; }
body.v2-home .card-lateral a { color: #f5c518 !important; font-size: 0.78rem !important; }
body.v2-home .card-lateral a.rodape-card p {
  color: #f5c518 !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  padding-top: 0.4rem !important;
}
body.v2-home .card-lateral table { color: rgba(255,255,255,0.8) !important; font-size: 0.82rem !important; }
body.v2-home .card-lateral table th { color: rgba(255,255,255,0.4) !important; border-color: rgba(255,255,255,0.06) !important; font-size: 0.72rem !important; }
body.v2-home .card-lateral table td { border-color: rgba(255,255,255,0.05) !important; }
body.v2-home .card-lateral .vazio { color: rgba(255,255,255,0.35) !important; border-color: rgba(255,255,255,0.07) !important; font-size: 0.82rem !important; }
body.v2-home .card-lateral .nome { color: rgba(255,255,255,0.85) !important; }
body.v2-home .card-lateral .numero { color: rgba(255,255,255,0.5) !important; }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  body.v2-home .v2-hero-wrapper { min-height: 420px; max-height: 580px; }
  .v2-hero-stats { max-width: 300px; padding: 0.6rem 1rem; }
  .v2-hero-stat-value { font-size: 1.6rem; }
  .v2-cd-unit b { font-size: 1.2rem; }
  .v2-hero-countdown { flex-wrap: wrap; justify-content: center; }
  body.v2-home #home-noticias { padding-right: 0 !important; }
  body.v2-home #cards-home { padding-left: 0 !important; }
}
