/**
 * ScriptHub - Estilização Global Corporativa (Tema Dark Premium)
 * Arquivo: assets/css/style.css
 * Desenvolvido com foco em performance móvel e fidelidade visual
 */

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

:root {
    --bg-main: #131926;       /* Fundo principal idêntico ao da imagem */
    --bg-card: #1c2333;       /* Fundo dos cards e elementos secundários */
    --bg-header: #1e2538;     /* Fundo do header */
    --purple-primary: #635bff;/* Roxo destacado dos botões principais */
    --purple-hover: #524ad9;  /* Roxo com foco/hover */
    --text-white: #ffffff;    /* Texto principal */
    --text-muted: #8f9cae;    /* Subtítulos e contadores */
    --star-yellow: #ffb800;   /* Cor das estrelas de avaliação */
    --green-price: #2ed573;   /* Cor verde dos preços */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    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;
}

/* ==========================================================================
   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: var(--bg-header);
    padding: 12px 16px;
    display: table;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-logo {
    display: table-cell;
    vertical-align: middle;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.header-logo i {
    color: var(--purple-primary);
    margin-right: 6px;
}

.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: #252d41;
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.lang-btn img {
    width: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 105%;
    background-color: #1e2538;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none; /* Controlado via JS ou active */
}

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

.lang-item {
    padding: 8px 12px;
    display: block;
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
}

.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;
}

/* ==========================================================================
   4. Banner Principal / Apresentação (Apresentação com tags)
   ========================================================================== */
.hero-banner {
    padding: 30px 15px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at right, rgba(99, 91, 255, 0.15), transparent 60%);
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
    max-width: 90%;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 85%;
}

.btn-explorar {
    display: inline-block;
    background-color: var(--purple-primary);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-explorar:hover {
    background-color: var(--purple-hover);
}

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

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 4px;
}

.dot.active {
    background-color: var(--purple-primary);
    width: 12px;
    border-radius: 3px;
}

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

.section-title-container {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-white);
    text-transform: uppercase;
}

/* 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: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

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

.product-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.product-thumb-container {
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-thumb {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.product-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.product-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price {
    color: var(--green-price);
    font-weight: 700;
}

.rating-box {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 2px;
}

.rating-box i {
    color: var(--star-yellow);
}

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

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

.btn-details, .btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-details {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-buy {
    background-color: var(--purple-primary);
    color: var(--text-white);
}

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

.btn-ver-mais {
    display: inline-block;
    background-color: var(--purple-primary);
    color: var(--text-white);
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.row-extras {
    display: block;
}

.subsection-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.category-card {
    display: table-cell;
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 12px 6px;
    text-align: center;
    font-size: 11px;
}

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

.icon-purple { color: #a29bfe; }
.icon-blue { color: #74b9ff; }
.icon-green { color: #55efc4; }