/* Universal CSS for Biblical Books */
/* Based on bible-theology.css but converted to greyscale for book-specific pages */

:root {
    /* Primary greyscale theme for biblical books */
    --primary-color: #555555;
    --primary-light: #777777;
    --primary-dark: #333333;
    --primary-accent-color: #444444;
    --primary-gradient: linear-gradient(135deg, #555555, #333333);
    
    /* Text colors */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --text-subtle: #999999;
    
    /* Background colors */
    --background-light: #f5f5f5;
    --background-white: #ffffff;
    --surface-light: #ffffff;
    --surface-dark: #1e1e1e;
    
    /* Design system */
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: min(1200px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    line-height: 1.1;
    transition: all 0.3s ease;
}

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

.logo-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition);
    position: relative;
}

.navigation a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

.navigation a:hover:after,
.navigation a.active:after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="90" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.parent-topic {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Main Content */
.main-content {
    padding: var(--spacing-xl) 0;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.main-column {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 120px;
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    height: fit-content;
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #eee;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.sidebar-nav-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-nav-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Content Sections */
.content-section {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid #e0e0e0;
    transition: all var(--transition);
}

.content-section:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.content-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
    color: var(--text-dark);
}

.content-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    color: var(--primary-color);
}

.content-section p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content-section ul li,
.content-section ol li {
    margin-bottom: var(--spacing-xs);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Verse Styling */
.verse {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: all var(--transition);
}

.verse:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.verse-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    color: var(--text-dark);
}

.verse-reference {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.verse-reference a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.verse-reference a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Quote Block */
.quote-block {
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-left: 5px solid var(--primary-color);
    transition: all var(--transition);
}

.quote-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.verse-quote {
    font-size: 1.15rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
}

/* Analysis and Evidence */
.point {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
    position: relative;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
}

.point::before {
    content: '→';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.point:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* Blockquote Styling */
blockquote {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 6px solid var(--primary-color);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 1;
}

blockquote::after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: 15px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 1;
}

blockquote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

blockquote cite {
    display: block;
    text-align: right;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

blockquote cite::before {
    content: '— ';
}

/* Minimal Link Styling */
a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

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

/* External link indicator - minimal */
a[href^="http"]:after,
a[href^="https"]:after {
    content: ' ↗';
    font-size: 0.75em;
    opacity: 0.5;
}

/* Button-style links */
.link-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.link-button:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* Reference links in verse citations */
.verse-reference a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.verse-reference a:hover {
    text-decoration: underline;
}

.verse-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: var(--spacing-lg) 0;
    border: none;
}

/* Contradiction Layout */
.contradiction-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.contradiction-column {
    background: var(--surface-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contradiction-column h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid #eee;
    font-size: 1.2rem;
    font-weight: 600;
}

.verse-box {
    background: #f8f9fa;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--primary-color);
}

.verse-box .verse-reference {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.verse-box .verse-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.analysis-box {
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.analysis-box h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.evidence-item {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition);
}

.evidence-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.evidence-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.evidence-item h4::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 0.8rem;
}

.evidence-item p {
    margin: 0;
    line-height: 1.6;
}

/* Dropdowns */
.dropdown-list {
    list-style: none;
    padding: 0;
}

.dropdown-list li {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.dropdown-header {
    padding: var(--spacing-md);
    cursor: pointer;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.dropdown-header:hover {
    background: #e9ecef;
}

.dropdown-content {
    padding: var(--spacing-md);
    display: none;
    border-top: 1px solid #e0e0e0;
}

.dropdown-list li.active .dropdown-content {
    display: block;
}

.evidence-dropdown {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition);
}

.evidence-dropdown:hover {
    box-shadow: var(--box-shadow);
}

.evidence-dropdown summary {
    padding: var(--spacing-md);
    cursor: pointer;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    position: relative;
    transition: all var(--transition-fast);
}

.evidence-dropdown summary::-webkit-details-marker {
    display: none;
}

.evidence-dropdown summary::after {
    content: '▶';
    position: absolute;
    right: var(--spacing-md);
    transition: transform var(--transition-fast);
}

.evidence-dropdown[open] summary::after {
    transform: rotate(90deg);
}

.evidence-dropdown summary:hover {
    background: #e9ecef;
}

.evidence-dropdown .dropdown-content {
    padding: var(--spacing-md);
    display: block;
    border-top: 1px solid #e0e0e0;
    background: var(--surface-light);
}

.evidence-dropdown .dropdown-content p {
    margin: 0;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* Statistics Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.stat-card {
    background: var(--surface-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: var(--spacing-xs) 0;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Charts and Visualizations */
.chart-container {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    box-shadow: var(--box-shadow);
}

.chart-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.chart-scroll-container {
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.chart-wrapper {
    min-width: 600px;
    height: 300px;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.chart-bars {
    display: flex;
    align-items: end;
    height: 100%;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px 4px 0 0;
    min-height: 10px;
    position: relative;
    transition: all var(--transition);
    cursor: pointer;
}

.chart-bar:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.copyright {
    border-top: 1px solid #444;
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scroll to Top Button */
.to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    text-decoration: none;
    z-index: 1000;
}

.to-top-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.to-top-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: calc(100vw - 30px);
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .contradiction-body {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .content-section {
        padding: var(--spacing-lg);
    }

    .verse,
    .quote-block {
        margin: var(--spacing-md) 0;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .evidence-dropdown summary {
        font-size: 0.95rem;
    }

    .evidence-dropdown .dropdown-content {
        font-size: 0.95rem;
    }

    .chart-wrapper {
        min-width: 400px;
    }

    .chart-x-labels {
        font-size: 0.8rem;
    }

    .chart-x-label {
        transform: rotate(-45deg);
        transform-origin: bottom left;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px;
    }

    .mobile-menu-button {
        display: block;
    }

    .navigation {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--box-shadow);
        transform: translateY(-100%);
        transition: all var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    .navigation.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navigation ul {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .navigation ul li {
        width: 100%;
    }

    .navigation ul li a {
        display: block;
        padding: var(--spacing-sm);
        border-radius: var(--border-radius);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .sidebar-nav-item {
        font-size: 0.9rem;
    }

    .verse-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .evidence-dropdown {
        margin-bottom: var(--spacing-sm);
    }

    .evidence-dropdown summary {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .evidence-dropdown .dropdown-content {
        padding: var(--spacing-sm);
    }

    .evidence-dropdown summary::after {
        right: var(--spacing-sm);
    }

    .chart-wrapper {
        min-width: 300px;
        height: 250px;
    }

    .chart-x-labels {
        font-size: 0.7rem;
    }

    .chart-x-label {
        transform: rotate(-60deg);
    }
}

@media print {
    .navigation,
    .mobile-menu-button,
    .to-top-button,
    .sidebar {
        display: none;
    }

    .hero {
        background: var(--text-dark);
        color: white;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Book-specific elements */
.verse-reference {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.prayer-journal {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

/* Timeline styles for chronological content */
.timeline {
    position: relative;
    margin: var(--spacing-lg) 0;
}

.timeline-item {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition);
}

.timeline-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.timeline-header {
    padding: var(--spacing-md);
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: all var(--transition-fast);
}

.timeline-header:hover {
    background: #e9ecef;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.timeline-toggle {
    float: right;
    color: var(--primary-color);
}

.timeline-item.active .timeline-toggle {
    transform: rotate(180deg);
}

.timeline-content {
    display: none;
    padding: var(--spacing-md);
}

.timeline-content-inner {
    line-height: 1.6;
}

.timeline-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.timeline-stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.timeline-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.timeline-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.timeline-description {
    margin: var(--spacing-md) 0;
}

.timeline-evidence h5 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.timeline-evidence ul {
    margin-bottom: 0;
}

.timeline-evidence li {
    margin-bottom: var(--spacing-xs);
}

/* Quote styling for biblical quotes */
.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    margin: var(--spacing-md) 0;
    color: var(--text-dark);
}

.quote-author {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.quote-author::before {
    content: '— ';
}

/* Chart enhancements */
.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-y-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    padding-right: var(--spacing-xs);
}

.chart-y-ticks {
    position: absolute;
    left: 45px;
    top: 0;
    height: 100%;
    width: 5px;
    background: repeating-linear-gradient(to bottom, transparent 0, #ddd 1px, transparent 2px, transparent 20%);
}

.chart-y-tick {
    height: 1px;
    background: #ddd;
    width: 100%;
}

/* Tooltip for chart bars */
.chart-bar-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 10;
}

.chart-bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
}

.chart-bar:hover .chart-bar-tooltip {
    opacity: 1;
}

.chart-bar-tooltip h4 {
    margin: 0 0 2px 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.chart-bar-tooltip p {
    margin: 0;
    font-size: 0.7rem;
    opacity: 0.9;
}

.chart-x-axis {
    margin-top: var(--spacing-sm);
}

.chart-x-labels {
    display: flex;
    gap: var(--spacing-sm);
}

.chart-x-label {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-info {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Interactive Paul-James Comparison Table */
.comparison-table-container {
    margin: var(--spacing-lg) 0;
}

.paul-james-comparison {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    font-size: 0.95rem;
    line-height: 1.6;
}

.paul-james-comparison thead th {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.paul-james-comparison tbody td {
    padding: var(--spacing-lg);
    vertical-align: top;
    border-bottom: 1px solid #e0e0e0;
    width: 50%;
}

.paul-james-comparison tbody tr:hover td {
    background: #fafbfc;
}

/* Text highlighting classes */
.highlight-polemic {
    background: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.highlight-red {
    background: #ffebee;
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight-orange {
    background: #fff3e0;
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight-green {
    background: #e8f5e8;
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight-blue {
    background: #e3f2fd;
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlight-purple {
    background: #f3e5f5;
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Comparison tables for biblical analysis */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--surface-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.comparison-table th:nth-child(2) {
    border-radius: 0 var(--border-radius) 0 0;
}

.comparison-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    line-height: 1.6;
}

.comparison-table tr:hover td {
    background: #f8f9fa;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background: #fafbfc;
}

.comparison-table strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contradiction diagram */
.contradiction-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: var(--surface-light);
    border-radius: var(--border-radius);
}

.diagram-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
    justify-content: space-around;
}

.concept-box {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition);
}

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

.concept-box h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.concept-box h4 i {
    font-size: 1.1rem;
}

.concept-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.concept-box li {
    padding: var(--spacing-xs) 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    border-bottom: 1px solid #e0e0e0;
}

.concept-box li:last-child {
    border-bottom: none;
}

.concept-box li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

/* VS circle between concepts */
.versus-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--box-shadow);
    flex-shrink: 0;
}

/* Conflict resolution list */
.conflict-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.conflict-item {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all var(--transition);
}

.conflict-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.conflict-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.conflict-item p {
    margin: 0;
    line-height: 1.6;
}

.evidence-item {
    background: var(--surface-light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition);
}

.evidence-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.evidence-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.evidence-item h4::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 0.8rem;
}

.evidence-item p {
    margin: 0;
    line-height: 1.6;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .paul-james-comparison {
        font-size: 0.85rem;
    }

    .paul-james-comparison thead th {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .paul-james-comparison tbody td {
        padding: var(--spacing-md);
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }

    .diagram-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .versus-circle {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .concept-box {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .paul-james-comparison,
    .paul-james-comparison thead,
    .paul-james-comparison tbody,
    .paul-james-comparison th,
    .paul-james-comparison td,
    .paul-james-comparison tr {
        display: block;
    }

    .paul-james-comparison thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .paul-james-comparison tbody tr {
        border: 1px solid #e0e0e0;
        margin-bottom: var(--spacing-md);
        border-radius: var(--border-radius);
        background: white;
    }

    .paul-james-comparison tbody td {
        border: none;
        position: relative;
        padding: var(--spacing-md);
    }

    .paul-james-comparison tbody td:before {
        content: "Paul in Galatians";
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding: 3px 7px;
        white-space: nowrap;
        background: var(--primary-color);
        color: white;
        font-weight: 600;
        font-size: 0.75rem;
        border-radius: 3px;
    }

    .paul-james-comparison tbody td:nth-child(2):before {
        content: "James in Response";
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .comparison-table th,
    .comparison-table td {
        min-width: 200px;
        display: inline-block;
        vertical-align: top;
        white-space: normal;
    }

    .versus-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
} 