/* ===================================================
   COPA DO MUNDO 2026 COM NUVITO — style.css
   =================================================== */

:root {
    --verde-copa:   #009c3b;
    --amarelo-copa: #ffdf00;
    --azul-copa:    #002776;
    --azul-escuro:  #001540;
    --vidro-fundo:  rgba(255, 255, 255, 0.92);
    --vidro-card:   rgba(255, 255, 255, 0.90);
    --sombra-card:  0 12px 32px rgba(0, 0, 0, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-image: url('img/campo-de-futebol.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--verde-copa);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ===================================================
   BOTÕES FLUTUANTES (MÚSICA E VOZ)
   =================================================== */
.controles-flutuantes {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 12px;
}

.btn-controle-flutuante {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid var(--amarelo-copa);
    background: rgba(0, 39, 118, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s, background 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-controle-flutuante:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    border-color: #fff;
}

.btn-controle-flutuante:active {
    transform: scale(0.95);
}

.btn-controle-flutuante.tocando {
    border-color: #00ff73;
    animation: pulsoMusica 2s infinite alternate;
}

.btn-controle-flutuante.desativado {
    background: rgba(100, 100, 100, 0.9);
    border-color: #aaa;
    opacity: 0.8;
}

@keyframes pulsar-musica {
    0%, 100% { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); }
    50%       { box-shadow: 0 6px 32px rgba(255, 223, 0, 0.75), 0 0 0 10px rgba(255, 223, 0, 0.12); }
}

/* ===================================================
   LAYOUT PRINCIPAL
   =================================================== */
.container-principal {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 2rem;
    gap: 1.4rem;
}

/* ===================================================
   BOTÃO VOLTAR AO SITE PRINCIPAL
   =================================================== */
.btn-voltar-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 39, 118, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 223, 0, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-voltar-site:hover {
    background: rgba(0, 39, 118, 1);
    border-color: var(--amarelo-copa);
    transform: translateX(-4px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    color: var(--amarelo-copa);
}

/* Barra superior de navegação */
.barra-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}

.barra-superior-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.barra-superior-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.barra-superior-links a:hover {
    color: var(--amarelo-copa);
    text-decoration: underline;
}

.barra-superior-links span {
    opacity: 0.4;
}

/* ===================================================
   CABEÇALHO
   =================================================== */
.cabecalho-copa {
    background: rgba(0, 39, 118, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 3px solid rgba(255, 223, 0, 0.75);
    border-radius: 28px;
    color: white;
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Linha dourada decorativa no topo do header */
.cabecalho-copa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--amarelo-copa), transparent);
    border-radius: 28px 28px 0 0;
}

.texto-header {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Badge FIFA 2026 — aparece automaticamente quando o arquivo existir */
.fifa-badge {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s;
}
.fifa-badge:hover { transform: scale(1.05); }

.nuvito-header {
    height: 114px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.cabecalho-copa h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--amarelo-copa);
    text-shadow: 2px 2px 0px rgba(0, 21, 64, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.1;
}

.subtitulo {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 2px;
}
.subtitulo strong { color: var(--amarelo-copa); }

/* Descrição SEO no cabeçalho */
.header-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    line-height: 1.4;
    max-width: 420px;
    font-style: italic;
}
.header-desc strong { color: rgba(255, 223, 0, 0.8); font-style: normal; }

/* Tags de palavras-chave */
.header-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.header-tag {
    background: rgba(255, 223, 0, 0.13);
    border: 1px solid rgba(255, 223, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: default;
}

/* Animação de flutuar */
.nuvito-animado { animation: flutuar 3s ease-in-out infinite; }
.nuvito-delay   { animation-delay: 1.3s; }

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

/* ===================================================
   FAIXA DE BANDEIRAS ANIMADAS
   =================================================== */
.faixa-bandeiras {
    width: 100%;
    max-width: 1100px;
    background: rgba(0, 39, 118, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 223, 0, 0.55);
    border-radius: 20px;
    overflow: hidden;
    padding: 13px 0;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.bandeiras-track { overflow: hidden; width: 100%; }

.bandeiras-inner {
    display: flex;
    width: max-content;
    animation: scrollar-bandeiras 120s linear infinite;
}

/* Pausa ao passar o mouse */
.faixa-bandeiras:hover .bandeiras-inner { animation-play-state: paused; }

.bandeiras-inner span {
    font-size: 2.2rem;
    padding: 0 13px;
    display: inline-block;
    cursor: default;
    transition: transform 0.25s, filter 0.25s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    user-select: none;
}

.bandeiras-inner span:hover {
    transform: scale(1.45) translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Suporte a imagens de bandeiras (quando disponíveis) */
.bandeiras-inner .flag-img {
    height: 36px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin: 0 10px;
    object-fit: cover;
}

@keyframes scrollar-bandeiras {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================================
   STRIP DE ESTATÍSTICAS
   =================================================== */
.stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0, 21, 64, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 223, 0, 0.45);
    border-radius: 20px;
    padding: 14px 28px;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0 2rem;
    flex: 1;
    min-width: 90px;
}

.stat-numero {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--amarelo-copa);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255, 223, 0, 0.3);
    flex-shrink: 0;
}

/* ===================================================
   DESFILE DE PERSONAGENS NUVITO
   =================================================== */
.faixa-personagens {
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    padding: 6px 0;
}

.personagens-track { overflow: hidden; width: 100%; }

.personagens-inner {
    display: flex;
    width: max-content;
    animation: scrollar-personagens 38s linear infinite;
    align-items: flex-end;
}

/* Direção oposta para variar */
.faixa-personagens.reverso .personagens-inner {
    animation-name: scrollar-personagens-rev;
}

.personagens-inner img {
    height: 105px;
    width: auto;
    margin: 0 6px;
    filter: drop-shadow(2px 5px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s;
    cursor: pointer;
}

.personagens-inner img:hover {
    transform: scale(1.22) translateY(-10px);
    filter: drop-shadow(2px 8px 14px rgba(0, 0, 0, 0.5));
}

/* Pausa ao passar o mouse */
.faixa-personagens:hover .personagens-inner { animation-play-state: paused; }

@keyframes scrollar-personagens {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollar-personagens-rev {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===================================================
   TÍTULO DA SEÇÃO DE JOGOS
   =================================================== */
.secao-titulo {
    text-align: center;
    margin-top: 0.3rem;
    background: rgba(0, 21, 64, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 223, 0, 0.45);
    border-radius: 20px;
    padding: 1.1rem 2.5rem;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.secao-titulo h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--amarelo-copa);
    text-shadow: 2px 2px 0px rgba(0, 21, 64, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.secao-titulo p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 6px;
    font-weight: 500;
}

/* ===================================================
   GRID DE CARTAS
   =================================================== */
.container-jogos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 0.3rem 0 0.5rem;
}

/* ===================================================
   CARTA DE JOGO
   =================================================== */
.cartao-jogo {
    background: var(--vidro-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid var(--azul-copa);
    border-radius: 26px;
    width: 285px;
    padding: 2.2rem 1.6rem 1.6rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    box-shadow: var(--sombra-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Efeito shine (brilho deslizante no hover) */
.shine-effect {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        108deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 80%
    );
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 1;
}

.cartao-jogo:hover .shine-effect { left: 150%; }

.cartao-jogo:hover {
    transform: translateY(-14px) scale(1.04);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
    border-color: var(--amarelo-copa);
}

/* Cartas "Em Breve" */
.cartao-jogo.cartao-em-breve {
    opacity: 0.72;
    cursor: default;
    filter: saturate(0.65) brightness(0.97);
}

.cartao-jogo.cartao-em-breve:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3);
    border-color: #aaa;
    opacity: 0.82;
    filter: saturate(0.75);
}

/* Selo de troféu */
.selo-copa {
    position: absolute;
    top: 13px;
    right: 16px;
    font-size: 1.2rem;
    opacity: 0.65;
    z-index: 2;
}

/* Badge "EM BREVE" (diagonal) */
.badge-em-breve {
    position: absolute;
    top: 18px;
    right: -30px;
    background: linear-gradient(135deg, #5a5a6e, #8a8a9e);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 5px 46px;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 3;
    text-transform: uppercase;
}

/* Ícone central */
.icone {
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.12));
    position: relative;
    z-index: 2;
    display: block;
}

.cartao-jogo h2 {
    color: var(--azul-copa);
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.cartao-jogo p {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 1rem;
    min-height: 48px;
    position: relative;
    z-index: 2;
}

/* Metadados do card (Foco Educacional) */
.card-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: 1rem;
    padding: 7px 12px;
    background: rgba(0, 39, 118, 0.07);
    border-radius: 12px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 39, 118, 0.1);
}

.foco-edu { font-size: 0.88rem; font-weight: 700; color: var(--azul-copa); letter-spacing: 0.5px; }

/* Botão Jogar */
.btn-jogar {
    background: linear-gradient(135deg, var(--verde-copa), #00c44e);
    color: white;
    border: none;
    padding: 13px 0;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 5px 16px rgba(0, 156, 59, 0.38);
    transition: all 0.25s ease;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.cartao-jogo:not(.cartao-em-breve):hover .btn-jogar {
    background: linear-gradient(135deg, #d4b000, var(--amarelo-copa));
    color: var(--azul-copa);
    box-shadow: 0 6px 20px rgba(255, 223, 0, 0.55);
    transform: translateY(-2px);
}

.btn-em-breve {
    background: linear-gradient(135deg, #888, #aaa) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    color: #ddd !important;
    letter-spacing: 1px !important;
}

/* ===================================================
   SISTEMA DE MEDALHAS (SESSÃO)
   =================================================== */
.cartao-jogo.concluido {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.cartao-jogo.concluido::after {
    content: '🏅 ZERADO!';
    position: absolute;
    top: 18px;
    left: -32px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #002776;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 5px 35px;
    transform: rotate(-45deg);
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

/* ===================================================
   ÁREA INTERNA DOS JOGOS
   =================================================== */
.escondido { display: none !important; }

#area-do-jogo-ativo {
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.painel-jogo-container {
    position: relative;
    background: var(--vidro-fundo);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 3px solid var(--amarelo-copa);
    border-radius: 26px;
    padding: 2rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.btn-voltar {
    background: linear-gradient(135deg, var(--azul-copa), #0036a8);
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 39, 118, 0.4);
}

.btn-voltar:hover {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-copa));
    transform: translateX(-4px);
    box-shadow: 0 6px 18px rgba(0, 39, 118, 0.55);
}

/* ===================================================
   RODAPÉ
   =================================================== */
footer {
    margin-top: auto;
    padding: 1.4rem;
    background: rgba(0, 21, 64, 0.96);
    backdrop-filter: blur(12px);
    color: white;
    width: 100%;
    text-align: center;
    font-weight: 600;
    border-top: 4px solid var(--amarelo-copa);
    letter-spacing: 0.8px;
    font-size: 0.95rem;
}

/* ===================================================
   RESPONSIVO — CELULAR
   =================================================== */
@media (max-width: 768px) {
    .cabecalho-copa {
        flex-direction: column;
        padding: 1.4rem 1rem;
        gap: 12px;
        border-radius: 22px;
    }

    .nuvito-header       { height: 82px; }
    .cabecalho-copa h1   { font-size: 1.5rem; letter-spacing: 0.8px; }
    .subtitulo           { font-size: 0.88rem; }
    .fifa-badge          { height: 48px; }

    .bandeiras-inner span { font-size: 1.85rem; padding: 0 10px; }

    .stat-item       { padding: 0 1rem; }
    .stat-numero     { font-size: 1.9rem; }
    .stat-label      { font-size: 0.7rem; }
    .stat-divider    { display: none; }
    .stats-strip     { padding: 12px 16px; gap: 0.8rem; }

    .personagens-inner img { height: 80px; margin: 0 4px; }

    .secao-titulo h2 { font-size: 1.45rem; }

    .cartao-jogo     { width: 260px; }

    .controles-flutuantes {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }

    .btn-controle-flutuante {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .container-principal { padding: 1rem 0.8rem; gap: 1rem; }
    .stat-item { min-width: 70px; }
}