/* ========================================================================== */
/* ||                             FONTES E GLOBAIS                         || */
/* ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-green: #00FF00;
    --background-dark: #121212;
    --surface-dark: #1e1e1e;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
}

body {
    background-color: var(--background-dark);
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    margin: 0;
    padding: 20px;
}

/* ========================================================================== */
/* ||                         CABEÇALHOS E TÍTULOS                         || */
/* ========================================================================== */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin: 0;
}

.brand-title span,
.page-title span {
    color: var(--primary-green);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

.tagline {
    font-size: 1.2em;
    font-weight: 300;
    color: var(--text-dark);
    margin-top: 5px;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8em;
}

.back-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1em;
    display: inline-block;
    margin-top: 15px;
}

/* ========================================================================== */
/* ||                 GRIDS DE SELEÇÃO (JOGOS, MAPAS, CATS)                || */
/* ========================================================================== */
.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.map-card,
.game-card {
    text-decoration: none;
    color: var(--text-light);
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--surface-dark);
}

.map-card:hover,
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4), 0 0 30px rgba(0, 255, 0, 0.2);
}

.map-card-banner {
    position: relative;
    width: 100%;
}

.banner-h-160 {
    height: 160px;
    /* Altura original, para a página inicial */
}

.banner-h-220 {
    height: 220px;
    /* Altura maior, para a página de categorias */
}

.map-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0) 100%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7em;
    text-align: left;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.6);
    transition: text-shadow 0.3s ease;
}

.map-card:hover .map-card-title,
.game-card:hover .map-card-title {
    text-shadow: 0 0 10px rgba(0, 255, 0, 1);
}

/* ========================================================================== */
/* ||              CONTROLE DE IMAGENS DENTRO DOS CARDS (NOVO)             || */
/* ========================================================================== */

/* CLASSE PARA IMAGENS QUE DEVEM PREENCHER O ESPAÇO (CORTANDO SE NECESSÁRIO) */
.card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CLASSE PARA IMAGENS QUE DEVEM SER CONTIDAS (COM BARRAS PRETAS SE NECESSÁRIO) */
.card-img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}


/* ========================================================================== */
/* ||                       PÁGINAS DE TUTORIAIS (CS2)                     || */
/* ========================================================================== */
.tutorials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: auto;
    justify-content: center;
}

.side-column {
    flex: 1;
    min-width: 320px;
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}

.side-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #f5f5f5;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.tutorial-card {
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.tutorial-card h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-light);
}

.empty-message,
.error-message {
    color: var(--text-dark);
    text-align: center;
    padding: 20px;
}

/* ========================================================================== */
/* ||                         MODAL DE VÍDEO                               || */
/* ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface-dark);
    padding: 20px;
    border: 1px solid #333;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
}

#modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-green);
    text-align: center;
    margin-top: 0;
}

#video-player {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 5px;
}

#video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Link Voltar - Versão Melhorada e Neon */
.back-link {
    display: inline-block;
    margin: 20px 0 35px;
    padding: 14px 32px;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border: 2px solid #00ff9d;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

.back-link:hover {
    background: #00ff9d;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.7);
    transform: translateY(-3px);
}

/* Abas Smoke / Flashbang - Neon */
.utility-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 40px;
}

.utility-btn {
    padding: 12px 32px;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    border: 2px solid #00ff9d;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.utility-btn:hover {
    background: rgba(0, 255, 157, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

.utility-btn.active {
    background: #00ff9d;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.8);
}