
/* ========================================================
   🎨 RESET & CORES DE IDENTIDADE CORPORATIVA
   ======================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-main: #0a160f;
    --bg-header: rgba(13, 31, 21, 0.96);
    --primary: #FFA500;
    --primary-hover: #e69500;
    --text-white: #FFFFFF;
    --text-muted: #c4cfc8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --bg-card: #0f261a; /* 🌟 Corrigido: Fundo sólido para o formulário aparecer em destaque */
    --border-color: rgba(255, 255, 255, 0.08);
}
body {
    font-family: 'Poppins', sans-serif; /* */
    background-color: var(--bg-main); /* */
    color: var(--text-white); /*[cite: 3] */
    line-height: 1.6; /*[cite: 3] */
    padding-top: 190px; /* ⬅️ Aumentado aqui para empurrar o banner para baixo e dar respiro */
    -webkit-font-smoothing: antialiased; /*[cite: 3] */
}

/* ========================================================
   🏢 HEADER & SISTEMA DE SELEÇÃO POR ABAS
   ======================================================== */
/* ========================================================
   🏢 AJUSTE DO HEADER E LOGO (VIRTUALIZAÇÃO PREMIUM)
   ======================================================== */
header {
    background: var(--bg-header);
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* ========================================================
   🏢 SUPER DESTAQUE DA LOGO (CORRIGINDO MARGENS DA IMAGEM)
   ======================================================== */
.logo { 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -15px;    /* Puxa a logo um pouco para cima para aproveitar o topo */
    margin-bottom: -10px; /* Reduz o espaço vazio abaixo dela */
    width: 100%;
}

.logo img { 
    width: 180px;        /* Força a largura ideal para o desenho aparecer grande */
    height: auto;        /* Deixa a altura se ajustar proporcionalmente */
    object-fit: contain;
    transform: scale(1.3); /* Dá um "zoom" manual no desenho, ignorando as bordas invisíveis */
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.6)); /* Sombra marcante para dar leitura */
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse para dar um toque dinâmico */
.logo img:hover {
    transform: scale(1.35);
}


.tab-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;              /* Reduzido o espaço entre os botões para economizar área */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;       /* Caso a tela diminua, os botões quebram linha em vez de cortar */
    padding: 0 10px;
}
.tab-menu::-webkit-scrollbar { display: none; }

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.tab-btn:hover { color: var(--primary); background: rgba(255, 255, 255, 0.08); }
.tab-btn.active {
    background-color: var(--primary);
    color: #0c1a12;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.35);
}

/* ========================================================
   📢 HERO BANNER PRINCIPAL
   ======================================================== */
.hero-banner {
    background: linear-gradient(135deg, #0f261a 0%, #173b28 100%);
    padding: 45px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero-banner h2 { font-size: 2.3rem; margin-bottom: 15px; font-weight: 800; line-height: 1.2; }
.hero-banner h2 span { color: var(--primary); }
.hero-banner p { color: var(--text-muted); font-size: 1.1rem; max-width: 780px; margin: 0 auto; }
.badge {
    background-color: rgba(255, 165, 0, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

/* ========================================================
   📊 SEÇÃO DE ANTES/DEPOIS (COMPARATIVO VISUAL COM AS DUAS IMAGENS)
   ======================================================== */
.comparison-section { margin-bottom: 50px; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 0.95rem; }

.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.comparison-box {
    background: rgba(255, 255, 255, 0.01);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.box-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.status-bullet { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.danger-zone { border-top: 3px solid #ff4a4a; }
.danger-zone .status-bullet { background: #ff4a4a; }
.danger-zone h4 { color: #ff6b6b; font-weight: 600; font-size: 1.1rem; }

.success-zone { border-top: 3px solid #00ff66; }
.success-zone .status-bullet { background: #00ff66; }
.success-zone h4 { color: #2ecc71; font-weight: 600; font-size: 1.1rem; }

.box-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; min-height: 50px; }

.img-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: #000;
}
.comparison-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.comparison-box:hover .comparison-img {
    transform: scale(1.03);
}

/* ========================================================
   📦 GRID DE CARDS E CONTEÚDOS DAS ABAS
   ======================================================== */
.main-content { max-width: 1200px; margin: 0 auto; padding: 20px; }
.tab-content { display: none; animation: smoothFadeIn 0.4s ease forwards; }
.tab-content.active { display: block; }

@keyframes smoothFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.card {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 165, 0, 0.2);
}
.card-icon { font-size: 2rem; margin-bottom: 15px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ========================================================
   📌 CUSTOMIZAÇÃO DAS ABAS COMPLEMENTARES (CATEGORIAS/POSIÇÕES)
   ======================================================== */
/* Categorias */
.year-ref { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; }
.cat-badge {
    background: rgba(255,255,255,0.06);
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}
.cat-badge.premium { background: rgba(255, 165, 0, 0.1); border-color: rgba(255, 165, 0, 0.3); color: var(--primary); }

/* Posições */
.pos-badge { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid rgba(255,255,255,0.05); }
.pos-badge.fixo { color: #2980B9; }
.pos-badge.ala { color: #27AE60; }
.pos-badge.pivo { color: #C0392B; }
.pos-badge.goleiro { color: #E67E22; }

/* Linha do Tempo (História) */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 20px; border-left: 3px solid rgba(255, 165, 0, 0.3); }
.timeline-item { padding: 25px; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 25px; position: relative; }
.timeline-item::before {
    content: ''; width: 13px; height: 13px; background: var(--primary); border-radius: 50%;
    position: absolute; left: -31px; top: 32px; box-shadow: 0 0 8px var(--primary);
}
.timeline-date { font-weight: 800; color: var(--primary); font-size: 1.05rem; margin-bottom: 6px; }

/* ========================================================
   📋 ELEMENTOS DA PRANCHETA TÁTICA (PRESERVADOS INTACTOS)
   ======================================================== */
.wrap-lousa {
    display: flex; max-width: 950px; margin: 0 auto 40px auto; background-color: #112A1D;
    border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 165, 0, 0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.sidebar-lousa { width: 230px; background: #112A1D; border-right: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-top { padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-title { font-size: 0.75rem; font-weight: 700; color: #FFA500; margin-bottom: 10px; letter-spacing: .5px; }
.mode-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px; background: rgba(255, 255, 255, 0.02); cursor: pointer; font-size: 0.8rem; color: #E5E2D8; margin-bottom: 6px; font-family: 'Poppins', sans-serif; transition: all .15s;
}
.mode-btn:hover { border-color: #FFA500; }
.mode-btn.active { border-color: #FFA500; background: rgba(255, 165, 0, 0.15); color: #FFA500; font-weight: 600; }
.color-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.color-dot { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.color-dot.sel { border-color: #FFA500; transform: scale(1.1); }
.formacoes-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.btn-formacao { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 165, 0, 0.4); color: #FFA500; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-family: 'Poppins', sans-serif; text-align: left; transition: all 0.2s; }
.btn-formacao:hover, .btn-formacao.active { background: rgba(255, 165, 0, 0.1); border-color: #FFA500; }
.sidebar-players { flex: 1; overflow-y: auto; padding: 15px; }
.player-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; margin-bottom: 6px; border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.03); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.player-name { font-size: 0.8rem; color: #FFFFFF; font-weight: 600; }
.player-pos { font-size: 0.7rem; color: #8C8A84; }
.sidebar-bottom { padding: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-direction: column; gap: 8px; }
.btn-sm { padding: 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-size: 0.8rem; color: #FFFFFF; font-family: 'Poppins', sans-serif; display: flex; align-items: center; gap: 6px; justify-content: center; transition: background 0.2s; }
.btn-sm:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm.primary { background: #FFA500; color: #112A1D; border-color: #FFA500; font-weight: 700; }
.canvas-wrap { flex: 1; position: relative; background: #163524; overflow: hidden; aspect-ratio: 4 / 3; min-width: 320px; }
canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }
.tooltip { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); background: rgba(8, 20, 14, 0.9); color: #FFA500; font-size: 0.75rem; padding: 6px 14px; border-radius: 20px; pointer-events: none; white-space: nowrap; border: 1px solid rgba(255, 165, 0, 0.3); z-index: 20; }
.jogadas-panel { position: absolute; bottom: 15px; right: 15px; display: flex; flex-direction: column; gap: 6px; z-index: 20; }

/* ========================================================
   📱 MODO APP TELA CHEIA (ENGATADO EXCLUSIVAMENTE VIA JS)
   ======================================================== */
body.modo-lousa-app { overflow: hidden; margin: 0; padding: 0; height: 100vh; width: 100vw; background-color: #0b1811; display: flex; justify-content: center; align-items: center; }
body.modo-lousa-app header, body.modo-lousa-app footer { display: none !important; }
body.modo-lousa-app .main-content { max-width: 100% !important; width: 100vw; height: 100vh; margin: 0 auto !important; padding: 0 !important; display: flex; justify-content: center; }
body.modo-lousa-app #taticas { display: flex; flex-direction: column; height: 100vh; width: 100vw; }
body.modo-lousa-app #taticas .hero-banner { display: none !important; }
body.modo-lousa-app .wrap-lousa { display: flex; height: 100vh; width: 100vw; max-width: 1400px; margin: 0 auto !important; gap: 0 !important; background-color: #112A1D; border: none; border-radius: 0; }
body.modo-lousa-app .sidebar-lousa { width: 260px; height: 100vh; border-radius: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); }
body.modo-lousa-app .canvas-wrap { flex: 1; height: 100vh; border-radius: 0; background: #163524; }

/* ========================================================
   🟢 BOTÃO FIXO DE ACESSO AO SISTEMA
   ======================================================== */
.btn-sistema-fixo {
    position: fixed; top: 25px; right: 5%; z-index: 2000;
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
    color: #ffffff !important; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 50px; font-size: 0.92rem; font-weight: 600;
    text-decoration: none !important; box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer;
}
.btn-sistema-fixo:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6); background: linear-gradient(135deg, #2ecc71 0%, #27AE60 100%); }

/* ========================================================
   ⚡ REGULAGEM DE RESPONSIVIDADE (MOBILE-FIRST FLEX)
   ======================================================== */
@media (max-width: 768px) {
    body { padding-top: 210px; } /* ⬅️ Garante que no celular o menu também não cubra o texto */
    header { padding: 15px 3%; } /*[cite: 3] */
    .logo { font-size: 1.5rem; } /*[cite: 3] */
    .hero-banner h2 { font-size: 1.8rem; } /*[cite: 3] */
    .tab-menu { justify-content: flex-start; padding-left: 10px; } /*[cite: 3] */
    .wrap-lousa { flex-direction: column; } /*[cite: 3] */
    .sidebar-lousa { width: 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } /*[cite: 3] */
    .canvas-wrap { width: 100%; aspect-ratio: 4 / 3; } /*[cite: 3] */
    .btn-sistema-fixo { top: auto; bottom: 20px; right: 20px; padding: 12px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); } /*[cite: 3] */
}

/* ========================================================
   🗃️ FOOTER PADRÃO
   ======================================================== */
footer { background-color: #050b07; padding: 40px 20px; text-align: center; margin-top: 60px; border-top: 1px solid var(--border-color); }
.footer-links { margin-bottom: 15px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin: 0 12px; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-contact { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.2); }

/* ========================================================
   📋 ESTILIZAÇÃO DA PÁGINA DE MATERIAIS DE TREINO
   ======================================================== */
.downloads-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.downloads-intro {
    text-align: center;
    margin-bottom: 50px;
}

.downloads-intro h2 {
    font-size: 2.2rem;
    color: var(--primary); /* Laranja oficial da marca */
    margin-bottom: 15px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
}

.downloads-intro p {
    color: #a0aab2;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.downloads-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.download-card {
    background: var(--bg-card); /* Mantém o padrão verde escuro premium */
    border: 1px solid rgba(255, 165, 0, 0.1);
    border-radius: 14px;
    padding: 35px;
    width: 340px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.download-card h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.download-card p {
    font-size: 0.95rem;
    color: #b0bac2;
    margin-bottom: 25px;
    min-height: 70px;
    line-height: 1.5;
}

/* Formulário de Leads */
.capture-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.capture-form input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.capture-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
}

.btn-download {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background: #ffb733;
    transform: translateY(-2px);
}

/* Container do formulário centralizado */
.central-form-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 30px auto 0 auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
.central-form-box h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    font-size: 0.85rem;
    color: #a0aab2;
}

.btn-liberar {
    background: var(--primary); /* Laranja */
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-liberar:hover {
    background: #ffb733;
    transform: translateY(-2px);
}

/* Botões de download direto quando os arquivos são revelados */
.btn-download-direto {
    display: block;
    background: #0e2d19; /* Fundo verde escuro contrastante */
    color: #22c55e;     /* Texto verde claro de sucesso/liberado */
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-download-direto:hover {
    background: #22c55e;
    color: #000;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

/* Garante que a aba selecionada fique visível e estruturada */
.tab-content.active {
    display: block !important;
}
