/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary: #00d4ff;       /* Azul neon da Exon Vault */
    --bg: #0b0b0b;            /* Fundo escuro */
    --card-bg: #151515;       /* Fundo dos cards */
    --text: #ffffff;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: #1a1a1a;
    padding: 10px 5%;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img { height: 40px; }

/* Menu Desktop */
.menu ul { display: flex; list-style: none; }
.menu ul li { margin: 0 15px; }
.menu ul li a { color: #ccc; text-decoration: none; font-weight: 500; transition: 0.3s; }
.menu ul li a:hover { color: #007bff; }

.header-actions { display: flex; align-items: center; gap: 15px; }

/* Busca */
.search-box {
    display: flex;
    background: #333;
    padding: 5px 12px;
    border-radius: 20px;
}
.search-box input { background: transparent; border: none; color: white; outline: none; width: 150px; }
.search-box button { background: transparent; border: none; color: #888; cursor: pointer; }
.search-toggle { display: none; background: none; border: none; color: white; font-size: 18px; cursor: pointer; }

/* Carrinho e Login */
.cart-icon { position: relative; font-size: 20px; cursor: pointer; }
.cart-count { position: absolute; top: -8px; right: -8px; background: #007bff; font-size: 10px; padding: 2px 6px; border-radius: 50%; }
.btn-login { border: 1px solid #fff; color: #fff; padding: 6px 15px; border-radius: 5px; text-decoration: none; font-size: 14px; }

/* Overlay (Fundo escuro ao abrir menu) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 998;
}

/* --- RESPONSIVIDADE --- */
.mobile-menu-icon { display: none; cursor: pointer; font-size: 22px; z-index: 1001; }
.mobile-only { display: none; }

/* --- VITRINE (GRID RESPONSIVA) --- */
.section-title {
    margin: 40px 0 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: var(--primary);
}

.games-grid {
    display: grid;
    /* Grid que se ajusta sozinha: mínimo 250px por card */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 25px;
    padding-bottom: 50px;
}

/* --- CARD DO JOGO --- */
.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #222;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Mantém todos os cards da linha com a mesma altura */
    transition: transform var(--transition), border-color var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.1);
}

/* --- IMAGEM QUADRADA (O SEGREDO) --- */
.game-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Força o formato quadrado 1:1 */
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche o quadrado sem distorcer a imagem */
    display: block;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
}

/* --- INFORMAÇÕES DO PRODUTO --- */
.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o conteúdo ocupar o espaço e alinhar o botão embaixo */
    justify-content: space-between;
}

.game-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta o texto se o título for muito longo */
}

.price-box {
    margin-bottom: 15px;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* --- BOTÃO DE COMPRA --- */
.btn-buy {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.btn-buy:hover {
    background: #00b8e6;
    transform: scale(1.02);
}

/* --- RODAPÉ --- */
.main-footer {
    background-color: #0a0a0a; /* Preto mais profundo que as outras seções */
    padding: 60px 8% 20px;
    color: #fff;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Coluna da logo é maior */
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: none;
    font-weight: 600;
}

.footer-logo {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span { color: #00f2ff; }

.footer-col p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: #00f2ff; padding-left: 5px; }

/* Ícones Sociais */
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}
.social-icons a:hover { color: #00f2ff; }

/* Pagamentos */
.payment-methods {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    font-size: 24px;
    color: #ccc;
}

/* Copyright */
.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 12px;
}

/* --- RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 992px) {
    .mobile-only { display: block; }
    .mobile-menu-icon { display: block; }

    /* Menu Lateral */
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1a1a1a;
        padding-top: 80px;
        transition: 0.4s;
        z-index: 999;
    }
    .menu.active { right: 0; }
    .menu ul { flex-direction: column; align-items: center; }
    .menu ul li { margin: 15px 0; }
    
    .menu-overlay.active { display: block; }

    /* Busca vira ícone no Mobile */
    .search-toggle { display: block; }
    .search-box {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #222;
        border-radius: 0;
        padding: 10px;
    }
    .search-box.active { display: flex; }
    .search-box input { width: 100%; }
    
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 colunas no tablet */
    }
    .footer-col.about {
        grid-column: span 2; /* Logo ocupa a largura toda no tablet */
    }
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        right: -100%;
        background-color: #1a1a1a;
        width: 100%;
        height: calc(100vh - 75px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        right: 0;
    }

    .search-box {
        display: none; display: none; /* Esconde busca no mobile para limpar o topo, ou pode mover para dentro do menu */
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center;}

    .social-icons, .payment-badges { justify-content: center; } 
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Cards menores no celular */
        gap: 15px;
    }
    
    .game-info {
        padding: 12px;
    }
    
    .game-info h3 {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 18px;
    }
}