/* ==========================================================
   LAYOUT.CSS — Versão 14.0 Master (Universal Architecture)
   * Objetivo: Unificar estrutura institucional, blog e módulos especiais.
   * Conteúdo: Ticker, Heroes, Contact Grid, Videos e Futebol.
   * Ajuste V14.0: Reset Global de Box-Sizing e Trava de Overflow.
   ========================================================== */

/* [ATUALIZAÇÃO] Reset global para impedir vazamento lateral em todo o site */
* { box-sizing: border-box; }

html, body {
    overflow-x: hidden; 
    width: 100%;
}

:root {
    --header-height: 85px;
    --ticker-height: 40px; /* Altura da barra de notícias */
}

/* ----------------------------------------------------------
   1. ESTRUTURA MESTRE & ESPAÇAMENTOS
---------------------------------------------------------- */
body {
    /* Garante que o conteúdo não fique escondido atrás do Header Fixo */
    padding-top: var(--header-height); 
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Seção Padrão (Respiro) */
.section-padding { padding: 80px 0; }
.section-padding-bottom { padding-bottom: 80px; }

/* Fundo Alternado (Ritmo Visual) */
section:nth-of-type(even) { background-color: #f8fafc; }

/* Layout Estreito (Para textos longos/Legal) */
.narrow-layout { max-width: 900px; margin: 0 auto; }

/* Centralização de Texto Auxiliar */
.text-center { text-align: center; }

/* Cabeçalhos de Seção */
.section-header { margin-bottom: 50px; position: relative; }
.section-title { 
    margin-bottom: 15px; font-size: clamp(1.8rem, 4vw, 2.4rem); 
    font-weight: 800; color: var(--bg-dark); letter-spacing: -1px;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ----------------------------------------------------------
   2. TOP TICKER BAR (BREAKING NEWS)
   * Barra preta no topo (acima do header)
---------------------------------------------------------- */
.top-ticker-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--ticker-height);
    background: #0f172a;
    color: #fff;
    z-index: 10000000; /* Acima do Header */
    display: flex; align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(0);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Quando o ticker existir, o body desce */
body.has-ticker {
    padding-top: calc(var(--header-height) + var(--ticker-height));
}
body.has-ticker .site-header {
    top: var(--ticker-height); /* Header desce para dar lugar ao ticker */
}

/* ----------------------------------------------------------
   3. PAGE HERO SYSTEM (BANNERS INTERNOS)
   * Usado em: Sobre, Contato, Parcerias, Termos.
---------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 100px 0 80px;
    background-size: cover; background-position: center;
    color: #fff; text-align: center;
    margin-top: -1px; overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Overlay Dark */
    backdrop-filter: blur(5px); z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }

.hero-title { font-size: 3rem; margin-bottom: 20px; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }

/* --- VARIAÇÕES DE TEMA (MODIFIERS) --- */
.contact-hero { background-image: linear-gradient(135deg, #0d6efd 0%, #0043ce 100%); }
.partner-hero { background-image: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }
.about-hero   { background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.legal-hero   { background: #334155; }

/* Badges de Topo */
.badge-support, .badge-business, .badge-legal {
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; 
    text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}
.badge-support { background: rgba(255,255,255,0.2); }
.badge-business { background: #fbbf24; color: #000; }
.badge-legal { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

/* ----------------------------------------------------------
   4. PÁGINA DE CONTATO (GRID & FORM)
---------------------------------------------------------- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start;
}

.info-card, .form-wrapper {
    background: #fff; padding: 40px; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
}

.icon-main { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

.contact-methods { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 25px; }
.contact-methods li { display: flex; align-items: center; gap: 15px; }

.method-icon {
    width: 45px; height: 45px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem;
}
.method-text strong { display: block; font-size: 0.9rem; color: #1e293b; }
.method-text span { font-size: 0.9rem; color: #64748b; }

/* Formulário */
.contato-form .form-group { margin-bottom: 20px; }
.contato-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }

.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}

.contato-form input, .contato-form select { padding-left: 45px; height: 50px; width: 100%; border-radius: 8px; border: 1px solid #e2e8f0; }
.contato-form textarea { padding: 15px; width: 100%; border-radius: 8px; border: 1px solid #e2e8f0; resize: vertical; }

.btn-submit {
    width: 100%; height: 55px; background: var(--primary); color: #fff;
    border-radius: 8px; font-weight: 700; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s;
}
.btn-submit:hover { background: #0056b3; transform: translateY(-2px); }

/* ----------------------------------------------------------
   5. PARCERIAS & SOBRE (GRIDS DE BENEFÍCIOS)
---------------------------------------------------------- */
.benefits-grid, .tech-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 40px;
}

.benefit-card, .tech-card {
    background: #fff; padding: 40px 30px; border-radius: 16px;
    border: 1px solid #e2e8f0; text-align: center; transition: 0.3s;
}
.benefit-card:hover, .tech-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }

.benefit-icon, .tech-icon {
    width: 70px; height: 70px; background: #e0f2fe; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 25px;
}

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.stat-card { background: #fff; padding: 30px; border-radius: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--primary); }

/* CTAs */
.partner-cta, .cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0043ce 100%);
    padding: 80px 0; text-align: center; color: #fff; margin-top: 60px;
}
.btn-cta, .btn-cta-white {
    background: #fff; color: var(--primary); padding: 15px 40px; border-radius: 50px;
    font-weight: 800; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-cta:hover { transform: scale(1.05); }

/* ----------------------------------------------------------
   6. PÁGINA LEGAL (LEITURA FOCADA)
---------------------------------------------------------- */
.legal-card {
    background: #fff; padding: 40px; border-radius: 16px;
    margin-bottom: 30px; border: 1px solid #e2e8f0;
}
.legal-card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; color: #0f172a; }
.legal-card ul { padding-left: 20px; margin-top: 15px; color: #64748b; }
.highlight-card { background: #fffbeb; border-color: #fcd34d; }

/* ----------------------------------------------------------
   7. BLOCO DE VÍDEOS (GALERIA CINEMATOGRÁFICA)
---------------------------------------------------------- */
.video-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: #0f172a; border-radius: 12px; padding: 10px; transition: transform 0.3s ease;
}
.video-card:hover { transform: translateY(-5px); }

.video-card video, .video-card iframe {
    width: 100%; aspect-ratio: 16/9; background: #000;
    border-radius: 8px; object-fit: cover; border: none;
}
.video-card h4 { color: #fff; padding: 15px 5px; font-size: 1rem; text-align: center; margin: 0; }

/* ----------------------------------------------------------
   8. LAYOUT FUTEBOL (PLACAR REAL)
---------------------------------------------------------- */
.match-header-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #333 100%);
    color: #fff; border-radius: 15px; padding: 30px; margin-bottom: 30px;
    display: flex; justify-content: space-around; align-items: center;
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-top: 4px solid var(--primary);
}

.match-score {
    font-size: 3.5rem; font-weight: 900; letter-spacing: 5px;
    color: var(--primary); text-shadow: 0 0 15px rgba(13, 110, 253, 0.5); padding: 0 20px;
}

.match-stats-area {
    background: #fff; padding: 25px; border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 30px;
}
.stat-bar { height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.stat-fill { height: 100%; background: var(--primary); }

/* ----------------------------------------------------------
   9. ANÚNCIOS & RESPONSIVIDADE
---------------------------------------------------------- */
.ad-wrapper {
    display: flex; justify-content: center; align-items: center; margin: 60px auto;
    background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px;
    padding: 20px; position: relative; min-height: 100px;
}
.ad-wrapper::before {
    content: "PUBLICIDADE"; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    font-size: 0.65rem; font-weight: 800; color: #94a3b8; letter-spacing: 2px;
}

@media (max-width: 992px) {
    .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .form-wrapper { padding: 30px 20px; }
    .hero-title { font-size: 2rem; }
    .match-header-box { flex-direction: column; gap: 15px; }
}
