/* === THEME DETAIL STYLES === */

/* THEME HEADER */
.theme-header {
    text-align: center;
    padding: 100px 30px 60px;
    background: linear-gradient(135deg, rgba(234, 227, 210, 0.4) 0%, rgba(245, 241, 232, 0.2) 100%);
    border-bottom: 2px solid #e5ddc8;
}

.theme-icon-large {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.theme-title {
    font-family: 'Palatino', 'Book Antiqua', 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.theme-period {
    font-size: 1.3rem;
    color: #8b6f47;
    font-weight: 500;
    margin-bottom: 24px;
}

.theme-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(139, 111, 71, 0.1);
    border: 1px solid #d4c5a9;
    color: #8b6f47;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* THEME CONTAINER */
.theme-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

/* INTRO */
.theme-intro {
    background: linear-gradient(to right, rgba(234, 227, 210, 0.3), rgba(245, 241, 232, 0.5));
    border-left: 4px solid #8b6f47;
    padding: 32px 36px;
    margin-bottom: 60px;
    border-radius: 0 6px 6px 0;
}

.theme-intro p {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #2a2a2a;
    font-style: italic;
    margin: 0;
}

/* THEME SECTIONS */
.theme-section {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.theme-section:nth-child(1) { animation-delay: 0.1s; }
.theme-section:nth-child(2) { animation-delay: 0.2s; }
.theme-section:nth-child(3) { animation-delay: 0.3s; }
.theme-section:nth-child(4) { animation-delay: 0.4s; }
.theme-section:nth-child(5) { animation-delay: 0.5s; }
.theme-section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-section h2 {
    font-family: 'Palatino', 'Book Antiqua', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5ddc8;
}

.theme-section p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.theme-section p:last-child {
    margin-bottom: 0;
}

/* HIGHLIGHTS GRID */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.highlight-card {
    background-color: #fefdfb;
    border: 1px solid #e5ddc8;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.15);
    border-color: #8b6f47;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.85;
}

.highlight-card h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* FIGURES GRID */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.figure-card {
    background-color: #fefdfb;
    border: 1px solid #e5ddc8;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.figure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.15);
    border-color: #8b6f47;
}

.figure-card h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.figure-role {
    font-size: 0.95rem;
    color: #8b6f47;
    margin-bottom: 12px;
    font-weight: 500;
}

.figure-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* THEME TIMELINE */
.theme-timeline {
    margin-top: 32px;
    position: relative;
    padding-left: 40px;
}

.theme-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4c5a9 0%, #8b6f47 50%, #d4c5a9 100%);
}

.timeline-event {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 7px;
    top: 8px;
    width: 18px;
    height: 18px;
    background-color: #8b6f47;
    border: 4px solid #f5f1e8;
    border-radius: 50%;
    z-index: 2;
}

.timeline-year {
    font-family: 'Palatino', 'Book Antiqua', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #8b6f47;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3a3a3a;
    margin: 0;
}

/* LEGACY SECTION */
.legacy-section {
    background: linear-gradient(135deg, rgba(234, 227, 210, 0.2), rgba(245, 241, 232, 0.4));
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5ddc8;
}

.legacy-content p {
    margin-bottom: 20px;
}

.legacy-quote {
    margin-top: 32px;
    padding: 28px 32px;
    background-color: #fefdfb;
    border-left: 4px solid #8b6f47;
    border-radius: 0 6px 6px 0;
}

.legacy-quote blockquote {
    font-family: 'Palatino', 'Book Antiqua', 'Georgia', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: #2a2a2a;
    margin: 0 0 16px 0;
}

.legacy-quote cite {
    display: block;
    font-size: 1rem;
    color: #8b6f47;
    font-style: normal;
    font-weight: 500;
}

/* RELATED THEMES */
.related-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.related-theme-card {
    background-color: #fefdfb;
    border: 2px solid #e5ddc8;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.15);
    border-color: #8b6f47;
}

.related-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.85;
}

.related-theme-card h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.related-theme-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .theme-header {
        padding: 80px 20px 40px;
    }

    .theme-icon-large {
        font-size: 3.5rem;
    }

    .theme-title {
        font-size: 2.2rem;
    }

    .theme-period {
        font-size: 1.1rem;
    }

    .theme-container {
        padding: 40px 20px 60px;
    }

    .theme-intro {
        padding: 24px 20px;
    }

    .theme-intro p {
        font-size: 1.15rem;
    }

    .theme-section h2 {
        font-size: 1.8rem;
    }

    .theme-section p {
        font-size: 1.05rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .figures-grid {
        grid-template-columns: 1fr;
    }

    .related-themes-grid {
        grid-template-columns: 1fr;
    }

    .legacy-section {
        padding: 28px 20px;
    }

    .legacy-quote {
        padding: 20px 24px;
    }

    .legacy-quote blockquote {
        font-size: 1.15rem;
    }

    .theme-timeline {
        padding-left: 30px;
    }
}