/* ===== DAILY READING PAGE STYLES ===== */
/* Standalone styles for daily reading pages - v2 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --accent-color: #72abbf;
    --accent-hover: #5a96a8;

    --text-primary: #424547;
    --text-secondary: #5e6266;
    --text-tertiary: #9a9fa3;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dce0e3;

    --footnote-color: #c07830;
    --crossref-color: #3a8fb7;

    /* Typography */
    --font-serif: "Sentinel", "Gentium Plus", Georgia, Times, serif;
    --font-sans: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ===== BASE RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* ===== SITE HEADER & BANNER ===== */
.site-header {
    position: relative;
    width: 100%;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    text-align: center;
    padding: 1rem;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.site-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(114, 171, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(114, 171, 191, 0.4);
    color: white;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    padding: 2rem;
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.3rem 0;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    left: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MAIN CONTAINER ===== */
.daily-reading-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem 2rem 1rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
}

/* ===== HEADER SECTION ===== */
.reading-header {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.reading-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.reading-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

/* Settings Gear Button - Inside bible content box top-right */
.settings-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: auto;
    height: auto;
    padding: 0.3rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.3rem;
    color: var(--text-secondary);
    z-index: 100;
}

/* Settings button wrapper for positioning context */
.settings-wrapper {
    position: relative;
    z-index: 100;
}

.settings-wrapper .settings-btn {
    position: relative;
}

.settings-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Settings Dropdown Menu */
.settings-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.settings-menu.active {
    display: block;
}

.settings-menu h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    padding: 0 0.75rem;
    color: var(--text-secondary);
}

.settings-menu label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}

.settings-menu label:hover {
    background: #f8f9fa;
}

.settings-menu input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* ===== SHARE BUTTON ===== */
.share-section {
    position: relative;
    z-index: 100;
}

.share-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-text {
    font-weight: 500;
    order: 2;
}

.share-icon {
    height: 1em;
    width: auto;
    display: inline-block;
    order: 1;
    vertical-align: middle;
}

.share-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Share Dropdown Menu */
.share-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.share-option:first-child {
    border-radius: 8px 8px 0 0;
}

.share-option:last-child {
    border-radius: 0 0 8px 8px;
}

.share-option:hover {
    background: var(--light-bg);
}

.share-option-icon {
    width: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.share-option-label {
    font-size: 0.9rem;
}

/* ===== VERSE CARD SECTION ===== */
.verse-card-container {
    max-width: 400px;
    margin: 0 auto 0.5rem auto;
}

.verse-card-section {
    position: relative;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.verse-card-section.hidden {
    display: none;
}

.verse-card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    cursor: pointer;
}

.verse-card-copy-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    padding: 0.35rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.verse-card-copy-btn:hover {
    background: rgba(255,255,255,0.4);
}

.verse-card-copy-btn.copied {
    background: rgba(39, 174, 96, 0.7);
}

/* ===== IMAGE LIGHTBOX ===== */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-actions {
    margin-top: 1rem;
}

.lightbox-download-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.lightbox-download-btn:hover {
    background: var(--accent-hover);
}

/* ===== IMAGE SECTION ===== */
.image-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.image-section.hidden {
    display: none;
}

.scripture-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== AUDIO SECTION ===== */
.audio-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.audio-section.hidden {
    display: none;
}

.audio-label {
    display: none;
}

.bible-audio {
    width: 100%;
    height: 32px;
    border-radius: 4px;
    outline: none;
}

/* ===== BIBLE CONTENT (ESV STYLES) ===== */
.bible-content-container {
    position: relative;
    max-width: 900px;
    margin: 1rem auto 2rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Share on left, Settings on right, Bible content full width below */
.bible-content-container .share-section {
    order: 1;
}

.bible-content-container .settings-wrapper {
    order: 2;
    margin-left: auto;
}

.bible-content-container .bible-content {
    order: 3;
    width: 100%;
}

.bible-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7rem;
    color: var(--text-primary);
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.bible-content h3 {
    clear: both;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.7rem;
    margin: 0.8rem 0 0 0;
    color: var(--text-primary);
}

.bible-content h4 {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.bible-content p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7rem;
    margin: 0;
    text-indent: 2rem;
}

.bible-content p.starts-chapter {
    text-indent: 0;
}

.bible-content .chapter-num {
    float: left;
    font-size: 3.2rem;
    font-weight: 400;
    padding-top: 0.65rem;
    margin-left: -0.3rem;
    line-height: 1;
}

.bible-content .verse-num {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.4rem;
    padding: 0 0.15rem;
    color: var(--text-secondary);
}

/* Footnotes - Numbers in brown/orange */
.bible-content .footnote {
    position: relative;
    top: -0.4rem;
    font-size: 0.75rem;
    line-height: 0;
}

.bible-content .footnote a.fn {
    color: var(--footnote-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bible-content .footnote a.fn:hover {
    color: #a05520;
    text-decoration: underline;
}

.bible-content .footnote a.fn::before {
    content: "[";
}

.bible-content .footnote a.fn::after {
    content: "]";
}

/* Crossrefs - Letters in blue (ESV uses sup > a.cf structure) */
.bible-content sup:has(> a.cf) {
    position: relative;
    top: -0.4rem;
    font-size: 0.75rem;
    line-height: 0;
}

.bible-content a.cf {
    color: var(--crossref-color);
    text-decoration: none;
    font-weight: 600;
    font-style: italic;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bible-content a.cf:hover {
    color: #2a6f97;
    text-decoration: underline;
}

.bible-content a.cf::before {
    content: "(";
}

.bible-content a.cf::after {
    content: ")";
}

/* Hide footnotes/crossrefs when toggled */
.bible-content.hide-footnotes .footnote {
    display: none;
}

.bible-content.hide-crossrefs sup:has(> a.cf) {
    display: none;
}

/* Hide verse/chapter numbers when toggled */
.bible-content.hide-verse-nums .verse-num {
    display: none;
}

.bible-content.hide-chapter-nums .chapter-num {
    display: none;
}

/* Adjust first paragraph when chapter number is hidden */
.bible-content.hide-chapter-nums p.starts-chapter {
    text-indent: 2rem;
}

/* Poetry/line styling */
.bible-content .line {
    display: block;
    text-indent: -4rem;
    padding-left: 6rem;
}

.bible-content .indent.line {
    text-indent: -3rem;
    padding-left: 6rem;
}

.bible-content .block-indent {
    margin: 0;
}

/* Footnotes section at bottom */
.bible-content .footnotes {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1.2rem;
}

.bible-content .footnotes.hidden {
    display: none;
}

.bible-content .footnotes h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 0.6rem;
    color: var(--footnote-color);
}

.bible-content .footnotes p {
    font-size: 0.95rem;
    line-height: 1.5rem;
    text-indent: 0;
    margin-bottom: 0.5rem;
}

.bible-content .footnote-ref {
    color: var(--footnote-color);
    font-weight: 600;
}

/* Cross-references section at bottom */
.bible-content .crossrefs {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 1.2rem;
}

.bible-content .crossrefs.hidden {
    display: none;
}

.bible-content .crossrefs h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: normal;
    margin-bottom: 0.6rem;
    color: var(--crossref-color);
}

.bible-content .crossrefs p {
    font-size: 0.95rem;
    line-height: 1.8rem;
    text-indent: 0;
    margin-bottom: 0.5rem;
}

.bible-content .crossrefs .crossref-link {
    color: var(--crossref-color);
    text-decoration: none;
    font-weight: 500;
}

.bible-content .crossrefs .crossref-link:hover {
    text-decoration: underline;
}

.bible-content .crossrefs .crossref-ref {
    color: var(--crossref-color);
    font-weight: 500;
}

/* New grouped cross-refs section (at bottom of page) */
.bible-content .crossrefs .crossrefs-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.bible-content .crossrefs .crossrefs-list {
    font-size: 0.8rem;
    line-height: 1.5;
}

.bible-content .crossrefs .crossref-group {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.bible-content .crossrefs .crossref-group a {
    color: var(--crossref-color);
    text-decoration: none;
}

.bible-content .crossrefs .crossref-group a:hover {
    text-decoration: underline;
}

/* Copyright notice */
.bible-content .copyright {
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 1.2rem;
}

/* ===== MODAL POPUP ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9998;
}

.modal-overlay.active {
    display: block;
}

.modal-popup {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 1.5rem;
    max-width: 400px;
    z-index: 9999;
    display: none;
}

.modal-popup.active {
    display: block;
}

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

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.modal-title.footnote {
    color: var(--footnote-color);
}

.modal-title.crossref {
    color: var(--crossref-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.modal-content .verse-ref {
    font-weight: 600;
    color: var(--crossref-color);
    margin-bottom: 0.5rem;
    display: block;
}

.modal-content .esv-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modal-content .esv-link:hover {
    color: #5e9aac;
    text-decoration: underline;
}

/* ===== CROSSREF POPUP LIST ===== */
.crossref-list {
    max-height: 300px;
    overflow-y: auto;
}

.crossref-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.crossref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.crossref-reference {
    font-weight: 600;
    color: var(--crossref-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.crossref-reference:hover {
    text-decoration: underline;
}

.crossref-reference .esv-arrow {
    font-size: 0.85em;
    opacity: 0.7;
}

.crossref-text {
    font-family: var(--bible-serif-font);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
    line-height: 1.5;
    font-style: italic;
}

.crossref-version {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ===== COMMENTARY & DEVOTIONAL SECTION ===== */
.additional-content {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.content-btn {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.content-btn.devotional {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.content-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

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

.content-btn .icon {
    font-size: 1.2rem;
}

/* ===== SIDE PANEL OVERLAY ===== */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.side-panel-overlay.active {
    display: block;
}

.side-panel {
    position: fixed;
    right: -500px;
    top: 0;
    bottom: 0;
    width: 90%;
    max-width: 500px;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 10001;
}

.side-panel.active {
    right: 0;
}

.side-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-panel-header.devotional {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.side-panel-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.side-panel-close {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.side-panel-close:hover {
    background: rgba(255,255,255,0.3);
}

.side-panel-content {
    padding: 2rem;
    line-height: 1.8;
}

.side-panel-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.side-panel-content p {
    margin-bottom: 1rem;
    text-indent: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== VERSE SELECTION ===== */
.verse-wrapper {
    cursor: pointer;
    display: inline;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.verse-wrapper:hover {
    border-bottom: 2px dotted #c5dce5;
}

.verse-wrapper.selected {
    border-bottom: 2px dotted var(--accent-color);
    background-color: rgba(114, 171, 191, 0.05);
    width: fit-content;
}

/* ===== FLOATING COPY BUTTON (FAB) ===== */
.copy-fab {
    position: absolute;
    top: 0.5rem;
    right: 3.5rem;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    z-index: 101;
    animation: fabFadeIn 0.2s ease;
}

.copy-fab.visible {
    display: flex;
}

@keyframes fabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.copy-button {
    background: white;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: auto;
    height: auto;
    padding: 0.3rem 0.4rem;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    position: relative;
}

.copy-button:hover {
    color: white;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.verse-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    border: 2px solid white;
}

.clear-selection-button {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: auto;
    height: auto;
    padding: 0.3rem 0.4rem;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.clear-selection-button:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* ===== TOAST NOTIFICATION ===== */
.verse-toast {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: #27ae60;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10003;
    pointer-events: none;
}

.verse-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING & ERROR STATES ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.error-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-container.show {
    display: flex;
}

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

.error-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Reading Content Container */
#readingContent {
    display: none;
}

#readingContent.loaded {
    display: block;
}

/* ===== DAY NAVIGATION ===== */
.day-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 1rem auto;
    padding: 0 1rem;
}

.day-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 50px;
    box-shadow: 0 2px 6px rgba(114, 171, 191, 0.3);
}

.day-nav-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(114, 171, 191, 0.4);
}

.day-nav-btn.disabled {
    visibility: hidden;
}

.day-nav-btn .arrow {
    font-size: 1.4rem;
    font-weight: 600;
}

.day-nav-current {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Site Header */
    .banner-container {
        height: 150px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }

    /* Navigation */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav {
        position: relative;
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 0 0;
        text-align: center;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child .nav-link {
        border-bottom: none;
    }

    /* Footer */
    .site-footer {
        padding: 1.5rem;
        font-size: 0.85rem;
    }

    .daily-reading-container {
        padding: 1rem 0.5rem;
    }

    .reading-header {
        padding: 0.75rem 1rem;
    }

    .reading-title {
        font-size: 1.3rem;
    }

    .verse-card-container {
        max-width: 360px;
    }

    .verse-card-image {
        max-width: 360px;
        height: auto;
    }

    .settings-btn {
        font-size: 1.1rem;
        padding: 0.25rem 0.35rem;
    }

    .share-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .share-icon {
        height: 0.9em;
        width: auto;
    }

    .audio-section {
        padding: 0.3rem 0.5rem;
        max-width: 360px;
    }

    .bible-audio {
        height: 30px;
    }

    .bible-content {
        padding: 1rem;
        font-size: 1rem;
    }

    .bible-content .chapter-num {
        font-size: 2.8rem;
    }

    .additional-content {
        flex-direction: column;
    }

    .content-btn {
        min-width: 100%;
    }

    .side-panel {
        width: 100%;
        max-width: 100%;
    }

    .modal-popup {
        max-width: 90%;
        left: 5% !important;
        right: 5%;
    }

    .share-dropdown {
        left: 0;
        transform: translateY(-10px);
    }

    .share-dropdown.active {
        transform: translateY(0);
    }

    .copy-button {
        font-size: 1.1rem;
        padding: 0.25rem 0.35rem;
    }

    .clear-selection-button {
        font-size: 1rem;
        padding: 0.25rem 0.35rem;
    }

    .verse-count-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .verse-toast {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }

    /* Day Navigation - Mobile */
    .day-nav {
        padding: 0 0.5rem;
    }

    .day-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-width: 44px;
    }

    .day-nav-btn .arrow {
        font-size: 1.2rem;
    }

    .day-nav-btn .label {
        display: none;
    }

    .day-nav-current {
        font-size: 1.1rem;
    }
}
