/* =========================================
   BASE & VARIÁVEIS FC
========================================= */
:root {
    --fc-bg: #050505;
    --fc-green: #00ff87;
    --fc-green-glow: rgba(0, 255, 135, 0.4);
    --fc-dark: #121212;
    --fc-glass: rgba(255, 255, 255, 0.03);
    --fc-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 1. Controlar o tamanho da logo da Uninassau no Hero */
.hero-nassau-logo {
    height: 30px; /* Força uma altura máxima controlada */
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}

/* 2. Impedir que a esteira de cartas invada o lado direito */
.card-track-container {
    position: absolute; 
    bottom: 40px; 
    left: 60px; 
    width: 45%; /* Reduzido de calc(100% - 60px) para 45%. Assim a esteira morre no meio da tela */
    height: 220px; 
    z-index: 10;
}

/* 3. (Opcional) Aumentar um pouquinho a logo do ENTEC no header para leitura melhor */
.entec-logo { 
    height: 24px; 
}

body {
    background-color: var(--fc-bg);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
}

h1, h2, h3, h4 { text-transform: uppercase; letter-spacing: 1px; }
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }

.sticky-header {
    position: sticky; top: 0; width: 100%; height: 70px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; z-index: 100;
    border-bottom: 1px solid var(--fc-border);
}
.header-left { 
    display: flex; 
    align-items: center; 
    gap: 20px; /* Cria um espaçamento fixo entre as duas logos da esquerda */
}

.header-logo { 
    height: 26px; 
    object-fit: contain; 
}

.nassau-logo { 
    opacity: 0.9; 
}

.jam-logo { 
    height: 20px; /* A logo da JAM Labs costuma ser um pouco menor para balancear */
}

.header-fc-logo { 
    height: 35px; 
    object-fit: contain; 
    filter: drop-shadow(0px 2px 4px rgba(0, 255, 135, 0.2)); /* Leve brilho neon sutil */
}

.btn-fc {
    background: transparent; color: var(--fc-green); border: 2px solid var(--fc-green);
    padding: 10px 24px; font-weight: bold; font-size: 1.1rem;
    text-decoration: none; text-transform: uppercase;
    transition: all 0.3s; border-radius: 4px; cursor: pointer;
}
.btn-fc:hover {
    background: var(--fc-green); color: var(--fc-bg);
    box-shadow: 0 0 20px var(--fc-green-glow);
}
.btn-header { opacity: 0; visibility: hidden; transform: translateY(-10px); }

/* =========================================
   HERO SECTION ASSIMÉTRICO (MODIFICADO)
========================================= */
.fc-hero {
    position: relative;
    height: 90vh; 
    display: flex;
    align-items: center;
    /* Adicionada a imagem estática de fundo para toda a seção hero */
    background: url('assets/estadio-bg.jpg') center/cover no-repeat;
    background-color: var(--fc-bg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente ajustado para escurecer mais a imagem de fundo, permitindo leitura */
    background: linear-gradient(90deg, rgba(5,5,5,0.95) 30%, rgba(5,5,5,0.6) 60%, rgba(5,5,5,0.2) 100%);
    z-index: 2;
}

.hero-content-left {
    position: relative; z-index: 5;
    width: 50%; padding-left: 60px;
    margin-top: -100px; 
}

.title-group h4 { color: var(--fc-green); font-size: 1.2rem; margin-bottom: 10px; }
.title-group h1 { font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1.1; margin-bottom: 15px; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.hero-date { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.8; font-weight: 500; }

.hero-bg-render {
    position: absolute; bottom: 0; right: 8%; height: 85%;
    z-index: 3; transition: all 0.5s ease;
}
.hero-bg-render img { 
    height: 100%; object-fit: contain; object-position: bottom;
    filter: drop-shadow(-10px 10px 25px rgba(0,0,0,0.9)); 
    transition: all 0.5s;
}

.card-track-container {
    position: absolute; bottom: 40px; left: 60px; width: calc(100% - 60px);
    height: 220px; z-index: 10;
}

.card-track {
    display: flex; align-items: flex-end; 
    height: 100%; width: 100%;
}

.track-slot {
    perspective: 1000px;
    width: 100px; 
    height: 150px;
    flex-shrink: 0;
    margin-right: 15px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.card-3d-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    object-fit: contain;
}

.card-back {
    transform: rotateY(0deg);
    z-index: 2;
}

.card-front {
    transform: rotateY(180deg);
    z-index: 1;
}

.track-slot.entering {
    width: 0; margin-right: 0; opacity: 0; transform: translateX(-50px);
}

.track-slot.leaving {
    width: 0; margin-right: 0; opacity: 0; transform: translateX(50px);
}

/* O Card em Destaque (Último da Direita) */
.track-slot.active-card {
    width: 150px; height: 225px; /* Fica maior */
    transform: translateY(-20px);
    margin-left: 30px; /* Separa do resto do grupo */
}

/* Removemos o filter daqui para não "achatar" o eixo 3D */
.track-slot.active-card .card-3d-inner {
    transform: rotateY(180deg); 
}

/* Passamos o brilho neon diretamente para a imagem da frente */
.track-slot.active-card .card-front {
    filter: drop-shadow(0 0 30px rgba(0, 255, 135, 0.4));
}

.glass-panel { background: var(--fc-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--fc-border); border-radius: 12px; }
.grid-regras { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 40px; }
.fc-card { padding: 30px; transition: all 0.3s; border-bottom: 3px solid transparent; }
.fc-card:hover { transform: translateY(-5px); border-bottom: 3px solid var(--fc-green); background: rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.fc-card h3 { color: var(--fc-green); font-size: 1.6rem; margin-bottom: 12px; }
.fc-card p { font-size: 1.2rem; margin-bottom: 5px; opacity: 0.9; }

.arena-title { text-align: center; font-size: 2.2rem; margin-bottom: 20px; color: #fff; }
.fc-bracket { padding: 40px; min-height: 350px; display: flex; flex-direction: column; align-items: center; }
.match-label { color: var(--fc-green); font-weight: bold; letter-spacing: 2px; margin-bottom: 30px; }
.fc-match-box { width: 240px; background: rgba(0,0,0,0.8); border: 1px solid var(--fc-border); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.fc-match-box.active-match { border-color: var(--fc-green); box-shadow: 0 0 15px var(--fc-green-glow); transform: scale(1.05); }
.team-row { padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.1rem; opacity: 0.7; }
.team-row:last-child { border: none; }
.team-row.winner { background: linear-gradient(90deg, rgba(0, 255, 135, 0.15) 0%, transparent 100%); color: var(--fc-green); font-weight: bold; opacity: 1; }
.team-row.loser { opacity: 0.4; filter: grayscale(100%); }
.score { font-weight: bold; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; }
.team-row.winner .score { background: var(--fc-green); color: #000; }
/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MOBILE)
========================================= */
@media (max-width: 768px) {
    /* 1. Ajustes do Header */
    .sticky-header {
        padding: 0 15px;
        height: 60px;
        justify-content: center; /* Centraliza o conteúdo se ocultar as laterais */
    }

    .header-left, .header-right {
        display: none; /* Oculta as logos laterais e o botão no topo para focar no evento */
    }

    .header-fc-logo {
        height: 25px; /* Reduz a logo central */
    }

    /* 2. Ajustes da Seção Hero */
    .fc-hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        padding: 80px 20px 40px;
        background-position: top center; /* Ajusta o foco da imagem de fundo */
    }

    .hero-overlay {
        /* Gradiente vertical para telas estreitas: escuro em cima e no meio, leve embaixo */
        background: linear-gradient(180deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.85) 50%, rgba(5,5,5,0.4) 100%);
    }

    .hero-content-left {
        width: 100%;
        padding-left: 0;
        margin-top: 0;
        text-align: center;
        z-index: 10;
    }

    .hero-nassau-logo {
        height: 40px; /* Um pouco maior no mobile para dar destaque */
        margin: 0 auto 15px;
    }

    .title-group h1 {
        font-size: 2.5rem;
    }

    .hero-date {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* 3. Simplificação Visual: Oculta a esteira de cartas no mobile */
    .hero-bg-render {
        display: none; /* Remove a imagem do jogador de corpo inteiro */
    }

    .card-track-container {
        display: none; /* Oculta totalmente a esteira de cartas no telemóvel */
    }

    /* 4. Ajustes das Seções de Conteúdo */
    .sobre {
        padding: 50px 20px;
    }

    .sobre h2 {
        font-size: 2rem;
    }

    .sobre p {
        font-size: 1rem;
    }

    .container {
        padding: 40px 15px;
    }

    .grid-regras {
        grid-template-columns: 1fr; /* Força os cards a empilharem 1 por linha */
        gap: 15px;
    }

    .fc-card {
        padding: 20px;
    }

    .arena-guide-text {
        padding: 20px !important;
    }

    .arena-guide-text h3 {
        font-size: 1.5rem !important;
    }

    .kombat-rules-list li {
        font-size: 1rem !important;
    }
}