/* ==========================================================================
   1. VARIÁVEIS E BASE
   ========================================================================== */
:root {
    --primary: #FF0000;
    --primary-dark: #cc0000;
    --black: #080808;
    --grey-dark: #0e0e0e;
    --grey-light: #151515;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--black); 
    color: var(--white); 
    font-family: 'Roboto', sans-serif; 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.red { color: var(--primary); }

/* ==========================================================================
   2. HEADER (FIXO COM BLUR)
   ========================================================================== */
header { 
    background: rgba(0, 0, 0, 0.95); 
    height: 80px; 
    display: flex; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 2px solid var(--primary); 
    backdrop-filter: blur(10px); 
}

nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-container { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 50px; width: auto; }
.logo-text { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 900; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { color: var(--white); text-decoration: none; padding: 10px 15px; font-weight: bold; font-size: 0.85rem; transition: var(--transition); }
.nav-links li a:hover { color: var(--primary); }

.nav-socials a { color: var(--white); margin-left: 15px; font-size: 1.2rem; transition: var(--transition); }
.nav-socials a:hover { color: var(--primary); }
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   3. HERO (OTIMIZADO 1080P/2K)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 77vh; 
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%),
        url('../img/playres.png'),
        url('../img/fundo.png');
    background-position: center top, center calc(100% + 80px), center center;
    background-size: 100% 100%, auto 100%, cover; 
    background-repeat: no-repeat;
}

.hero-content { z-index: 5; max-width: 900px; }
.hero-section h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(2.5rem, 8vw, 4.5rem); text-shadow: 0 0 20px #000; margin-bottom: 10px; }
.hero-section p { font-size: 1.1rem; margin-bottom: 25px; color: #ddd; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: var(--transition);
    display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ==========================================================================
   4. A ORGANIZAÇÃO (AJUSTADO PARA INVESTIDORES)
   ========================================================================== */
.section { padding: 100px 0; }
.dark-bg { background-color: var(--grey-dark); }
.section-title { font-family: 'Orbitron', sans-serif; text-align: center; margin-bottom: 60px; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; }

/* Grid principal com alinhamento vertical para investidores */
.org-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

/* Container do Logo + Texto */
.org-info { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    text-align: left; 
}

/* Logo com maior presença visual */
.org-logo-body { 
    width: 250px; 
    max-width: 100%; 
    flex-shrink: 0; 
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3)); 
}

.org-text { flex-grow: 1; }

.org-text p { 
    font-size: 1.15rem; 
    color: #eee; 
    margin-bottom: 20px; 
    line-height: 1.7; 
}

/* Vídeo com acabamento e sombra */
.video-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 2px solid #222; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
}

.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ==========================================================================
   5. LINEUP E MAPAS COLORIDOS
   ========================================================================== */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
/* ATUALIZAÇÃO PARA CORRIGIR O "PÉ CORTADO" */
.player-card { 
    background: var(--grey-light); 
    border: 1px solid #222; 
    cursor: pointer; 
    transition: var(--transition); 
    overflow: hidden; 
    position: relative;
    
    /* --- A MÁGICA ACONTECE AQUI --- */
    display: flex;           /* Transforma o card num container flexível */
    flex-direction: column;  /* Empilha a imagem em cima da info verticalmente */
    /* ----------------------------- */
}

/* Garanta que a imagem não tenha margem extra embaixo */
.player-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: none;
    position: relative;
    z-index: 1;
    transition: 0.5s;
    
    /* --- ADICIONE ISSO --- */
    display: block;     /* Remove o comportamento de "texto" da imagem */
    margin-bottom: 0;   /* Garante que não há espaço extra */
    flex-grow: 1;       /* Faz a imagem ocupar o espaço disponível se necessário */
}

/* A caixa de informações fica logo abaixo, colada */
.player-info {
    padding: 20px;
    text-align: center;
    background: rgba(17, 17, 17, 0.95); /* Aumentei um pouco a opacidade para cobrir bem o pé */
    position: relative;
    z-index: 2; /* Z-index maior para garantir que fique sobre a base da imagem se houver sobreposição mínima */
}

.player-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.4); transition: 0.5s; z-index: 0;
}
.player-card:hover::before { filter: brightness(0.6); transform: scale(1.05); }
.player-card img, .player-info { position: relative; z-index: 1; }

.player-card img { 
    width: 100%; 
    height: 380px; 
    object-fit: cover; 
    /* MUDANÇA AQUI: Alterado de grayscale(100%) para none */
    filter: none; 
    transition: 0.5s; 
}

.player-info { padding: 20px; text-align: center; background: rgba(17, 17, 17, 0.9); }
.player-info h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; }
.role { color: var(--primary); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }

/* CLASSES DOS MAPAS */
.map-mirage::before { background-image: url('../img/mapas/mirage.jpg'); }
.map-overpass::before { background-image: url('../img/mapas/overpass.jfif'); }
.map-dust2::before { background-image: url('../img/mapas/dust2.jpg'); }
.map-ancient::before { background-image: url('../img/mapas/ancient.jpg'); }
.map-inferno::before { background-image: url('../img/mapas/inferno.jpg'); }
.map-nuke::before { background-image: url('../img/mapas/nuke.jpg'); }
.map-anubis::before { background-image: url('../img/mapas/anubis.jfif'); }

/* ==========================================================================
   6. MODAL (MAPA NÍTIDO E LEGIBILIDADE)
   ========================================================================== */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(8px); }
.modal-content { background: #0a0a0a; margin: 5% auto; max-width: 900px; width: 90%; border: 1px solid var(--primary); position: relative; overflow: hidden; }

.modal-content::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: brightness(0.5); z-index: 0;
}
.modal-body { position: relative; z-index: 1; display: flex; flex-wrap: wrap; }
.modal-img { flex: 1; min-width: 300px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { flex: 1.2; padding: 40px; min-width: 300px; text-shadow: 2px 2px 8px #000; }
.player-stats-list { list-style: none; margin: 20px 0; }
.player-stats-list li { margin-bottom: 12px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }

/* ==========================================================================
   7. PATROCINADORES E AGENDA (RESTAURADOS)
   ========================================================================== */
.sponsors-bar { background: #050505; padding: 40px 0; border-top: 1px solid #111; }
.sponsors-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.sponsors-wrapper span { font-family: 'Orbitron', sans-serif; font-size: 0.7rem; color: #444; letter-spacing: 2px; }
.sponsor-list { display: flex; justify-content: center; align-items: center; gap: 40px; }
.sponsor-logo { height: 45px; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.sponsor-logo:hover { filter: grayscale(0%); opacity: 1; }

.match-item {
    background: var(--grey-light); padding: 30px; display: flex; justify-content: space-around;
    align-items: center; border-left: 5px solid var(--primary); margin-bottom: 20px;
}
.match-logo { width: 70px; height: 70px; object-fit: contain; }
.btn-kick {
    background-color: #53fc18; color: #000 !important; text-decoration: none;
    padding: 12px 25px; font-weight: 900; border-radius: 4px; display: flex; align-items: center; gap: 8px;
}
/* AJUSTE DE ALINHAMENTO DA AGENDA */
.team-box {
    display: flex;
    flex-direction: column; /* Empilha o logo em cima do nome */
    align-items: center;    /* Centraliza horizontalmente */
    justify-content: center;
    gap: 8px;               /* Espaço entre o logo e o nome */
    min-width: 120px;       /* Evita que nomes longos desalinhem o 'VS' */
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

/* Garante que o item da match ocupe bem o espaço */
.match-item {
    background: var(--grey-light); 
    padding: 30px; 
    display: flex; 
    justify-content: space-around; /* Distribui os blocos igualmente */
    align-items: center; 
    border-left: 5px solid var(--primary); 
    margin-bottom: 20px;
}
/* ==========================================================================
   8. FOOTER E VOLTAR AO TOPO
   ========================================================================== */
footer { padding: 40px; text-align: center; background: #050505; border-top: 1px solid #111; color: #666; font-size: 0.9rem; }
.lola-link { color: var(--white); text-decoration: none; transition: var(--transition); }
.lola-link:hover { color: var(--primary); }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background-color: var(--primary); color: white; border: none; border-radius: 50%;
    cursor: pointer; display: none; z-index: 1500;
}

/* ==========================================================================
   9. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: rgba(0,0,0,0.98); flex-direction: column; padding: 20px; }
    .nav-links.active { display: flex; }
    .org-grid { grid-template-columns: 1fr; }
    .org-info { flex-direction: column; text-align: center; }
    .modal-body { flex-direction: column; }
    .match-item { flex-direction: column; text-align: center; }
}
/* Container do Placar */
.score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 100px; /* Garante que o espaço seja fixo */
}

.score-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; /* Placar bem visível */
    font-weight: 900;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    border-bottom: 2px solid var(--primary); /* Detalhe em vermelho Crashers */
}

.score-divider {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

/* Container dos cards */
.player-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dois blocos iguais lado a lado */
    gap: 15px;
    margin-top: 25px;
}

/* Estilo base do Card */
.social-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-card i {
    font-size: 2.5rem; /* Ícone bem grande */
}

.social-card span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    color: #888;
    letter-spacing: 1px;
}

/* Hover: Efeito de destaque */
.social-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* --- CORES ORIGINAIS NOS ÍCONES --- */

/* Instagram Gradiente */
.social-card.insta i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* X / Twitter Branco */
.social-card.x-twitter i {
    color: #FFFFFF;
}

/* Ajuste no hover para as cores brilharem mais */
.social-card:hover span {
    color: #fff;
}
/* Estilo para o VS nos jogos futuros */
.vs-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary); /* Vermelho Crashers */
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* Container e Botão de Resultados */
.results-container {
    text-align: center;
    margin-top: 40px;
}

.btn-results {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #333;
    color: #888;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    transition: var(--transition);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%); /* Mantendo o estilo chanfrado */
}

.btn-results:hover {
    border-color: var(--primary);
    color: var(--white);
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Pequeno ajuste para alinhar o ícone do Kick e HLTV */
.btn-results i {
    margin-left: 8px;
    font-size: 0.7rem;
}
/* Placar de Resultados (Win/Loss) */
.score-number.win { 
    color: #53fc18; /* Verde para vitória */
    border-bottom: 2px solid #53fc18; 
}
.score-number.loss { 
    color: #FF0000; /* Vermelho para derrota */
    border-bottom: 2px solid #FF0000; 
}

/* Efeito de Jogo AO VIVO */
.live-indicator {
    color: #FF0000;
    border: 1px solid #FF0000;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker { 50% { opacity: 0.2; } }

/* Botão da Kick pulsando quando está Live */
.pulse-btn { animation: pulse-green 2s infinite; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(83, 252, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); }
}