/* Estilos Personalizados - Poeta Brasileiro (Literary Cerrado Modernism) */

:root {
    --color-primary: #8d4b00;
    --color-primary-accent: #d97706;
    --color-primary-dark: #b15f00;
    --color-secondary: #1f6c3a;
    --color-secondary-accent: #166534;
    --color-bg-paper: #FAFAF7;
    --color-surface: #f8f9ff;
    --color-ink: #121c2a;
    --color-ink-subtle: #4B5563;
    --color-border: #e2d9cf;
}

/* Background Paper & Noise Texture */
body {
    background-color: var(--color-bg-paper);
    color: var(--color-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.noise-bg {
    position: relative;
}

.noise-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 0;
}

/* Tipografia */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.poetry-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1.8;
}

/* Sombras suaves do estilo editorial */
.soft-shadow {
    box-shadow: 0 10px 30px -5px rgba(18, 28, 42, 0.06), 0 4px 10px -2px rgba(18, 28, 42, 0.03);
}

.soft-shadow-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-shadow-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -8px rgba(141, 75, 0, 0.12), 0 8px 16px -4px rgba(18, 28, 42, 0.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1ede8;
}

::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b15f00;
}

/* Modal PDF Reader */
.modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(18, 28, 42, 0.75);
}

/* Anima??es */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Acessibilidade - Alto Contraste */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .bg-background-paper,
body.high-contrast .bg-surface,
body.high-contrast .bg-white {
    background-color: #121212 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.high-contrast .text-ink-subtle,
body.high-contrast .text-on-surface-variant {
    color: #e0e0e0 !important;
}

body.high-contrast a {
    color: #ffd700 !important;
}

/* Linha decorativa org?nica do Cerrado */
.cerrado-divider {
    height: 3px;
    background: linear-gradient(90deg, #d97706 0%, #166534 50%, #d97706 100%);
    border-radius: 2px;
}
