/* ========================================
   Reset e Configurações Básicas
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Paleta inspirada no Dia da Consciência Negra */
    --color-primary: #1a1a1a;
    --color-secondary: #8b4513;
    --color-accent: #d4af37;
    --color-text: #2c2c2c;
    --color-text-light: #555555;
    --color-background: #f9f7f4;
    --color-white: #ffffff;
    --color-border: #e0ddd8;
    
    /* Tipografia */
    --font-primary: 'Playfair Display', 'Times New Roman', serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* ========================================
   Tipografia
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

p {
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    hyphens: auto;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   Container e Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Ícones (Material Symbols)
   ======================================== */

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.icon-heading {
    font-size: 1.4rem;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.icon-inline {
    font-size: 1.1rem;
    vertical-align: text-bottom;
    margin-left: 0.25rem;
}

/* ========================================
   Header
   ======================================== */

.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
    pointer-events: none;
}

.main-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
}

/* ========================================
   Navegação
   ======================================== */

.main-nav {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    margin-right: var(--spacing-sm);
    padding: var(--spacing-xs);
}

.menu-toggle .material-symbols-outlined {
    font-size: 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: var(--color-secondary);
    color: var(--color-accent);
    text-decoration: none;
}

/* ========================================
   Conteúdo Principal
   ======================================== */

.main-content {
    padding: var(--spacing-xl) 0;
}

.content-section {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Seção Biografia
   ======================================== */

.bio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.bio-image {
    text-align: center;
}

.bio-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-accent);
}

.image-caption {
    margin-top: var(--spacing-sm);
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
   Relevância para População Negra
   ======================================== */

.relevancia-negra {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e4df 100%);
    border-left: 5px solid var(--color-secondary);
    border-radius: 4px;
}

.relevancia-negra h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.relevancia-negra p {
    font-size: 1.05rem;
}

/* ========================================
   Galeria
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--color-border);
}

.gallery-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.gallery-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: left;
}

.special-item {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-box {
    padding: var(--spacing-md);
}

.quote-box blockquote {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.quote-box footer {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--color-accent);
}

/* ========================================
   Links Externos
   ======================================== */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.link-card {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-accent);
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.link-card ul {
    list-style: none;
    padding: 0;
}

.link-card li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    position: relative;
}

.link-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.link-card a {
    font-weight: 500;
}

/* ========================================
   Créditos
   ======================================== */

.credits-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.credits-list {
    list-style: none;
    padding: 0;
}

.credits-list li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.credits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.site-footer p {
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

/* ========================================
   Responsividade
   ======================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .site-header {
        padding: var(--spacing-lg) var(--spacing-md);
        text-align: left;
    }
    
    .site-header .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .main-title {
        font-size: 1.9rem;
        line-height: 1.25;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .main-nav .container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height var(--transition-normal), opacity var(--transition-normal);
    }

    .nav-list.is-open {
        max-height: 300px;
        opacity: 1;
    }
    
    .nav-list a {
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .bio-content {
        grid-template-columns: 1fr;
    }
    
    .bio-image img {
        max-width: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   Acessibilidade
   ======================================== */

/* Melhor contraste para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Foco visível para navegação por teclado */
*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Redução de movimento para usuários com preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-background: #ffffff;
    }
}

/* ========================================
   Animações
   ======================================== */

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

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Impressão
   ======================================== */
#quote2 {
    color: #f5f3f0;
}
@media print {
    .main-nav,
    .site-footer {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
    }
    
    a {
        color: var(--color-text);
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: var(--color-text-light);
    }
}
