/* ==========================================================================
   GEEK SKIN - ESTILOS E DESIGN SYSTEM NEON CYBERPUNK
   ========================================================================== */

/* Fontes Premium */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #07080b;
    --bg-card: rgba(15, 18, 28, 0.75);
    --neon-pink: #bc00dd;
    --neon-pink-glow: rgba(188, 0, 221, 0.4);
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.4);
    --neon-green: #39ff14;
    --neon-green-glow: rgba(57, 255, 20, 0.4);
    --text-main: #f0f2f5;
    --text-muted: #8b9bb4;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Geral & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1c2030;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Cyberpunk Dinâmico */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(188, 0, 221, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.08) 0%, transparent 40%);
    opacity: 0.8;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 95%);
    pointer-events: none;
}

/* Tipografia */
h1, h2, h3, .retro-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 8, 11, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

.logo span {
    color: var(--neon-cyan);
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
    vertical-align: middle;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px var(--neon-cyan));
}

.logo-img-footer {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
    vertical-align: middle;
}

.logo-img-footer:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

.scoreboard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.score-num {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-green-glow);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
    position: relative;
}

.hero-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid var(--neon-cyan-glow);
    padding: 0.3rem 1rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--neon-pink), #a000c0);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 20px var(--neon-pink-glow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(188, 0, 221, 0.7);
    filter: brightness(1.1);
}

/* Arcade Cabinet Section (O Game) */
.arcade-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.arcade-container {
    background: linear-gradient(180deg, #10121b 0%, #0c0d15 100%);
    border: 4px solid #1a1c29;
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--neon-pink-glow);
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Header do Gabinete */
.arcade-marquee {
    background: #141624;
    border-bottom: 4px solid #1a1c29;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marquee-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-pink);
    flex-grow: 1;
    text-transform: uppercase;
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sound-toggle:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Tela do Game */
.game-screen {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #020205;
}

/* Efeito CRT Retro de Scanline */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    opacity: 0.85;
}

.crt-overlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(circle, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

/* Painel de Controles Físicos do Gabinete (Visual) */
.arcade-control-panel {
    background: #181a29;
    border-top: 4px solid #20233b;
    padding: 1.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.joystick-container {
    width: 60px;
    height: 60px;
    background: #0f101a;
    border-radius: 50%;
    position: relative;
    border: 3px solid #282b45;
}

.joystick-ball {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #ff3b3b 0%, #9e0000 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: joystickSwing 4s infinite ease-in-out;
}

@keyframes joystickSwing {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-30%, -60%); }
    50% { transform: translate(-70%, -40%); }
    75% { transform: translate(-40%, -30%); }
}

.arcade-buttons {
    display: flex;
    gap: 1rem;
}

.arcade-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 4px 0 #000;
}

.btn-blue { background: radial-gradient(circle, var(--neon-cyan) 0%, #007c85 100%); }
.btn-pink { background: radial-gradient(circle, var(--neon-pink) 0%, #6e0082 100%); }
.btn-green { background: radial-gradient(circle, var(--neon-green) 0%, #1c7c00 100%); }

/* Controles de Toque na Tela para Mobile (Sobreposição) */
.mobile-controls {
    display: none;
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
    pointer-events: none;
}

.mobile-btn {
    width: 65px;
    height: 65px;
    background: rgba(20, 22, 37, 0.85);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-btn:active {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: scale(0.92);
}

.dpad {
    display: flex;
    gap: 0.8rem;
}

.btn-shoot {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(188, 0, 221, 0.2);
    width: 70px;
    height: 70px;
}

.btn-shoot:active {
    background: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}

/* Vitrine de Produtos Geek */
.products-section {
    max-width: 1200px;
    margin: 6rem auto 4rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-muted);
}

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

/* Card do Produto Glassmorphism */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-cyan-glow), transparent 40%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan-glow);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    z-index: 5;
}

.badge-new {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.badge-discount {
    background: var(--neon-pink);
    color: #fff;
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-rating {
    display: flex;
    color: #ffd700;
    gap: 0.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    margin-top: auto;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    font-weight: bold;
}

.buy-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    border: 1px solid var(--neon-cyan-glow);
    padding: 0.8rem;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.buy-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* Modais (Gamificação Cupom) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f111a;
    border: 2px solid var(--neon-pink);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px var(--neon-pink-glow);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green-glow);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

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

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.coupon-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--neon-cyan);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.coupon-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    font-weight: bold;
    letter-spacing: 2px;
}

.btn-copy {
    background: var(--neon-cyan-glow);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 2rem;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Rodapé */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(5, 6, 8, 0.95);
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-copyright {
    font-size: 0.8rem;
    color: #555c6d;
}

/* Responsividade Mobile Extrema */
@media (max-width: 768px) {
    header .header-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .arcade-section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    /* Configuração de Gabinete Vertical Expandido no Celular */
    .game-screen {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 100px; /* Cria um espaço estático e físico para o gamepad abaixo */
    }
    
    canvas {
        aspect-ratio: 4 / 3;
        width: 100%;
        height: auto;
        display: block;
    }
    
    /* Painel de Controle de Toque Dedicado (Abaixo da tela de jogo) */
    .mobile-controls {
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px; /* Encaixa perfeitamente no padding inferior */
        background: linear-gradient(180deg, #111320 0%, #090a10 100%);
        border-top: 3px solid #1c1e2f;
        padding: 0 20px;
        box-sizing: border-box;
        pointer-events: auto; /* Permite toques sem conflitos */
        z-index: 15;
    }
    
    /* Estilo de Botões Translúcidos Premium */
    .mobile-btn {
        width: 54px;
        height: 54px;
        background: rgba(255, 255, 255, 0.04);
        border: 2px solid rgba(0, 240, 255, 0.4);
        opacity: 0.75;
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
        font-size: 1.25rem;
        transition: all 0.1s ease;
    }
    
    .mobile-btn:active {
        background: var(--neon-cyan);
        color: var(--bg-dark);
        opacity: 1;
        box-shadow: 0 0 20px var(--neon-cyan);
        transform: scale(0.92);
    }
    
    .dpad {
        display: flex;
        gap: 0.8rem;
    }
    
    .btn-shoot {
        width: 60px;
        height: 60px;
        border-color: rgba(188, 0, 221, 0.4);
        box-shadow: 0 0 12px rgba(188, 0, 221, 0.1);
        font-size: 1.35rem;
    }
    
    .btn-shoot:active {
        background: var(--neon-pink);
        color: #fff;
        opacity: 1;
        box-shadow: 0 0 20px var(--neon-pink);
    }
    
    .arcade-marquee {
        padding: 1rem;
    }
    
    .arcade-control-panel {
        display: none; /* Esconder painel de controle físico decorativo no celular */
    }
    
    .products-section {
        padding: 0 1rem;
        margin: 4rem auto 2rem auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }
}

