/* ========================================
   CHRISTO NIHIL PRAEPONERE - ESTILOS
   ======================================== */

/* === RESET E VARIÁVEIS === */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --text-color: #333;
    --bg-color: #fff;
    --bg-light: #f9f7f4;
    --border-color: #ddd;
    --accent-color: #B8860B;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* === ACESSIBILIDADE - SKIP TO MAIN === */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 10001;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.2s ease;
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

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

/* === TIPOGRAFIA === */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #654321 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-content h1 {
    color: white;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-image {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.latin-pronunciation {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* === NAVEGAÇÃO === */
.main-nav {
    background-color: #654321;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    text-decoration: none;
}

/* === CARDS === */
.intro-grid,
.santos-grid,
.scripture-grid,
.practice-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.intro-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.santos-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.scripture-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.practice-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.intro-card,
.santo-card,
.scripture-card,
.practice-card,
.martyr-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover,
.santo-card:hover,
.scripture-card:hover,
.practice-card:hover,
.martyr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.intro-card h3,
.santo-card h3,
.practice-card h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.dates {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

details {
    margin-top: 1rem;
}

summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 0;
    user-select: none;
}

summary:hover {
    color: var(--accent-color);
}

details[open] summary {
    margin-bottom: 1rem;
}

/* === SCRIPTURE CARDS === */
.verse-reference {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.verse-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    text-align: right;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 0.5rem 2rem;
    background: var(--secondary-color);
    border-radius: var(--radius);
    align-self: start;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-top: 0;
}

.timeline-content blockquote {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    font-style: italic;
    color: var(--text-color);
}

.timeline-content blockquote p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-content blockquote footer {
    color: var(--text-light);
    font-style: normal;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* === MARTYR TYPES === */
.martyr-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.martyr-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* === REFLEXÃO === */
.reflection-box {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
}

.reflection-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reflection-box ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.reflection-box li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* === CITAÇÕES === */
.saint-quote {
    background: var(--bg-color);
    border-left: 5px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
}

.saint-quote p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.7;
}

.saint-quote footer {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
    margin-top: 1rem;
}

.saint-quote footer cite {
    color: var(--primary-color);
    font-style: normal;
}

/* === ÁUDIO === */
.audio-player {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    text-align: center;
}

audio {
    width: 100%;
    max-width: 600px;
}

.audio-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* === CONCLUSÃO === */
.conclusion-text {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    line-height: 1.8;
}

.conclusion-text strong {
    color: var(--primary-color);
}

.final-quote {
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #654321 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

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

footer a:hover {
    color: white;
}

footer .motto {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 1rem;
    color: var(--secondary-color);
}

.footer-credits {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-credits a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.footer-credits a:hover {
    color: white;
    text-decoration-color: var(--secondary-color);
}

/* === UTILITÁRIOS === */
.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius);
}

blockquote {
    background: var(--bg-color);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text-color);
}

blockquote p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

blockquote footer {
    color: var(--text-light);
    font-style: normal;
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: right;
}

blockquote footer cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        text-align: center;
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-marker {
        text-align: left;
        padding: 0.5rem 1rem;
    }

    .intro-grid,
    .santos-grid,
    .scripture-grid,
    .practice-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .header-image {
        max-width: 100px;
    }

    .intro-card,
    .santo-card,
    .scripture-card,
    .practice-card {
        padding: 1.5rem;
    }

    .timeline-content,
    .reflection-box,
    .conclusion-text {
        padding: 1.5rem;
    }
}

/* === MODO DE IMPRESSÃO === */
@media print {
    header,
    .main-nav,
    footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

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