/* ============================================================================
   Coptic Orthodox Curriculum - Production CSS v2.0
   Clean, modern design that enhances Bootstrap
   ============================================================================ */

/* ============================================================================
   CSS LOADING TEST
   If you can see this comment in browser DevTools, the file loaded correctly
   Version: 2.0
   Date: 2026-02-13
   ============================================================================ */

/* ============================================================================
   1. TYPOGRAPHY FOUNDATION
   ============================================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #1c1917;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   2. LESSON CONTENT - The main reading area
   ============================================================================ */

.lesson-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1c1917;
}

/* Main lesson title (H1) */
.lesson-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3b82f6;
}

/* Section headings (H2) */
.lesson-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

/* Subsection headings (H3) */
.lesson-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Smaller headings (H4-H6) */
.lesson-content h4,
.lesson-content h5,
.lesson-content h6 {
    font-weight: 600;
    color: #475569;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Paragraphs */
.lesson-content p {
    margin-bottom: 1.5rem;
}

/* Lists */
.lesson-content ul,
.lesson-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Blockquotes */
.lesson-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-style: italic;
    color: #475569;
}

.lesson-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Links */
.lesson-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.lesson-content a:hover {
    text-decoration-color: rgba(37, 99, 235, 1);
}

/* Code blocks */
.lesson-content code {
    background: #f5f5f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #be123c;
}

.lesson-content pre {
    background: #292524;
    color: #e7e5e4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.lesson-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tables */
.lesson-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.lesson-content table th,
.lesson-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e7e5e4;
    text-align: left;
}

.lesson-content table th {
    background: #f5f5f4;
    font-weight: 600;
}

.lesson-content table tbody tr:hover {
    background: #fafaf9;
}

/* Images */
.lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Horizontal rules */
.lesson-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid #e7e5e4;
}

/* Strong text */
.lesson-content strong {
    font-weight: 600;
    color: #0f172a;
}

/* ============================================================================
   3. NAVBAR
   ============================================================================ */

.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

/* ============================================================================
   4. CARDS
   ============================================================================ */

.card {
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e7e5e4;
    font-weight: 600;
}

/* ============================================================================
   5. TABLE OF CONTENTS
   ============================================================================ */

.toc-sidebar {
    font-size: 0.9375rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.toc-sidebar ul ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.toc-sidebar li {
    margin-bottom: 0.5rem;
}

.toc-sidebar a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.toc-sidebar a:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* ============================================================================
   6. BREADCRUMBS
   ============================================================================ */

.breadcrumb {
    font-size: 0.875rem;
    background: transparent;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

/* ============================================================================
   7. BADGES
   ============================================================================ */

.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* ============================================================================
   8. BUTTONS
   ============================================================================ */

.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* ============================================================================
   9. RESPONSIVE
   ============================================================================ */

@media (max-width: 992px) {
    .lesson-content {
        font-size: 1rem;
    }
    
    .lesson-content h1 {
        font-size: 2rem;
    }
    
    .lesson-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================================================
   10. UTILITY IMPROVEMENTS
   ============================================================================ */

.text-muted {
    color: #64748b;
}

/* ============================================================================
   END OF FILE
   If you see this in DevTools → Sources, the file loaded successfully!
   ============================================================================ */
