/* ==========================================================================
   1. RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Red Hat Display", sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #000;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER (PADRONIZADO COM A HOME)
   ========================================================================== */
header {
    background-color: #ffffff;
    color: #333;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #333;
}

.header-logo {
    height: 32px;
    margin-right: 5px;
}

header nav a {
    color: #000;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    font-size: 14px;
    position: relative; 
    padding-bottom: 5px;
}

/* Efeito degradê no hover do menu */
header nav a:after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #007bff, #ff9800);
    transition: width .3s ease;
}

header nav a:hover:after {
    width: 100%;
}

/* ==========================================================================
   3. HERO SECTION (BANNER DO JOGO)
   ========================================================================== */
.game-hero {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 100px auto 20px;
    max-width: 1100px;
    width: calc(100% - 40px);
}

.hero-content-centralized {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 80px 40px;
    position: relative;
    min-height: 500px;
}

/* Imagem de fundo do banner com opacidade para leitura */
.hero-content-centralized::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/jogo-da-velha/banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-left-content {
    max-width: 50%;
    position: relative;
    z-index: 2;
    margin-left: 10px;
}

.hero-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 18px;
}

.hero-left-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #000;
    font-weight: 800;
}

.hero-tagline {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-store img {
    height: 60px;
    transition: transform 0.2s ease;
}

.btn-store:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   4. SEÇÕES DE CONTEÚDO (H3 PADRONIZADOS)
   ========================================================================== */
.game-description, .game-features, .more-games, .final-cta {
    padding: 30px 20px; 
    background-color: #f8f8f8;
}

/* Estilo unificado para todos os H3 das seções */
.game-description h3, 
.game-features h3, 
.more-games h3 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-top: 20px;    /* Reduzido de 50px */
    margin-bottom: 40px; /* Espaço para a linha degradê */
    color: #333;
    font-weight: 700;
}

/* Linha degradê centralizada */
.game-description h3::after, 
.game-features h3::after, 
.more-games h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #ff9800);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

.game-description p {
    max-width: 800px;
    margin: 0 auto 15px;
    text-align: left;
    font-size: 16px;
    color: #444;
}

/* ==========================================================================
   5. GALERIA E FEATURES
   ========================================================================== */
.media-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0 30px; /* Reduzido o padding vertical da galeria */
}

.media-gallery img {
    width: 260px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.features-list {
    list-style: none;
    display: grid;
    /* ALTERADO: Força duas colunas de tamanho igual */
    grid-template-columns: repeat(2, 1fr); 
    /* Margem para respirar nas laterais se o container for maior */
    gap: 30px; 
    max-width: 1000px; /* Mantém a largura máxima */
    margin: 0 auto; /* Centraliza a lista na página */
    margin-top: 10px;
}

.features-list li {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid transparent;
    border-image: linear-gradient(to bottom, #007bff, #ff9800) 1;
}

.features-list h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
}

/* ==========================================================================
   6. FINAL CTA
   ========================================================================== */

   .final-cta {
    padding-top: 10px; /* Aproxima o CTA da seção de features */
}

.final-cta .cta-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 15px; /* Reduzido de 30px para aproximar do botão */
}

/* Centraliza especificamente os botões da seção final */
.final-cta .download-buttons {
    display: flex;
    justify-content: center; /* Alinha o botão no meio horizontalmente */
    margin-left: 0; /* Remove qualquer margem negativa herdada do Hero */
}

/* Mantém o alinhamento à esquerda apenas no Banner (Hero) */
.hero-left-content .download-buttons {
    justify-content: flex-start;
}

.final-cta .btn-store img {
    height: 65px; /* Ajuste conforme sua preferência */
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    background-color: #343434;
    color: #f8f8f8;
    padding: 40px 0;
    font-size: 13px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .links-container {
    display: flex;
    gap: 25px;
}

footer a {
    color: #9b9b9b;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}

/* ==========================================================================
   7. RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header nav a {
        margin: 0 10px;
    }

    .hero-content-centralized {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-left-content {
        max-width: 100%;
        align-items: center;
        margin-left: 0;
    }
    
    .hero-left-content h1 {
        font-size: 2.2rem;
    }

    .download-buttons {
        justify-content: center;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }
}