@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/*CONFIGURAÇÕES GERAIS / PALETA CLEAN & GAMES*/
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #111116;
    --text-muted: #666673;
    --primary-color: #6366f1; 
    --accent-color: #00ff87;  
    --whats-color: #25d366;
    --font-stack: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 800;
}

.section-title-left {
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    border-left: 5px solid var(--primary-color);
    padding-left: 12px;
    display: inline-block;
    width: 100%;
}

.section-title-lancamento {
    text-align: left;
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 800;
    border-left: 5px solid var(--primary-color);
    padding-left: 12px;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* LETREIRO FIXO NO TOPO CORRIGIDO */
#ticker-top {
    background: #ffffff; 
    color: #25d366;    
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    height: 40px;
}

.ticker-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticker-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap;
}

.ticker-item.active {
    position: relative;
    opacity: 1;
}

/* SPA VIEW MANAGEMENT */
#main-content {
    flex: 1 0 auto;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/*CABECALHO (HEADER)*/
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 40px; 
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 4rem;
}

#menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
}

nav a:hover {
    color: var(--primary-color);
}

/* NAV RESPONSIVO MOBILE - HAMBÚRGUER */
@media (max-width: 767px) {
    #menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
        border-top: 1px solid #f1f5f9;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/*HERO BANNER*/
.hero-banner {
    width: 100%;
    background-color: #0b0c10; 
}

.banner-img-container {
    width: 100%;
    position: relative;
    display: block;
    aspect-ratio: 16 / 7; 
    overflow: hidden;
}

@media (max-width: 767px) {
    .banner-img-container {
        aspect-ratio: 4 / 3; 
    }
}

.banner-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    color: #fff;
    z-index: 2;
}

.banner-overlay h1 {
    font-size: 2.8rem;
    font-weight: 900;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 15px;
    margin-top: 40px;
}

.banner-overlay p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 25px;
    color: #cccccc;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .banner-overlay {
        padding: 0 5%;
        text-align: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.7);
    }
    .banner-overlay h1 { font-size: 1.8rem; }
    .banner-overlay p { font-size: 1rem; }
}

/*SEÇÃO DESTAQUES E NOVIDADES*/
#destaques-novidades {
    margin-bottom: 40px; 
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px; 
    align-items: stretch;
}

@media (min-width: 768px) {
    .split-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.column-produtos-home {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Previne que blocos e títulos entrem embaixo um do outro */
.block-home-item {
    width: 100%;
    clear: both;
    display: block;
}

.featured-card {
    max-width: 100%;
    margin: 0;
}

.column-novidades {
    display: flex;
    flex-direction: column;
}

.arcade-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.arcade-content h3 {
    font-size: 1.8rem;
    margin: 15px 0;
}

.arcade-content p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Div Interna de Imagem do Fliperama */
.arcade-image-box {
    width: 100%;
    max-height: 680px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.arcade-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-neon {
    background: var(--accent-color);
    color: #111116;
    padding: 4px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.btn-arcade {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-arcade:hover {
    background: var(--accent-color);
    color: #111116;
    box-shadow: 0 0 15px var(--accent-color);
}

/*BARRA DE FILTROS COMPACTA (CATÁLOGO)*/
#catalogo-page {
    padding-top: 90px; 
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 800px; 
    margin: 0 auto 35px auto; 
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-stack);
    outline: none;
    transition: border-color 0.3s;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-stack);
    background-color: #fff;
    outline: none;
    cursor: pointer;
}

.search-box input:focus, .filter-group select:focus {
    border-color: var(--primary-color);
}

/*GRID DE JOGOS E ALINHAMENTO DE CARDS*/
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;         
    flex-direction: column;
    height: 100%;          
}

.game-card:hover {
    transform: translateY(-5px);
}

/* Imagens no PC (Telas Desktop) */
.game-img {
    width: 100%;
    height: 230px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    overflow:hidden;
}

.game-img img {
    width:100%;
    height:100%;
    object-fit:contain;
}

/* Tamanho controlado para as imagens na Home (Destaques e Lançamentos no PC) */
@media (min-width: 768px) {
    .featured-card .game-img img,
    #lancamento-dinamico .game-card .game-img img {
        height: 200px; 
        object-fit: contain; 
        background-color: #ffffff; 
    }
}

/* CORREÇÃO MOBILE: Tamanho das imagens de Destaque, Lançamento e Catálogo reduzidos */
@media (max-width: 767px) {
    .game-img img,
    .featured-card .game-img img,
    #lancamento-dinamico .game-card .game-img img {
        height: 200px !important; /* Tamanho compacto e uniforme no smartphone */
        object-fit: contain !important;
        background-color: #ffffff;
    }
}

.game-info {
    padding: 20px;
    display: flex;         
    flex-direction: column;
    flex-grow: 1;          
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.platform {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.btn-details {
    display: block;
    width: 100%;
    text-align: center;
    background: #111116;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto; 
}

.btn-details:hover {
    background: var(--primary-color);
}

/*PÁGINA DO PRODUTO INTERNO*/
.btn-back {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-stack);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

@media (min-width: 768px) {
    .product-detail-layout {
        grid-template-columns:420px 1fr;
        align-items:start;
    }
}

.carousel-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #ffffff; 
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;         
    align-items: center;   
    justify-content: center; 
    background-color: #fff;
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    width: auto;          
    height: auto;          
    object-fit: contain;   
    user-select: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 5;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }

.carousel-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumb-item.active {
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-meta h1 { font-size: 2.2rem; margin-bottom: 10px; font-weight: 800; }

.product-description { 
    color: var(--text-main); 
    margin: 20px 0; 
    font-weight: 500;
}

.desc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.desc-item i {
    color: #111116; 
    font-size: 0.85rem;
    flex-shrink: 0;
}

.payment-methods {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-methods h4 {
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-methods ul {
    list-style: none; 
    padding: 0;
}

.payment-methods li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-whatsapp-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--whats-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-whatsapp-buy:hover {
    background: #1eb954;
}

/*SOBRE NÓS*/
.about-section {
    background: #111116;
    color: #fff;
    padding: 80px 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.about-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content p {
    max-width: 700px;
    font-size: 1.1rem;
    color: #aaa;
    margin: 0 auto 30px auto;
}

.creative-quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

/*INSTAGRAM GRID*/
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; 
    max-width: 900px; 
    margin: 0 auto; 
}

@media (min-width: 768px) {
    .instagram-grid {
        gap: 20px; 
    }
}

.insta-post {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

/*RODAPÉ (FOOTER)*/
footer {
    background: #09090b;
    color: #666;
    padding: 40px 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.tiktok { background: #000000; border: 1px solid #fff; }
.whats { background: var(--whats-color); }

/* WHATSAPP FLUTUANTE DECORATION CLEAN */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whats-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
    text-decoration: none; 
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/*TELA DE CARREGAMENTO*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SMARTPHONE ULTRA-MOBILE (Telas <= 480px) */
@media (max-width: 480px) {
    .header-container {
        flex-direction: row; 
        justify-content: space-between;
        padding: 10px 0;
    }
    .logo {
        height: 3rem;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .insta-post {
        aspect-ratio: 1 / 1;
    }

    .filter-bar {
        padding: 15px;
        gap: 10px;
    }
    .filter-group {
        min-width: 100%;
    }

    .section-padding {
        padding: 40px 0;
    }
    .product-detail-layout {
        padding: 15px;
    }
    .arcade-banner {
        padding: 25px;
    }

    .section-title {
        font-size: 1.6rem;
    }
    .product-meta h1 {
        font-size: 1.7rem;
    }
}

@media (max-width:767px){

    .carousel-main{
        height:300px;
    }

    .carousel-slide img{
        max-width:90%;
        max-height:90%;
    }

    .product-detail-layout{
        padding:20px;
    }

    .product-meta{
        width:100%;
    }

    .product-meta h1{
        font-size:1.7rem;
        word-break:break-word;
    }
}
