/*
Theme Name: STS FAQ Suplementos 2026
Theme URI: http://faqsuplementos.com.br/
Description: Tema premium customizado de altíssima performance para o FAQ Suplementos, otimizado para SEO, GEO (IA) e alta conversão de afiliados usando Content Egg Pro.
Author: Zeus (SEO/GEO/IA God)
Author URI: http://faqsuplementos.com.br/linda-k-alexander/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stsfaqsuplementos2026
*/

/* ==========================================================================
   1. DESIGN SYSTEM (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0f172a;       /* Slate 900 - Textos principais & Headers */
    --color-primary-light: #1e293b; /* Slate 800 */
    --color-secondary: #0284c7;     /* Sky 600 - Links e Destaques */
    --color-secondary-hover: #0369a1;/* Sky 700 */
    --color-accent: #f97316;        /* Orange 500 - CTAs secundários e Tags */
    --color-cta: #dc2626;           /* Red 600 - Botões de Compra (Amazon) */
    --color-cta-hover: #b91c1c;     /* Red 700 */
    --color-success: #10b981;       /* Emerald 500 - Prós/Pontos Positivos */
    --color-warning: #f59e0b;       /* Amber 500 - Avaliações/Estrelas */
    --color-danger: #ef4444;        /* Red 500 - Contras/Pontos Negativos */
    
    /* Backgrounds */
    --bg-body: #f8fafc;             /* Slate 50 - Fundo geral */
    --bg-card: #ffffff;             /* Branco puro - Cards, Posts, Widgets */
    --bg-footer: #0f172a;           /* Fundo do rodapé */
    --bg-eeat: #f0fdf4;             /* Verde menta suave - Caixa E-E-A-T */
    --bg-eeat-border: #bbf7d0;
    
    /* Typography */
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacings */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Borders & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

    /* Grid & Widths */
    --max-width-content: 800px;
    --max-width-site: 1200px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-body);
    color: var(--color-primary-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--color-secondary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: var(--space-lg); }
h3 { font-size: 1.35rem; margin-top: var(--space-md); }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
    color: #334155; /* Slate 700 */
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-md);
    margin-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-xs);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--color-secondary);
    padding: var(--space-sm) var(--space-md);
    background-color: #f1f5f9;
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

/* ==========================================================================
   4. LAYOUT STRUCTURE
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width-site);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.content-container {
    width: 100%;
    max-width: var(--max-width-content);
    margin-left: auto;
    margin-right: auto;
}

/* Grid helper */
.grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.98);
}

.btn-cta {
    background-color: var(--color-cta);
    color: #ffffff;
}

.btn-cta:hover {
    background-color: var(--color-cta-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: #ffffff;
}

/* Custom badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-primary { background-color: #e0f2fe; color: #075985; }

/* Sticky Elements */
.sticky-element {
    position: sticky;
    top: var(--space-md);
    z-index: 10;
}

/* ==========================================================================
   Custom Table of Contents (TOC)
   ========================================================================== */
.sts-toc-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0 var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}
.sts-toc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
}
.sts-toc-toggle-icon {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.2s ease;
}
.sts-toc-box.active .sts-toc-toggle-icon {
    transform: rotate(180deg);
}
.sts-toc-list {
    list-style: none;
    margin: var(--space-sm) 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.sts-toc-box.collapsed .sts-toc-list {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}
.sts-toc-list li {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
.sts-toc-list a {
    color: #475569;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}
.sts-toc-list a:hover {
    color: var(--color-secondary);
}

