/* Baibel Styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Work+Sans:wght@300;400;600;700&display=swap');

:root, html, body {
    /* Dark Mode (Default) */
    --bg-color: #1a1a1a;
    --sidebar-bg: #000000;
    --content-bg: #121212;
    --card-bg: #1c1c1c;
    --text-color: #f2efef;
    --muted-text: #aeacac;
    --heading-color: #ffffff;
    --border-color: #333333;
    --link-color: #cf7d6d;
    --link-hover: #e09888;
    --primary-color: #cf7d6d;
    --secondary-color: #f2efef;
    
    /* Context Colors - Dark Mode */
    --historical-color: #2a1f1f;
    --literary-color: #1f2a1f;
    --theological-color: #1f1f2a;
    --application-color: #2a251f;
    
    /* Gradients */
    --header-overlay: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    /* Add transition for smooth theme changes */
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-theme="light"], 
[data-theme="light"] {
    /* Light Mode */
    --bg-color: #f2efef;
    --sidebar-bg: #ffffff;
    --content-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #000000;
    --muted-text: #666666;
    --heading-color: #000000;
    --border-color: #aeacac;
    --link-color: #9e4531;
    --link-hover: #7a3627;
    --primary-color: #9e4531;
    --secondary-color: #000000;
    
    /* Context Colors - Refined Palette */
    --historical-color: #f8f0f0; 
    --literary-color: #f0f8f0;   
    --theological-color: #f0f0f8; 
    --application-color: #f8f4f0; 
    
    /* Gradients */
    --header-overlay: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* General Styles */
body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container-fluid {
    max-width: 1800px;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    padding: 40px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    border-right: none;
}

.sidebar-header {
    padding: 0 30px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 2rem;
    line-height: 1.1;
}

.sidebar-header p {
    margin: 8px 0 0;
    color: var(--muted-text);
    font-size: 0.95rem;
    font-weight: 400;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--muted-text);
    transition: color 0.2s;
    padding: 5px;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.sidebar .card {
    border: none;
    background-color: transparent;
}

.sidebar .card-header.bg-primary {
    background-color: var(--primary-color) !important;
    border: none;
    padding: 16px 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--card-bg);
    letter-spacing: -0.02em;
    border-radius: 0;
}

/* Fix voor de accordion items */
.sidebar .accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 0;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: inherit;
}

.sidebar .accordion-item {
    border: none;
    background-color: transparent;
}

.sidebar .accordion-button {
    padding: 16px 30px;
    font-weight: 200;
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    border: none;
    box-shadow: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    border-radius: 0 !important;
}

.sidebar .accordion-button::after {
    background-image: none;
    content: "+";
    font-size: 24px;
    width: auto;
    height: auto;
    position: absolute;
    right: 30px;
    top: 12px;
}

.sidebar .accordion-button:not(.collapsed)::after {
    content: "−";
    transform: none;
}

/* Accordion iconen verbergen */
.sidebar .accordion-button.collapsed::before {
    content: "";
}

.sidebar .accordion-button:not(.collapsed)::before {
    content: "";
}

.sidebar .list-group-item {
    padding: 12px 30px;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    background-color: var(--sidebar-bg);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.sidebar .list-group-item:hover {
    background-color: var(--bg-color);
    border-left-color: var(--primary-color);
}

.sidebar .list-group-item.active {
    background-color: var(--bg-color);
    border-color: transparent;
    border-left-color: var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 0 30px;
    margin-top: 30px;
}

.sidebar-footer .btn {
    margin-bottom: 10px;
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 15px;
}

.sidebar-footer .btn:hover {
    transform: translateY(-2px);
}

/* Right Sidebar Styles */
.right-sidebar {
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    padding: 40px 0;
    border-left: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.right-sidebar h4 {
    color: var(--heading-color);
    font-weight: 400;
    margin-bottom: 30px;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    padding: 0 30px;
}

.context-card {
    background-color: var(--card-bg);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

/* Custom colors for each context type */
.context-card#historical-context .card-header {
    border-left: 4px solid var(--primary-color);
}

.context-card#theological-context .card-header {
    border-left: 4px solid var(--primary-color);
}

.context-card#geographical-context .card-header {
    border-left: 4px solid var(--primary-color);
}

.context-card .card-header {
    padding: 15px 30px;
    font-weight: 600;
    border-bottom: none;
    cursor: pointer;
    color: var(--text-color);
    background-color: var(--card-bg);
    font-family: 'Work Sans', sans-serif;
    letter-spacing: 0.02em;
}

.context-card .card-body {
    padding: 0 30px 20px;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
    color: var(--text-color);
    font-weight: 300;
}

.context-card .card-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--card-bg));
    pointer-events: none;
}

.context-card.expanded .card-body {
    max-height: 2000px;
    overflow-y: auto;
}

.context-card.expanded .card-body::after {
    display: none;
}

.context-toggle {
    text-align: center;
    padding: 8px;
    background-color: var(--card-bg);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.context-toggle:hover {
    color: var(--link-hover);
}

/* Main Content Styles */
.main-content {
    padding: 40px;
    max-height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}

.content-header {
    margin-bottom: 40px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
    position: relative;
    padding: 60px 40px;
    margin-top: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.content-header-overlay {
    position: relative;
    z-index: 2;
}

.content-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-overlay);
    z-index: 1;
    border-radius: 0;
}

.content-header h1 {
    margin-bottom: 30px;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chapter-selector {
    width: 200px;
}

.chapter-selector select {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.2s;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.chapter-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Bible Content Styles */
.bible-content {
    background-color: var(--content-bg);
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.verses {
    line-height: 1.9;
    font-size: 1.1rem;
    font-weight: 300;
}

.verse {
    margin-bottom: 24px;
    position: relative;
    padding-right: 50px;
    transition: background-color 0.2s;
    padding: 5px 10px;
    border-radius: 0;
}

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

.verse-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 0.9rem;
    vertical-align: top;
}

.verse-text {
    display: inline;
}

.verse-actions {
    position: absolute;
    right: 10px;
    top: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.verse:hover .verse-actions {
    opacity: 1;
}

.verse-actions .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Content Footer Styles */
.content-footer {
    margin-top: 40px;
}

.interpretation-options {
    background-color: var(--content-bg);
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.interpretation-options h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--heading-color);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Work Sans', sans-serif;
}

.interpretation-options .btn-group {
    box-shadow: none;
}

.interpretation-options .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--link-hover);
    border-color: var(--link-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #333;
    border-color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar, .right-sidebar {
        min-height: auto;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 20px;
        padding: 20px 0;
    }
    
    .main-content {
        padding: 20px;
        max-height: none;
    }
    
    .content-header {
        padding: 30px 20px;
    }
    
    .content-header h1 {
        font-size: 2.5rem;
    }
    
    .chapter-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chapter-selector {
        width: 100%;
        margin: 10px 0;
    }
    
    .bible-content, .interpretation-options {
        padding: 25px;
    }
}

/* Add support for RGB versions of colors for opacity */
:root {
    --primary-color-rgb: 158, 69, 49;
}

/* Testament headings */
.oude-testament-header,
.nieuwe-testament-header {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    color: var(--text-color);
    border-left: none;
    font-weight: 700;
}

.sidebar .accordion-body {
    padding: 0;
}

.sidebar .list-group-flush {
    border-radius: 0;
}

/* Loading spinner in context cards */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.loading-text {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
}

/* Translation Selector */
.translation-selector {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.translation-toggle {
    margin-bottom: 15px;
}

.translation-toggle .btn {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Loading Baibel Translation */
.loading-baibel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    text-align: center;
    min-height: 300px;
}

.loading-baibel-container .spinner-border {
    width: 4rem;
    height: 4rem;
    color: var(--primary-color);
}

/* Dashboard Styles */
.dashboard-content {
    padding: 30px 0;
}

.dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.dashboard-header p {
    font-size: 1.2rem;
    color: var(--muted-text);
    font-weight: 300;
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    font-weight: 700;
}

.quick-access-section {
    margin-bottom: 50px;
}

.quick-access-section .card {
    background-color: var(--content-bg);
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.quick-access-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-access-section .card-body {
    padding: 30px 20px;
}

.quick-access-section h3 {
    font-weight: 700;
    color: var(--heading-color);
}

.quick-access-section p {
    color: var(--muted-text);
    margin-bottom: 20px;
}

.dashboard-section .card {
    background-color: var(--content-bg);
    border: none;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.dashboard-section .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    font-family: 'Playfair Display', serif;
}

.dashboard-section .list-group-item {
    background-color: var(--content-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.dashboard-section .list-group-item a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

.dashboard-section .list-group-item a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.content-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
}

/* Context cards */
.context-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 10px;
}

.context-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.context-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.context-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
}

.context-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.context-card-body {
    padding: 15px;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.context-card.expanded .context-card-body {
    max-height: 1000px;
}

.context-toggle {
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
}

.context-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
}

.context-card.expanded .context-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

/* Right sidebar dashboard cards */
.right-sidebar .p-3 .card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.right-sidebar .p-3 h4 {
    font-family: 'Work Sans', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.right-sidebar .p-3 .card-body {
    padding: 15px;
}

.right-sidebar .p-3 .card-body p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.right-sidebar .p-3 .card-body p:last-child {
    margin-bottom: 0;
}

.right-sidebar .p-3 .card-body p i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.1rem;
}

.right-sidebar .p-3 .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

/* Context cards stijlen */
.context-card {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.context-card .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-card .card-body {
    padding: 15px;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: var(--card-bg);
}

.context-card.expanded .card-body {
    max-height: 1000px;
}

.context-toggle {
    text-align: center;
    padding: 5px;
    background-color: var(--card-header-bg);
    color: var(--primary-color);
    cursor: pointer;
    border-top: 1px solid var(--border-color);
}

/* Context generatie UI */
.context-placeholder {
    text-align: center;
    padding: 10px 0;
}

.context-placeholder p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.context-loading {
    text-align: center;
    padding: 20px 0;
}

.context-loading .spinner-border {
    margin-bottom: 10px;
}

.loading-text {
    color: var(--text-secondary);
}

.countdown {
    font-weight: bold;
    color: var(--primary-color);
}

.generate-context-btn {
    margin-top: 10px;
} 