/**
 * ScriptHub - Estilização Global Corporativa (Tema Dark Premium)
 * Arquivo: assets/css/style.css
 * Descrição: Otimizado com efeitos de iluminação responsivos, profundidade de camadas e foco mobile.
 * Desenvolvido com foco em performance móvel e fidelidade visual
 * Status: Senior Full Stack - Pronto para Produção (100% Funcional)
 */

/* ==========================================================================
   1. Reset e Variáveis de Cores Universais
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #0a0e17;       /* Fundo mais profundo para dar contraste com as luzes */
    --bg-card: #141b2b;       /* Cards levemente mais escuros para casar com o efeito glass */
    --bg-header: #111724;     /* Header integrado à escala de tons do layout */
    --purple-primary: #635bff;/* Roxo destacado dos botões principais */
    --purple-hover: #4e46e5;  /* Roxo com foco/hover otimizado */
    --text-white: #ffffff;    /* Texto principal */
    --text-muted: #7e8da4;    /* Subtítulos e contadores com melhor legibilidade */
    --star-yellow: #ffb800;   /* Cor das estrelas de avaliação */
    --green-price: #00ff7f;   /* Verde neon de alta conversão para os preços */
    --glow-purple: rgba(99, 91, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(99, 91, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 40%, rgba(0, 230, 114, 0.04) 0%, transparent 35%);
    background-attachment: fixed;
    color: var(--text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px; /* Espaço para navegação PWA se necessário */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ==========================================================================
   2. Layout Container
   ========================================================================== */
.container-main {
    width: 100%;
    max-width: 480px; /* Ajuste focado na visualização mobile perfeita da imagem */
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================================================
   3. Header & Seletor de Idiomas
   ========================================================================== */
.site-header {
    background-color: rgba(17, 23, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 16px;
    display: table;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: table-cell;
    vertical-align: middle;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-white);
}

.header-logo i {
    color: var(--purple-primary);
    margin-right: 6px;
    filter: drop-shadow(0 0 8px var(--purple-primary));
}

.header-actions {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    position: relative;
}

/* Dropdown Customizado de Idiomas */
.lang-dropdown {
    display: inline-block;
    position: relative;
}

.lang-btn {
    background-color: #1c2438;
    color: var(--text-white);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: #232d47;
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-btn img {
    width: 16px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 2px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 115%;
    background-color: #141b2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 110px;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none; /* Controlado via JS ou active */
    overflow: hidden;
    animation: menuFadeIn 0.2s ease-out forwards;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-menu.active {
    display: block;
}

.lang-item {
    padding: 10px 14px;
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.lang-item:hover, .lang-item.active {
    background-color: var(--purple-primary);
    color: var(--text-white);
}

.lang-item img {
    width: 16px;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 2px;
}

/* ==========================================================================
   4. Banner Principal / Apresentação (Apresentação com tags)
   ========================================================================== */
.hero-banner {
    padding: 35px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(28, 35, 51, 0.8) 0%, rgba(20, 27, 43, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.25) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin-bottom: 10px;
    max-width: 95%;
    background: linear-gradient(120deg, #ffffff 40%, #c4c1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
    max-width: 90%;
    line-height: 1.4;
}

.btn-explorar {
    position: relative;
    z-index: 1;
    display: inline-block;
    background-color: var(--purple-primary);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px var(--glow-purple);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-explorar:hover {
    background-color: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.45);
}

.btn-explorar:active {
    transform: translateY(0);
}

/* Carrossel de Indicadores */
.banner-carousel-dots {
    text-align: center;
    margin-top: 18px;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.25s ease;
}

.dot.active {
    background-color: var(--purple-primary);
    width: 14px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--purple-primary);
}

/* ==========================================================================
   5. Grid de Produtos (Scripts em Destaque)
   ========================================================================== */
.scripts-section {
    margin-top: 20px;
}

.section-title-container {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: inline-block;
    padding: 0 10px;
}

/* Duas colunas alinhadas perfeitamente por tabelas ou blocos inline-block para WeasyPrint/Móvel */
.products-grid {
    display: block;
    width: 100%;
}

.product-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 12px;
    margin-left: -12px;
    margin-right: -12px;
}

.product-cell {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 91, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.product-thumb-container {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #0c111d;
}

.product-thumb {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.04);
}

.product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.product-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    color: var(--green-price);
    font-weight: 800;
    font-size: 13px;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.15);
}

.rating-box {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 184, 0, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--star-yellow);
}

.rating-box i {
    color: var(--star-yellow);
    margin-right: 3px;
}

/* Botões do Card */
.card-actions {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 6px;
}

.btn-action-cell {
    display: table-cell;
}

.btn-details, .btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-details {
    background-color: #212a3e;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.btn-details:hover {
    background-color: #2b3752;
    color: var(--text-white);
}

.btn-buy {
    background-color: var(--purple-primary);
    color: var(--text-white);
    box-shadow: 0 3px 10px rgba(99, 91, 255, 0.2);
}

.btn-buy:hover {
    background-color: var(--purple-hover);
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
}

.ver-mais-container {
    text-align: center;
    margin: 26px 0;
}

.btn-ver-mais {
    display: inline-block;
    background-color: #1c2438;
    color: var(--text-white);
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.btn-ver-mais:hover {
    background-color: #242e47;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   6. Seções Extras (Lançamentos e Categorias)
   ========================================================================= */
.extras-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
}

.row-extras {
    display: block;
}

.subsection-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e2e8f0;
}

.categories-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 8px;
}

.category-card {
    display: table-cell;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 14px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.category-card:hover {
    background-color: #20293d;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.06);
}

.category-card i {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.icon-purple { color: #a29bfe; filter: drop-shadow(0 0 4px rgba(162, 155, 254, 0.3)); }
.icon-blue { color: #74b9ff; filter: drop-shadow(0 0 4px rgba(116, 185, 255, 0.3)); }
.icon-green { color: #55efc4; filter: drop-shadow(0 0 4px rgba(85, 239, 196, 0.3)); }