/* ============================================
   AstionLiterário - CSS Reset & Base Config
   Prefixo: lit-
   ============================================ */

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Cores primárias */
    --lit-primary: #6366f1;
    --lit-primary-hover: #4f46e5;
    --lit-primary-light: #818cf8;
    --lit-secondary: #8b5cf6;
    --lit-secondary-hover: #7c3aed;
    
    /* Cores de acento */
    --lit-accent: #f59e0b;
    --lit-accent-hover: #d97706;
    --lit-success: #10b981;
    --lit-warning: #f59e0b;
    --lit-error: #ef4444;
    
    /* Backgrounds */
    --lit-bg-primary: #0f0f23;
    --lit-bg-secondary: #1a1a2e;
    --lit-bg-card: #16213e;
    --lit-bg-hover: #1f2937;
    
    /* Cores Light Mode */
    --lit-bg-light: #f8fafc;
    --lit-bg-light-secondary: #ffffff;
    --lit-bg-light-card: #ffffff;
    
    /* Texto */
    --lit-text-primary: #f1f1f1;
    --lit-text-secondary: #a1a1aa;
    --lit-text-muted: #71717a;
    --lit-text-dark: #1e293b;
    
    /* Bordas */
    --lit-border: #2e2e4d;
    --lit-border-light: #e2e8f0;
    
    /* Shadows */
    --lit-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --lit-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --lit-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --lit-shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Tipografia */
    --lit-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --lit-font-display: 'Poppins', sans-serif;
    --lit-font-serif: 'Merriweather', Georgia, serif;
    
    /* Tamanhos */
    --lit-radius-sm: 8px;
    --lit-radius-md: 12px;
    --lit-radius-lg: 20px;
    --lit-radius-full: 9999px;
    
    /* Transições */
    --lit-transition: 0.2s ease;
    --lit-transition-slow: 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--lit-font-sans);
    background-color: var(--lit-bg-primary);
    color: var(--lit-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Light mode */
body.lit-light-mode {
    background-color: var(--lit-bg-light);
    color: var(--lit-text-dark);
}

/* Links */
a {
    color: var(--lit-primary-light);
    text-decoration: none;
    transition: color var(--lit-transition);
}

a:hover {
    color: var(--lit-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--lit-font-display);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--lit-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--lit-primary);
    color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--lit-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--lit-border);
    border-radius: var(--lit-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lit-primary);
}

/* Container */
.lit-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .lit-container {
        padding: 0 2rem;
    }
}

/* Visually hidden (acessibilidade) */
.lit-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
