/* ============================================
   🌐 RESET E CONFIGURAÇÕES GERAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Arial', sans-serif;
}

body {
    background: #0a0a0a;
    color: #f0f0f0;
    overflow-x: hidden; /* Previne rolagem horizontal */
}

/* ============================================
   🔞 AGE GATE - VERIFICAÇÃO DE IDADE
   ============================================ */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.age-card {
    background: #1e1e2f;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    border: 1px solid #ff3366;
}

.age-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
}

#confirmAge {
    background: #ff3366;
    color: white;
}

#denyAge {
    background: #333;
    color: white;
}

/* ============================================
   📌 HEADER - CABEÇALHO E NAVEGAÇÃO
   ============================================ */
header {
    background: #111;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ff3366;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: #ff3366;
    font-size: 2rem;
}

nav ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

nav a:hover {
    color: #ff3366;
}

/* ============================================
   🎯 HERO - SEÇÃO PRINCIPAL (BOTÕES TELEGRAM/DISCORD)
   ============================================ */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(145deg, #1a1a2a, #0f0f1a);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
}

.cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Botão padrão */
.btn {
    background: #ff3366;
    padding: 12px 28px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover {
    background: #ff6699;
    transform: translateY(-2px);
}

/* Botão Telegram */
.btn.telegram {
    background: linear-gradient(90deg, #0088cc, #00aaff);
}

.btn.telegram:hover {
    background: linear-gradient(90deg, #00aaff, #0088cc);
}

/* Botão Discord */
.btn.discord {
    background: linear-gradient(90deg, #5865F2, #4752c4);
}

.btn.discord:hover {
    background: linear-gradient(90deg, #4752c4, #5865F2);
}

/* Efeito de brilho nos botões */
.btn.telegram:hover, .btn.discord:hover {
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   🔍 BARRA DE PESQUISA
   ============================================ */
.search-bar {
    max-width: 500px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid #ff3366;
    background: #1a1a2a;
    color: white;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #ff6699;
}

/* ============================================
   🎮 GAME GRID - GRADE DE JOGOS (PÁGINA INICIAL)
   ============================================ */
.game-grid {
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-grid h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ff3366;
    padding-left: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

/* ============================================
   🃏 CARD DO JOGO (PÁGINA INICIAL)
   ============================================ */
.game-card {
    background: #1a1a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #2a2a3a;
    cursor: pointer;
    animation: fadeIn 0.4s ease forwards;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #ff3366;
    box-shadow: 0 10px 25px rgba(255,51,102,0.2);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.game-card h4 {
    padding: 1rem 1rem 0.3rem;
    font-size: 1.1rem;
    color: #fff;
}

/* Versão do jogo no card */
.game-version {
    padding: 0 1rem;
    color: #ff6699;
    font-size: 0.8rem;
    font-weight: bold;
}

.game-card p {
    padding: 0.3rem 1rem;
    color: #aaa;
    font-size: 0.85rem;
}

/* Tag especial (+MOD, +PT-BR, etc) */
.game-tag {
    display: inline-block;
    background: #ff3366;
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin: 0.5rem 1rem;
    font-weight: bold;
}

/* Botão "VER DETALHES" no card */
.play-btn {
    display: block;
    background: linear-gradient(90deg, #ff3366, #ff6b6b);
    color: white;
    text-align: center;
    padding: 10px;
    margin: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.play-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   📄 PAGINAÇÃO
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.page-btn {
    background: #1e1e2e;
    border: 1px solid #ff3366;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #ff3366;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #ff3366;
}

/* ============================================
   📌 FOOTER - RODAPÉ
   ============================================ */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #222;
    color: #888;
}

/* ============================================
   📱 PÁGINA DE DETALHES DO JOGO (jogo.html)
   ============================================ */
.game-details-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

.game-details {
    background: #1a1a2a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a3a;
}

/* Cabeçalho com imagem de capa */
.game-details-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.game-details-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details-header .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 2rem;
}

.game-details-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

/* Badge de versão */
.game-details-header .game-version-badge {
    display: inline-block;
    background: #ff3366;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Seção de informações (grid 2 colunas) */
.game-info-section {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Cards de informação */
.info-card {
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2a2a3a;
}

.info-card h3 {
    color: #ff3366;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 3px solid #ff3366;
    padding-left: 10px;
}

/* Linha de informação (ex: Versão: 1.0) */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #222;
}

.info-label {
    font-weight: bold;
    color: #888;
}

.info-value {
    color: white;
}

/* Link do desenvolvedor */
.developer-link {
    color: #ff6699;
    text-decoration: none;
    transition: 0.2s;
    font-weight: bold;
}

.developer-link:hover {
    color: #ff3366;
    text-decoration: underline;
}

/* ============================================
   📖 DESCRIÇÃO E GÊNEROS
   ============================================ */
.description {
    grid-column: span 2;
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #2a2a3a;
}

.description h3 {
    color: #ff3366;
    margin-bottom: 1rem;
}

.description p {
    line-height: 1.6;
    color: #ccc;
}

/* Seção de gêneros */
.generos-section {
    margin-top: 1.5rem;
}

.generos-title {
    color: #ff3366;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
}

.generos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genero-tag {
    background: #2a2a3a;
    color: #ff6699;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid #ff3366;
}

.genero-tag:hover {
    background: #ff3366;
    color: white;
    transform: scale(1.05);
}

/* ============================================
   📥 STATUS BADGES (PC/ANDROID DISPONIBILIDADE)
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.status-available {
    background: #4CAF50;
    color: white;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.status-unavailable {
    background: #f44336;
    color: white;
}

.status-soon {
    background: #ff9800;
    color: white;
}

.status-badge:hover {
    transform: scale(1.05);
    transition: 0.2s;
}

/* ============================================
   📦 DOWNLOADS MÚLTIPLOS (PARTE 1, PARTE 2, ETC)
   ============================================ */
/* Container principal */
.downloads-container {
    grid-column: span 2;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #1a1a2a 0%, #0f0f1a 100%);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #2a2a3a;
}

/* Cabeçalho dos downloads */
.downloads-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ff3366;
}

.downloads-icon {
    font-size: 1.8rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.downloads-title {
    color: #ff3366;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}

/* Grupo de download (cada parte) */
.download-group {
    background: #111;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #2a2a3a;
    transition: all 0.3s ease;
}

.download-group:hover {
    border-color: #ff3366;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,51,102,0.2);
}

/* Cabeçalho do grupo */
.download-group-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(90deg, #1a1a2a, #0f0f1a);
    border-bottom: 1px solid #2a2a3a;
}

.download-group-icon {
    font-size: 1.4rem;
}

.download-group-title {
    flex: 1;
    font-size: 1rem;
    font-weight: bold;
    color: #ff6699;
}

.download-group-badge {
    background: #ff3366;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
}

/* Botões de download */
.download-group-buttons {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

/* Estilo dos botões de download */
.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho ao passar o mouse */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

/* Botão PC (azul) */
.download-btn.pc {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

/* Botão Android (verde) */
.download-btn.android {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.download-btn-icon {
    font-size: 1.8rem;
}

.download-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-btn-platform {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.download-btn-name {
    font-size: 1rem;
    font-weight: bold;
}

.download-btn-arrow {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Rodapé do grupo com informações extras */
.download-group-footer {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #0a0a0a;
    border-top: 1px solid #1a1a2a;
}

.download-group-info {
    font-size: 0.7rem;
    color: #666;
}

/* Download único (sem partes) */
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.download-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #2a2a3a;
}

.download-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #aaa;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.status-green {
    background: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

.status-dot.status-red {
    background: #f44336;
    box-shadow: 0 0 5px #f44336;
}

/* ============================================
   📸 SCREENSHOTS
   ============================================ */
.screenshots {
    grid-column: span 2;
    margin-top: 1rem;
}

.screenshots h3 {
    color: #ff3366;
    margin-bottom: 1rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.screenshots-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.screenshots-grid img:hover {
    transform: scale(1.05);
}

/* ============================================
   🔙 BOTÃO VOLTAR
   ============================================ */
.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    color: #ff3366;
    text-decoration: none;
    font-weight: bold;
}

.back-button:hover {
    text-decoration: underline;
}

/* ============================================
   📄 PÁGINA SOBRE (sobre.html)
   ============================================ */
.sobre-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.sobre-container h1 {
    color: #ff3366;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.sobre-card {
    background: #1a1a2a;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #2a2a3a;
}

.sobre-card h2 {
    color: #ff3366;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sobre-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Links de contato */
.contato-link {
    color: #ff6699;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.contato-link:hover {
    color: #ff3366;
    text-decoration: underline;
}

/* ============================================
   🎨 ANIMAÇÕES E SCROLLBAR
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2a;
}

::-webkit-scrollbar-thumb {
    background: #ff3366;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6699;
}

/* ============================================
   📱 RESPONSIVIDADE (CELULAR E TABLET)
   ============================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    /* Ajustes página de detalhes */
    .game-info-section {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .description,
    .download-buttons,
    .screenshots,
    .downloads-container {
        grid-column: span 1;
    }
    
    .game-details-header h1 {
        font-size: 1.5rem;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Ajustes downloads múltiplos */
    .downloads-container {
        grid-column: span 1;
        padding: 1rem;
    }
    
    .download-group-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        justify-content: center;
    }
    
    .download-group-header {
        flex-wrap: wrap;
    }
    
    .download-group-badge {
        order: 3;
        width: 100%;
        text-align: center;
    }
    
    .download-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* ============================================
   📱 CELULAR PEQUENO (até 480px)
   ============================================ */
@media (max-width: 480px) {
    .game-details-container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .game-details-header {
        height: auto;
        min-height: 250px;
    }
    
    .game-details-header h1 {
        font-size: 1.2rem;
    }
    
    .game-details-header .overlay {
        padding: 1rem;
    }
    
    .game-info-section {
        padding: 0.5rem;
    }
    
    .info-card {
        padding: 0.8rem;
    }
    
    /* Empilha labels e valores */
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-value {
        text-align: left;
    }
    
    .description h3 {
        font-size: 1.1rem;
    }
    
    .description p {
        font-size: 0.85rem;
    }
    
    /* Gêneros responsivos */
    .genero-tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    /* Screenshots responsivos */
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    /* Downloads responsivos */
    .downloads-header {
        margin-bottom: 1rem;
    }
    
    .downloads-icon {
        font-size: 1.4rem;
    }
    
    .downloads-title {
        font-size: 1rem;
    }
    
    .download-group-title {
        font-size: 0.8rem;
    }
    
    .download-group-icon {
        font-size: 1.1rem;
    }
    
    .download-group-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .download-btn-icon {
        font-size: 1.3rem;
    }
    
    .download-btn-platform {
        font-size: 0.6rem;
    }
    
    .download-btn-name {
        font-size: 0.75rem;
    }
    
    .back-button {
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

/* ============================================
   🛡️ PREVENIR OVERFLOW (CONTEÚDO SAINDO DA TELA)
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.info-value,
.developer-link,
.download-btn-text {
    word-break: break-word;
    overflow-wrap: break-word;
}