/* css/style.css - Versão Final Completa */

/* --- 1. CONFIGURAÇÕES GLOBAIS & VARIÁVEIS --- */
:root {
    /* Paleta de Cores */
    --cor-header: #2A2320; 
    --cor-dourado: #B38B3F; 
    --cor-dourado-hover: #967230;
    --cor-papel: #F9F8F4; 
    --cor-texto: #444444;
    --cor-cinza-claro: #666666;
    
    /* WhatsApp */
    --cor-whatsapp: #25D366; 
    --cor-whatsapp-dark: #1da851;
    
    /* Efeitos */
    --sombra-suave: 0 4px 15px rgba(0,0,0,0.08);
    --sombra-elegante: 0 10px 30px rgba(0,0,0,0.15);
    --transicao-padrao: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-header);
    background-image: url('../img/fundoprincipal.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--cor-texto);
    line-height: 1.6;
    padding-bottom: 80px; /* Espaço para a barra fixa do WhatsApp */
}

/* Classe específica para fundo da página de detalhes */
.bg-detalhes {
    background-image: none; 
    background-color: #f0f0f5;
}

/* --- 2. CABEÇALHO (HEADER) --- */
header {
    background-color: var(--cor-header);
    height: 100px;
    width: 100%;
    position: relative;
    z-index: 50;
    border-bottom: 4px solid var(--cor-dourado);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    pointer-events: none;
}

.header-logo {
    height: 170px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    transition: var(--transicao-padrao);
    pointer-events: auto;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navegação */
header nav {
    width: 100%;
    position: relative;
    z-index: 55;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px; 
}

/* Espaço central para o logo */
header nav ul li:nth-child(2) {
    margin-right: 280px; 
}

header a {
    color: #e0e0e0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transicao-padrao);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    white-space: nowrap;
}

header a:hover {
    color: var(--cor-dourado);
    border-bottom-color: var(--cor-dourado);
}

/* --- 3. ESTRUTURA PRINCIPAL (MAIN) --- */
main {
    background-color: var(--cor-papel);
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 0 auto;
    min-height: 80vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
}

/* --- 4. HERO SECTION (HOME) --- */
.hero {
    text-align: center;
    padding: 4rem 1rem 4rem 1rem;
    background: linear-gradient(to bottom, #eaeaea, #f9f8f4);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--cor-header);
    margin-top: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #555;
}

/* Área de Ação (Busca + Botão Mágico) */
.action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.search-container input {
    flex-grow: 1;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid #ddd;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transicao-padrao);
}

.search-container input:focus { border-color: var(--cor-dourado); }

.search-container button {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    background-color: var(--cor-header);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
}

.search-container button:hover { transform: scale(1.05); background-color: var(--cor-dourado); }

.btn-magic {
    background: transparent;
    border: 2px solid var(--cor-dourado);
    color: var(--cor-header);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transicao-padrao);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-magic:hover {
    background: var(--cor-dourado);
    color: white;
    transform: scale(1.05);
}

/* Cards de Passo a Passo (Mini) */
.top-steps-container { margin-top: 20px; }

.eyebrow-text {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 20px;
    font-weight: 700;
}

.passos-hero {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.passo-mini {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px 20px;
    border-radius: 16px;
    width: 220px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao-padrao);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.passo-mini:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--sombra-elegante);
    border-color: var(--cor-dourado);
}

.icon-box {
    font-size: 2rem;
    color: var(--cor-dourado);
    margin-bottom: 15px;
}

.passo-mini h4 {
    color: var(--cor-header);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.passo-mini p {
    font-size: 0.9rem;
    color: var(--cor-cinza-claro);
    line-height: 1.5;
    margin: 0;
}


/* --- 5. GRID DE JOGOS (CATÁLOGO) --- */
.grid-jogos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px;
}

.card-jogo {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra-elegante);
    transition: var(--transicao-padrao);
    display: flex;
    flex-direction: column;
}

.card-jogo:hover { transform: translateY(-7px); }

/* Card Image Wrapper + Badge */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.badge-categoria {
    position: absolute;
    top: 10px; right: 10px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    border-bottom: 4px solid var(--cor-dourado);
    display: block;
}

/* Card Info */
.card-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h3 {
    font-size: 1.3rem;
    color: var(--cor-header);
    margin-bottom: 12px;
    font-weight: 800;
}

.card-stats, .card-stats-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--cor-cinza-claro);
    background-color: #fcfcfc;
    padding: 4px;
    border-radius: 4px;
}

.card-stats i, .card-stats-secondary i {
    color: var(--cor-dourado);
    font-size: 1rem;
    margin-right: 4px;
}

.btn-ver-mais {
    margin-top: 15px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    background-color: var(--cor-dourado);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-ver-mais:hover { background-color: var(--cor-dourado-hover); }


/* --- 6. FAQ (ACORDEÃO) --- */
.fundo-alternado { background-color: #f1efe9; padding: 60px 40px; }
.secao-texto h2 { text-align: center; font-size: 2rem; color: var(--cor-header); margin-bottom: 30px; }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.faq-group h3 { color: var(--cor-dourado); margin-bottom: 15px; font-size: 1.2rem; border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 10px; }

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 600;
    color: var(--cor-header);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background 0.2s;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    color: var(--cor-dourado);
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-item[open] summary::after { content: '-'; }
.faq-item summary:hover { background-color: #fafafa; }
.faq-item p { padding: 0 20px 20px 20px; color: var(--cor-cinza-claro); font-size: 0.95rem; border-top: 1px solid #eee; margin-top: 10px; }


/* --- 7. MODAL (RECOMENDADOR) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.rec-step h3 { color: var(--cor-header); margin-bottom: 25px; font-size: 1.4rem; }

.options-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.options-grid button {
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.options-grid button:hover {
    border-color: var(--cor-dourado);
    background-color: #fff9eb;
    color: var(--cor-dourado);
    transform: translateX(5px);
}

.btn-voltar, .btn-fechar {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background: #eee;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}
.btn-fechar { background: var(--cor-header); color: white; margin-left: 10px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* --- 8. BARRA FIXA WHATSAPP --- */
.whatsapp-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background-color: var(--cor-whatsapp);
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}
.whatsapp-bar:hover { background-color: var(--cor-whatsapp-dark); }
.whatsapp-bar i { font-size: 1.4rem; }

/* --- 9. RODAPÉ --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--cor-header);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}


/* --- 10. PÁGINA DETALHES (LAYOUT IMERSIVO) --- */
.immersive-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Vídeo maior que texto */
    gap: 40px;
    padding: 40px;
    align-items: start;
}

/* Coluna Mídia */
.media-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.video-frame {
    width: 100%;
    height: 400px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 4px solid white;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
}

/* Coluna Informações (Com Miniatura no Título) */
.title-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

.title-header img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid white;
}

.info-column h1 {
    font-size: 2.2rem;
    color: var(--cor-header);
    line-height: 1.1;
    margin-bottom: 5px;
    display: block;
}

/* Traço dourado abaixo do título */
.title-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--cor-dourado);
    margin-top: 8px;
    border-radius: 2px;
}

/* Grid de Especificações */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.spec-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--cor-dourado);
}

.spec-item span {
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
}

.description-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--cor-header);
}

.description-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.btn-alugar-big {
    display: block;
    width: 100%;
    background-color: var(--cor-whatsapp);
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-alugar-big:hover {
    background-color: var(--cor-whatsapp-dark);
    transform: translateY(-2px);
}

.security-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}


/* --- 11. LAYOUT ZIG-ZAG (HISTÓRIA DO JOGO) --- */
.game-story-container {
    padding: 60px 0;
    background-color: white;
}

.zig-zag-item {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
}

/* Alternância Automática */
.zig-zag-item:nth-child(even) {
    flex-direction: row-reverse;
    background-color: #fcfcfc;
    padding: 60px 40px;
    border-radius: 20px;
}

.zz-text { flex: 1; }

.zz-text h2 {
    font-size: 2rem;
    color: var(--cor-header);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.zz-text h2 i { color: var(--cor-dourado); font-size: 1.5rem; }
.zz-text p { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 20px; }

.zz-list { list-style: none; padding: 0; }
.zz-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--cor-texto);
    position: relative;
    padding-left: 20px;
}

.zz-list li::before {
    content: '•';
    color: var(--cor-dourado);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Lista de Check */
.check-list li { padding-left: 0; display: flex; align-items: center; gap: 10px; }
.check-list li::before { content: none; }
.check-list li i { color: var(--cor-whatsapp); }

.zz-image { flex: 1; position: relative; }

.zz-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--sombra-elegante);
    transition: transform 0.3s ease;
}

.zz-image img:hover { transform: scale(1.02); }

/* Decoração atrás da imagem */
.zz-image::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 2px solid var(--cor-dourado);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.zig-zag-item:nth-child(even) .zz-image::after { left: -20px; }


/* --- 12. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 900px) {
    header nav ul li:nth-child(2) { margin-right: 0; }
    header nav ul { gap: 15px; padding-left: 0; }
    .header-logo { height: 100px; }
    header { flex-direction: column; align-items: center; height: auto; padding: 10px; }
    .logo-container { position: static; transform: none; margin-bottom: 10px; }
    
    .hero h1 { font-size: 1.8rem; }
    .search-container { flex-direction: column; }
    .search-container input, .search-container button { width: 100%; }
    .btn-magic { width: 100%; justify-content: center; }
    
    .passo-mini { width: 100%; max-width: 300px; display: flex; align-items: center; text-align: left; padding: 15px; }
    .icon-box { margin-bottom: 0; margin-right: 15px; }
    
    .faq-grid { grid-template-columns: 1fr; }
    
    /* Layout Detalhes */
    .immersive-layout { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .video-frame { height: 250px; }
    .info-column h1 { font-size: 1.8rem; }
    .tech-specs { grid-template-columns: repeat(2, 1fr); }
    .title-header { flex-direction: row; }
    .title-header img { width: 70px; height: 70px; }
    
    /* Zig Zag */
    .zig-zag-item, .zig-zag-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
        padding: 0 20px;
    }
    .zz-image img { height: 250px; }
    .zz-image::after { display: none; }
}
/* ... (Mantenha todo o seu CSS anterior) ... */

/* --- BOTÃO DE VOLTAR (PÁGINA DETALHES) --- */
.back-link-container {
    max-width: 1200px;
    margin: 20px auto 0 auto; /* Espaço do topo */
    padding: 0 40px; /* Alinhado com o conteúdo */
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cor-dourado); /* Dourado para destacar no fundo escuro se houver, ou claro */
    /* Se o fundo for escuro (wallpaper), use cor clara: */
    /* color: white; */ 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.9); /* Fundo branquinho para leitura */
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: white;
    transform: translateX(-5px); /* Efeitinho de seta voltando */
    color: var(--cor-header);
}

/* Ajuste Mobile */
@media (max-width: 900px) {
    .back-link-container {
        padding: 0 20px;
        margin-top: 15px;
    }
}

/* --- Destaque de Texto no Hero --- */
.texto-destaque {
    color: var(--cor-dourado); /* Usa a cor da marca */
    font-weight: 800; /* Extra negrito */
    font-size: 1.1em; /* 10% maior que o texto ao redor */
    letter-spacing: 0.5px; /* Espaçamento leve para elegância */
    text-transform: uppercase; /* (Opcional) Deixa em caixa alta para chamar mais atenção */
}