/* ==========================================================================
   HKBP DIGITAL — PENGAKUAN IMAN RASULI (APOSTLES' CREED / HATA HAPORSEAON)
   Modern Batak Heritage Sacred Design System
   Kredo Oikumenis Gerejawi & Liturgi HKBP
   ========================================================================== */

:root {
    --creed-forest: #214D3A;
    --creed-forest-dark: #163628;
    --creed-forest-light: #2c634b;
    --creed-gold: #C5A35A;
    --creed-gold-light: #FDF8EC;
    --creed-gold-hover: #b49348;
    --creed-sage: #8FA895;
    --creed-sage-light: #EBF2ED;
    --creed-ivory: #F8F4E8;
    --creed-charcoal: #292B27;
    --creed-card-bg: #FFFFFF;
    --creed-card-inner: #FBFDFB;
    --creed-border: rgba(33, 77, 58, 0.12);
    --creed-border-gold: rgba(197, 163, 90, 0.38);
    --creed-text-main: #292B27;
    --creed-text-muted: #5e6661;
    --creed-font-serif: "Lora", "Merriweather", "Georgia", serif;
    --creed-font-ui: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
    --creed-radius: 18px;
    --creed-shadow: 0 8px 28px rgba(33, 77, 58, 0.08);
}

[data-theme="dark"] {
    --creed-forest: #2b6149;
    --creed-forest-dark: #14281f;
    --creed-card-bg: #1a2520;
    --creed-card-inner: #1f2d27;
    --creed-border: rgba(197, 163, 90, 0.22);
    --creed-border-gold: rgba(197, 163, 90, 0.45);
    --creed-text-main: #f2f6f3;
    --creed-text-muted: #a3b3aa;
    --creed-gold-light: #2b2518;
    --creed-sage-light: #212e27;
    --creed-ivory: #16221c;
    --creed-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

/* Base Wrapper */
.creed-page-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4.5rem;
    font-family: var(--creed-font-ui);
    color: var(--creed-text-main);
    transition: font-size 0.2s ease, background 0.3s ease;
}

/* ==========================================================================
   1. HERO SECTION (SACRED BATAK HERITAGE)
   ========================================================================== */
.creed-hero {
    background: linear-gradient(135deg, #163628 0%, #214D3A 55%, #2d6b51 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.75rem 2rem 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(22, 54, 40, 0.28);
    border: 1px solid rgba(197, 163, 90, 0.45);
    text-align: center;
}

.creed-hero-glow {
    position: absolute;
    top: -50%;
    left: 15%;
    width: 70%;
    height: 160%;
    background: radial-gradient(circle, rgba(197, 163, 90, 0.22) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.creed-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
}

.creed-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(197, 163, 90, 0.55);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #F8F4E8;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.creed-hero-title {
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    font-family: var(--creed-font-ui);
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.creed-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: #E2ECE5;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto 1.75rem;
    font-weight: 400;
}

/* Transparansi Sumber Resmi Banner (WAJIB & TRANSPARAN) */
.creed-source-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 163, 90, 0.4);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    backdrop-filter: blur(6px);
    margin: 0 auto 1.5rem;
    max-width: 820px;
}

.source-banner-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #F8F4E8;
    font-size: 0.88rem;
    line-height: 1.45;
}

.source-banner-icon {
    color: #C5A35A;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.source-banner-badge {
    background: #C5A35A;
    color: #163628;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hero Controls: Language switcher & quick jumps */
.creed-hero-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.creed-lang-switcher {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(197, 163, 90, 0.35);
}

.creed-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #E2ECE5;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.creed-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.creed-lang-btn.active {
    background: #C5A35A;
    color: #163628;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.creed-quick-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-nav-label {
    font-size: 0.82rem;
    color: #E2ECE5;
    margin-right: 0.25rem;
}

.quick-nav-link {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-nav-link:hover {
    background: rgba(197, 163, 90, 0.3);
    border-color: #C5A35A;
    color: #F8F4E8;
}

/* ==========================================================================
   2. TOOLBAR INTERAKTIF (SEARCH & TOOLS)
   ========================================================================== */
.creed-toolbar {
    background: var(--creed-card-bg);
    border: 1px solid var(--creed-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--creed-shadow);
}

.toolbar-upper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-input-wrapper {
    position: relative;
    flex: 1 1 280px;
    min-width: 240px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--creed-sage);
    pointer-events: none;
    display: flex;
}

.creed-search-input {
    width: 100%;
    padding: 0.65rem 2.25rem 0.65rem 2.4rem;
    border-radius: 10px;
    border: 1.5px solid var(--creed-border);
    background: var(--creed-card-inner);
    color: var(--creed-text-main);
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.creed-search-input:focus {
    border-color: var(--creed-forest);
    box-shadow: 0 0 0 3px rgba(33, 77, 58, 0.12);
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--creed-text-muted);
    cursor: pointer;
    display: none;
    line-height: 1;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--creed-border);
    background: var(--creed-card-bg);
    color: var(--creed-text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-tool:hover {
    background: var(--creed-sage-light);
    border-color: var(--creed-forest);
    color: var(--creed-forest);
}

.btn-tool.btn-gold {
    background: var(--creed-forest);
    color: #ffffff;
    border-color: var(--creed-forest);
}

.btn-tool.btn-gold:hover {
    background: var(--creed-forest-dark);
    color: #ffffff;
}

.btn-tool.active {
    background: var(--creed-forest);
    color: #ffffff;
    border-color: var(--creed-forest);
}

.btn-tool.btn-icon-only {
    padding: 0.5rem 0.65rem;
    font-size: 1rem;
}

.tool-count-badge {
    background: var(--creed-gold);
    color: #163628;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
    margin-left: 0.2rem;
}

.font-size-group {
    display: inline-flex;
    border: 1px solid var(--creed-border);
    border-radius: 8px;
    overflow: hidden;
}

.btn-font-scale {
    background: var(--creed-card-bg);
    border: none;
    border-right: 1px solid var(--creed-border);
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--creed-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-font-scale:last-child {
    border-right: none;
}

.btn-font-scale:hover {
    background: var(--creed-sage-light);
    color: var(--creed-forest);
}

.btn-font-scale.active {
    background: var(--creed-forest);
    color: #ffffff;
}

/* ==========================================================================
   3. ARTIKEL PENGAKUAN IMAN CARDS
   ========================================================================== */
.creed-articles-container {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.creed-card {
    background: var(--creed-card-bg);
    border: 1px solid var(--creed-border);
    border-radius: var(--creed-radius);
    padding: 2rem;
    box-shadow: var(--creed-shadow);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.creed-card:hover {
    box-shadow: 0 12px 36px rgba(33, 77, 58, 0.12);
    border-color: var(--creed-border-gold);
}

/* Card Header */
.creed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--creed-border);
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.article-num-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--creed-forest);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(33, 77, 58, 0.2);
}

.article-titles {
    flex: 1;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--creed-forest);
    line-height: 1.3;
}

[data-theme="dark"] .article-title {
    color: #8fa895;
}

.article-subtitle {
    font-size: 1rem;
    color: var(--creed-gold);
    font-weight: 600;
    margin: 0;
}

.creed-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(33, 77, 58, 0.08);
    color: var(--creed-forest);
    border: 1px solid rgba(33, 77, 58, 0.2);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    white-space: nowrap;
}

[data-theme="dark"] .creed-verified-badge {
    background: rgba(143, 168, 149, 0.15);
    color: #e2ece5;
    border-color: rgba(143, 168, 149, 0.3);
}

/* Teks Resmi Kredo (Liturgis & Sakral) */
.creed-text-wrapper {
    background: var(--creed-card-inner);
    border: 1.5px solid var(--creed-border-gold);
    border-left: 5px solid var(--creed-gold);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.creed-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--creed-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.creed-liturgical-text {
    font-family: var(--creed-font-serif);
    font-size: 1.22rem;
    line-height: 1.85;
    color: var(--creed-text-main);
    margin: 0;
    font-weight: 500;
    position: relative;
    quotes: "“" "”";
}

.creed-liturgical-text::before {
    content: open-quote;
    font-size: 2.2rem;
    color: var(--creed-gold);
    line-height: 0;
    vertical-align: -0.4rem;
    margin-right: 0.2rem;
}

.creed-liturgical-text::after {
    content: close-quote;
    font-size: 2.2rem;
    color: var(--creed-gold);
    line-height: 0;
    vertical-align: -0.4rem;
    margin-left: 0.2rem;
}

/* Penjelasan Teologis Box */
.creed-explanation-box {
    background: rgba(143, 168, 149, 0.08);
    border: 1px solid var(--creed-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.explanation-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--creed-forest);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
}

[data-theme="dark"] .explanation-title {
    color: #8fa895;
}

.explanation-body {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--creed-text-main);
}

/* Dasar Firman & Tautan Silang */
.creed-references-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--creed-border);
}

.references-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ref-heading {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--creed-text-muted);
    min-width: 100px;
}

.ref-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.ref-pill.ref-alkitab {
    background: rgba(33, 77, 58, 0.08);
    color: var(--creed-forest);
    border-color: rgba(33, 77, 58, 0.2);
}

.ref-pill.ref-alkitab:hover {
    background: var(--creed-forest);
    color: #ffffff;
}

.ref-pill.ref-bibel {
    background: rgba(197, 163, 90, 0.12);
    color: #8b6b23;
    border-color: rgba(197, 163, 90, 0.35);
}

.ref-pill.ref-bibel:hover {
    background: var(--creed-gold);
    color: #163628;
}

.ref-pill.ref-cross {
    background: var(--creed-card-inner);
    color: var(--creed-text-main);
    border-color: var(--creed-border);
}

.ref-pill.ref-cross:hover {
    border-color: var(--creed-forest);
    color: var(--creed-forest);
    background: var(--creed-sage-light);
}

.ref-pill.ref-plain {
    background: var(--creed-card-inner);
    color: var(--creed-text-muted);
    border-color: var(--creed-border);
}

/* Card Actions Footer */
.creed-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--creed-border);
    flex-wrap: wrap;
}

.footer-actions-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--creed-border);
    background: var(--creed-card-bg);
    color: var(--creed-text-main);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: var(--creed-sage-light);
    border-color: var(--creed-forest);
    color: var(--creed-forest);
}

.card-btn.is-bookmarked {
    background: rgba(197, 163, 90, 0.15);
    color: #8b6b23;
    border-color: var(--creed-gold);
}

.card-btn.is-bookmarked .bm-icon {
    fill: #C5A35A;
}

.card-btn.has-active {
    background: rgba(33, 77, 58, 0.1);
    color: var(--creed-forest);
    border-color: var(--creed-forest);
}

.card-btn.is-speaking {
    background: var(--creed-forest);
    color: #ffffff;
    border-color: var(--creed-forest);
    animation: pulse-tts 1.5s infinite;
}

@keyframes pulse-tts {
    0% { box-shadow: 0 0 0 0 rgba(33, 77, 58, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(33, 77, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 77, 58, 0); }
}

/* ==========================================================================
   4. INLINE DRAWERS (CATATAN & REFLEKSI)
   ========================================================================== */
.creed-drawer {
    display: none;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--creed-card-inner);
    border: 1.5px solid var(--creed-border-gold);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.drawer-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--creed-forest);
}

[data-theme="dark"] .drawer-title {
    color: #8fa895;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--creed-text-muted);
    cursor: pointer;
    line-height: 1;
}

.drawer-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--creed-border);
    background: var(--creed-card-bg);
    color: var(--creed-text-main);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.drawer-textarea:focus {
    border-color: var(--creed-gold);
    box-shadow: 0 0 0 3px rgba(197, 163, 90, 0.2);
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.btn-drawer {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-drawer.btn-cancel {
    background: none;
    border: 1px solid var(--creed-border);
    color: var(--creed-text-muted);
}

.btn-drawer.btn-save {
    background: var(--creed-forest);
    border: 1px solid var(--creed-forest);
    color: #ffffff;
}

.btn-drawer.btn-save:hover {
    background: var(--creed-forest-dark);
}

.refleksi-question-box,
.application-prompt-box {
    background: rgba(197, 163, 90, 0.1);
    border-left: 3px solid var(--creed-gold);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.refleksi-question-box strong,
.application-prompt-box strong {
    color: var(--creed-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.refleksi-input-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--creed-forest);
    margin-bottom: 0.4rem;
    display: block;
}

[data-theme="dark"] .refleksi-input-label {
    color: #8fa895;
}

/* ==========================================================================
   5. MODAL: MODE BELAJAR SIDI (FLASHCARD TRAINER)
   ========================================================================== */
.creed-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 1.5rem;
}

.creed-modal-card {
    background: var(--creed-card-bg);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    padding: 2.25rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--creed-gold);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--creed-border);
}

.study-badge {
    background: var(--creed-sage-light);
    color: var(--creed-forest);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.study-step-indicator {
    font-size: 0.82rem;
    color: var(--creed-text-muted);
    margin-left: 0.6rem;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--creed-text-muted);
    cursor: pointer;
    line-height: 1;
}

.study-article-title {
    font-size: 1.45rem;
    color: var(--creed-forest);
    margin: 0 0 0.35rem;
    font-weight: 800;
}

[data-theme="dark"] .study-article-title {
    color: #8fa895;
}

.study-article-subtitle {
    font-size: 1rem;
    color: var(--creed-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.study-prompt-box {
    background: var(--creed-card-inner);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    border: 1px solid var(--creed-border);
}

.study-reveal-actions {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-study-reveal {
    background: var(--creed-gold);
    color: #163628;
    border: none;
    padding: 0.85rem 2.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(197, 163, 90, 0.3);
    transition: all 0.2s ease;
}

.btn-study-reveal:hover {
    background: #b49348;
    transform: translateY(-2px);
}

.study-answer-container {
    background: rgba(197, 163, 90, 0.08);
    border-left: 4px solid var(--creed-gold);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.study-creed-label,
.study-explanation-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--creed-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.study-explanation-label {
    margin-top: 1.25rem;
    color: var(--creed-forest);
}

[data-theme="dark"] .study-explanation-label {
    color: #8fa895;
}

.study-creed-quote {
    font-family: var(--creed-font-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--creed-text-main);
    margin: 0;
    font-weight: 500;
}

.study-explanation-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--creed-text-main);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--creed-border);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.btn-study-nav {
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    border: 1px solid var(--creed-border);
    background: var(--creed-card-bg);
    color: var(--creed-text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-study-nav:hover {
    background: var(--creed-sage-light);
    color: var(--creed-forest);
}

.btn-study-nav.btn-study-next {
    background: var(--creed-forest);
    color: #ffffff;
    border-color: var(--creed-forest);
}

.btn-study-nav.btn-study-next:hover {
    background: var(--creed-forest-dark);
}

.study-nav-hint {
    font-size: 0.78rem;
    color: var(--creed-text-muted);
}

/* ==========================================================================
   6. OVERLAY: MODE IBADAH LITURGIS (WARM AMBIENT / IVORY)
   ========================================================================== */
.mode-ibadah-overlay {
    position: fixed;
    inset: 0;
    background: #FAF7EE;
    color: #292B27;
    z-index: 99999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
}

[data-theme="dark"] .mode-ibadah-overlay {
    background: #141C18;
    color: #F2F6F3;
}

.mode-ibadah-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(197, 163, 90, 0.4);
}

.ibadah-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #214D3A;
}

[data-theme="dark"] .ibadah-brand {
    color: #C5A35A;
}

.ibadah-cross {
    color: #C5A35A;
    display: flex;
}

.ibadah-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-ibadah-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(197, 163, 90, 0.5);
    background: rgba(197, 163, 90, 0.1);
    color: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-ibadah-exit {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #214D3A;
    background: #214D3A;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-ibadah-exit {
    background: #C5A35A;
    border-color: #C5A35A;
    color: #163628;
}

.mode-ibadah-viewport {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ibadah-article-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-ibadah-step {
    background: none;
    border: 1px solid rgba(197, 163, 90, 0.5);
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ibadah-step:hover {
    background: rgba(197, 163, 90, 0.15);
}

.ibadah-indicator {
    font-size: 0.9rem;
    font-weight: 700;
    color: #C5A35A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-ibadah-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(197, 163, 90, 0.4);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.05);
    text-align: center;
}

[data-theme="dark"] .mode-ibadah-card {
    background: rgba(20, 28, 24, 0.8);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.ibadah-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #214D3A;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .ibadah-title {
    color: #8fa895;
}

.ibadah-subtitle {
    font-size: 1.15rem;
    color: #C5A35A;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ibadah-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C5A35A, transparent);
    margin: 1.5rem auto 2rem;
    max-width: 250px;
}

.ibadah-creed-text {
    font-family: var(--creed-font-serif);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    line-height: 2.1;
    color: #1a221e;
    margin: 0;
    font-weight: 500;
}

[data-theme="dark"] .ibadah-creed-text {
    color: #FAF7EE;
}

/* ==========================================================================
   7. MODE LANSIA & FONT SCALING
   ========================================================================== */
.font-scale-sm {
    --creed-font-size-base: 0.9rem;
    font-size: 0.9rem;
}
.font-scale-md {
    --creed-font-size-base: 1.05rem;
    font-size: 1.05rem;
}
.font-scale-lg {
    --creed-font-size-base: 1.2rem;
    font-size: 1.2rem;
}
.font-scale-xl {
    --creed-font-size-base: 1.35rem;
    font-size: 1.35rem;
}

.font-scale-lg .creed-liturgical-text {
    font-size: 1.45rem;
    line-height: 2;
}

.font-scale-xl .creed-liturgical-text {
    font-size: 1.65rem;
    line-height: 2.2;
}

/* Mode Lansia: High Contrast & Readability */
body.mode-lansia {
    --creed-card-bg: #FFFFFF;
    --creed-text-main: #000000;
    --creed-border: #000000;
    --creed-border-gold: #000000;
    --creed-forest: #0B291B;
    background: #FFFBF0 !important;
}

body.mode-lansia[data-theme="dark"] {
    --creed-card-bg: #000000;
    --creed-text-main: #FFFFFF;
    --creed-border: #FFFFFF;
    --creed-border-gold: #FFD700;
    --creed-forest: #A3E4C1;
    background: #000000 !important;
}

body.mode-lansia .creed-card {
    border: 2px solid #000000;
}

body.mode-lansia .creed-liturgical-text {
    font-size: 1.45rem !important;
    font-weight: 700;
    color: #000000;
    line-height: 2;
}

body.mode-lansia[data-theme="dark"] .creed-liturgical-text {
    color: #FFFFFF;
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS & EMPTY STATES
   ========================================================================== */
.creed-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #163628;
    color: #ffffff;
    border-left: 4px solid #C5A35A;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.creed-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.creed-empty-state,
.creed-empty-search {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--creed-card-bg);
    border-radius: var(--creed-radius);
    border: 1px solid var(--creed-border);
    margin-top: 1.5rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.creed-empty-state h3,
.creed-empty-search h3 {
    font-size: 1.35rem;
    color: var(--creed-forest);
    margin: 0 0 0.5rem;
}

.creed-empty-state p,
.creed-empty-search p {
    color: var(--creed-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .creed-hero {
        padding: 2rem 1.25rem;
    }

    .creed-source-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .creed-hero-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .creed-lang-switcher {
        width: 100%;
        justify-content: center;
    }

    .creed-quick-nav {
        justify-content: center;
    }

    .creed-card {
        padding: 1.25rem;
    }

    .creed-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .creed-liturgical-text {
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .mode-ibadah-card {
        padding: 1.75rem 1.25rem;
    }

    .mode-ibadah-overlay {
        padding: 1rem;
    }
}
