/* ============================================
   Pierian Spring - Topic Page Stylesheet
   Complements main landing page aesthetic
   ============================================ */

.topic-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc8 100%);
    padding: 2rem;
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb {
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

.breadcrumb a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: rgba(107, 44, 62, 0.9);
    color: #D4AF37;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 152, 133, 0.3);
}

.breadcrumb a:hover {
    background-color: rgba(107, 44, 62, 1);
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Article Content Container
   ============================================ */

.topic-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 152, 133, 0.2);
}

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

.topic-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #7C9885;
}

.topic-header h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: #6B2C3E;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.topic-header .topic-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: #7C9885;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.meta-info {
    margin-top: 1.5rem;
}

.student-question {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: #f8f5f0;
    border-left: 4px solid #D4AF37;
    color: #4A2C2A;
    font-style: italic;
    font-size: 1rem;
    border-radius: 4px;
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.9rem;
    color: #6B2C3E;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    color: #7C9885;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.content-section h4 {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #4A2C2A;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: 700;
}

.content-section p {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.content-section strong {
    color: #6B2C3E;
    font-weight: 600;
}

.content-section em {
    color: #4A2C2A;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.75rem;
}

/* ============================================
   Resource Boxes
   ============================================ */

.resource-box {
    background-color: #f8f5f0;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #D4AF37;
    margin: 1.5rem 0;
}

.resource-box h4 {
    color: #6B2C3E;
    margin-top: 1rem;
}

.resource-box h4:first-child {
    margin-top: 0;
}

.resource-box ul {
    margin-left: 1.5rem;
}

.resource-box li {
    margin-bottom: 0.5rem;
}

.resource-box a {
    color: #6B2C3E;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.resource-box a:hover {
    color: #D4AF37;
}

/* ============================================
   Reflection Box (Questions to Consider)
   ============================================ */

.reflection-box {
    background-color: #f0f5f1;
    padding: 2rem;
    border-radius: 6px;
    border-left: 4px solid #7C9885;
}

.reflection-box h2 {
    color: #7C9885;
}

.reflection-box li {
    color: #2C3E50;
    font-style: italic;
}

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

.topic-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #7C9885;
    text-align: center;
}

.topic-footer p {
    font-size: 1.05rem;
    color: #4A2C2A;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: rgba(107, 44, 62, 0.9);
    color: #D4AF37;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 152, 133, 0.3);
}

.back-link:hover {
    background-color: rgba(107, 44, 62, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .topic-page {
        padding: 1rem;
    }
    
    .topic-content {
        padding: 2rem 1.5rem;
    }
    
    .topic-header h1 {
        font-size: 2rem;
    }
    
    .topic-header .topic-subtitle {
        font-size: 1.2rem;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .content-section p,
    .content-section li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .topic-content {
        padding: 1.5rem 1rem;
    }
    
    .topic-header h1 {
        font-size: 1.7rem;
    }
    
    .resource-box,
    .reflection-box {
        padding: 1.25rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .topic-page {
        background: white;
    }
    
    .breadcrumb,
    .back-link {
        display: none;
    }
    
    .topic-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
