/* ESTILO GERAL - INSPIRADO NO LAYOUT DE STREAMING E THE SIMS 2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #0a0d14; /* Azul escuro da noite/vizinhança */
    --card-bg: #141923;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --ts2-green: #00ff66; /* Verde Plumbob icônico */
    --ts2-cyan: #00e5ff; /* Azul turquesa clássico da interface do TS2 */
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* NOVO: Cursor personalizado do Plumbob */
    cursor: url('plumbob.png'), auto;
}

/* NOVO: Cursor também precisa mudar quando passa o mouse em botões e links */
a, button, .card, .close-modal {
    cursor: url('plumbob.png'), pointer;
}


/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #232d42;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ts2-cyan);
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 13, 20, 0.9) 0%, rgba(10, 13, 20, 0) 100%);
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo span {
    color: var(--ts2-green);
}

.plumbob {
    color: var(--ts2-green);
    display: inline-block;
    margin-left: 2px;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--ts2-cyan);
    padding-bottom: 4px;
}

/* HERO BANNER */
.hero {
    height: 75vh;
    position: relative;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, rgba(10, 13, 20, 0.95) 30%, rgba(10, 13, 20, 0.4) 70%, rgba(10, 13, 20, 0.8) 100%),
                linear-gradient(to top, var(--bg-color) 0%, transparent 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    /* NOVO: Animação suave para o deslize do carrossel */
    transition: all 0.5s ease-out; 
}

.badge {
    background-color: var(--ts2-green);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color var(--transition-speed);
}

.btn-primary {
    background-color: var(--text-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--ts2-cyan);
    transform: scale(1.05);
}

/* FILEIRAS DE CONTEÚDO (STREAMING CAROUSEL) */
.content-container {
    padding: 0 4% 50px 4%;
}

.content-row {
    margin-bottom: 35px;
}

.content-row h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    border-left: 4px solid var(--ts2-cyan);
    padding-left: 10px;
}

.cards-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

/* CARDS DE CONTEÚDO */
.card {
    flex: 0 0 calc(20% - 12px);
    min-width: 240px;
    background-color: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid #1e2638;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.15);
    border-color: var(--ts2-cyan);
}

.card-img-container {
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 de vídeo/banner */
    position: relative;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-video { color: var(--ts2-cyan); }
.tag-download { color: var(--ts2-green); }

/* MODAL / POPUP PLAYER */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2100;
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--ts2-green);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   NOVO LAYOUT DO MODAL DE DOWNLOAD (ESTILO STREAMING COM BANNER GIGANTE)
   ========================================================================== */

/* Container da imagem grande no topo do modal */
.download-modal-banner {
    width: 100%;
    height: 400px; /* Altura da imagem grande */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* O degradê preto transparente que se funde com o fundo do modal */
.banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(20, 25, 35, 0) 50%,     /* Transparente no meio da foto */
        rgba(20, 25, 35, 0.7) 80%,   /* Começa a escurecer */
        rgba(20, 25, 35, 1) 100%     /* Totalmente opaco na cor do fundo do modal */
    );
}

/* Área de texto ajustada para o novo design */
.download-modal-body {
    padding: 30px 40px 40px 40px;
    text-align: left; /* Alinhado à esquerda combina muito mais com o banner superior */
    position: relative;
    z-index: 2;
    background-color: var(--card-bg);
}

.download-modal-body h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.download-modal-body p {
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
    font-size: 16px;
    max-width: 650px;
}

/* Botão de download estilizado com o verde Plumbob */
.download-modal-body .btn-primary {
    background-color: var(--ts2-green);
    color: #000;
    text-decoration: none;
    display: inline-block;
}

.download-modal-body .btn-primary:hover {
    background-color: var(--ts2-cyan);
}

/* Ajuste para telas menores (celulares) não quebrarem o layout */
@media (max-width: 768px) {
    .download-modal-banner {
        height: 250px;
    }
    .download-modal-body {
        padding: 20px;
    }
    .download-modal-body h2 {
        font-size: 24px;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid #141923;
}

@media (max-width: 768px) {
    .card { flex: 0 0 calc(50% - 10px); min-width: 200px; }
    .hero h1 { font-size: 32px; }
    .navbar { padding: 15px 5%; }
    .nav-links { display: none; } /* Pode ser adaptado para menu hamburguer futuramente */
}

/* ==========================================================================
   EFEITO GLITTER MÁGICO (PLUMBOB TRAIL)
   ========================================================================== */
.glitter-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #00ff66;
    box-shadow: 0 0 10px #00ff66, 0 0 20px #00e5ff;
    border-radius: 50%;
    pointer-events: none; /* CRÍTICO: Impede que o glitter bloqueie seus cliques! */
    z-index: 9999;
    animation: sparkle 0.8s linear forwards;
}

@keyframes sparkle {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0) translateY(20px); opacity: 0; }
}