:root {
    --primary-bg: #0d1b2a;
    --navbar-bg: #192a45;
    --highlight-color: #ff4d4d;
    --secondary-color: #4b6cb7;
    --title-color: #ffffff;
    --subtitle-color: #ccc;
    --neon-color: #ff4d4d;
    --new-tag-color: #28a745;
}

/* Contêiner dos Cards */
.section-container, .carousel-container, .new-games-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px;
}

/* Style 1 Card - Altura Maior, Fade no Rodapé e Texto Mais Próximo do Rodapé */
.style1-card {
    width: 180px;
    height: 270px; /* Altura aumentada */
    background-color: #192a45;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.style1-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.style1-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.style1-card .game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Altura maior para maior visibilidade do texto */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent); /* Fade-in mais escuro para destacar o texto */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    color: var(--title-color);
    box-sizing: border-box;
    text-align: center;
}
.style1-card .game-card-overlay h5 {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}
.style1-card .game-card-overlay p {
    font-size: 0.8rem;
    margin-top: 2px;
    line-height: 1.2;
}
.style2-card {
    width: 180px;
    height: 230px;
    background-color: #1b2b3a;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.style2-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.style2-card img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    border-radius: 6px;
}
.style2-card h5 {
    font-size: 0.85rem;
    font-weight: bold;
    margin: 6px 0;
    color: var(--title-color);
    line-height: 1.2;
}
.style2-card p {
    font-size: 0.75rem;
    color: var(--subtitle-color);
    margin-top: 2px;
    line-height: 1.2;
}

/* Style 3 Card - Igual ao Style 1 com Efeito Neon no Hover */
.style3-card {
    width: 180px;
    height: 270px;
    background-color: #192a45;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.style3-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--neon-color), 0 0 20px var(--neon-color), 0 0 30px var(--neon-color);
}
.style3-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.style3-card .game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    color: var(--title-color);
    box-sizing: border-box;
    text-align: center;
}
.style3-card .game-card-overlay h5 {
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}
.style3-card .game-card-overlay p {
    font-size: 0.8rem;
    margin-top: 2px;
    line-height: 1.2;
}

/* Tag - Verde Moderno para Novos Jogos */
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--new-tag-color);
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
}


.section-container {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}

.carousel.grid-view {
    flex-wrap: wrap;
    white-space: normal;
    transform: none;
}

@media (max-width: 768px) {
    /* Estilo para o modo slider no mobile */
    .section-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .game-card {
        flex: 0 0 auto;
        width: 180px; /* Define uma largura padrão para os cards no slider mobile */
        height: auto;
        aspect-ratio: attr(data-aspect-ratio); /* Aplica a proporção com base no atributo do card */
        scroll-snap-align: start;
        transition: transform 0.3s ease;
    }

    .game-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Garante que a imagem preencha o card sem distorcer */
        border-radius: 8px;
    }

    /* Ajuste para o modo grid no mobile com duas colunas */
    .section-container.grid-view {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Duas colunas de tamanhos iguais */
        gap: 10px; /* Espaço entre os cards */
        padding: 10px;
        white-space: normal;
        transform: none;
    }

    .section-container.grid-view .game-card {
        width: 100%; /* Ocupa a largura completa da coluna */
        height: auto;
        aspect-ratio: auto; /* Mantém a proporção original de cada card */
        box-sizing: border-box; /* Inclui padding e bordas no tamanho total */
    }

    .section-container.grid-view .game-card img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ajusta a imagem ao espaço do card sem cortar */
        border-radius: 8px;
    }
}

