
/* =====================================================
   COMMON HOLY BIBLE HEADER
   Self-contained so this page does not depend on
   another page's CSS being loaded correctly.
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 68px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    width: min(1280px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
}

.site-brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg,#a97843,#70451f);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(112,69,31,.18);
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-brand-text strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.site-brand-text small {
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 550;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
}

.site-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: .18s ease;
}

.site-navigation a:hover,
.site-navigation a.active {
    color: var(--primary);
    background: var(--surface-soft);
}

.site-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 19px;
    cursor: pointer;
}

/* =====================================================
   COMMON HOLY BIBLE FOOTER
===================================================== */

.site-footer {
    width: 100%;
    margin-top: 30px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#a97843,#70451f);
    color: #fff;
    font-size: 18px;
}

.site-footer-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.site-footer-subtitle {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 11px;
}

.site-footer-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.site-footer-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: .18s ease;
}

.site-footer-navigation a:hover,
.site-footer-navigation a.active {
    background: var(--surface-soft);
    color: var(--primary);
}

.site-footer-navigation a:last-child {
    color: var(--primary);
    font-weight: 750;
}

.site-footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 13px 0 17px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}

.site-footer-divider {
    opacity: .45;
}

/* Disabled navigation */
.reading-nav-btn.disabled,
.reading-bottom-btn.disabled {
    opacity: .45;
    pointer-events: none;
}

/* Mobile common header/footer */
@media (max-width: 760px) {
    .site-header {
        height: 62px;
    }

    .site-header-inner {
        width: calc(100% - 24px);
    }

    .site-navigation {
        display: none;
    }

    .site-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-footer-inner {
        width: min(100% - 30px, 600px);
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 18px;
    }

    .site-footer-navigation {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .site-footer-inner,
    .site-footer-bottom {
        width: calc(100% - 24px);
    }

    .site-footer-inner {
        padding: 23px 0 19px;
    }

    .site-footer-navigation {
        gap: 3px;
    }

    .site-footer-navigation a {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* =====================================================
   DAILY READING - SEPARATE CHALLENGE READER
===================================================== */

.daily-reading-page {
    min-height: calc(100vh - 68px);
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
}

.reading-mobile-nav {
    display: none;
}

@media (max-width: 760px) {
    .reading-mobile-nav {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding: 10px 15px 14px;
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 25px rgba(0,0,0,.08);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .2s ease;
    }

    .reading-mobile-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .reading-mobile-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 9px;
        color: var(--text);
        text-decoration: none;
        font-size: 13px;
        font-weight: 650;
    }

    .reading-mobile-nav a.active,
    .reading-mobile-nav a:hover {
        color: var(--primary);
        background: var(--surface-soft);
    }
}

/* Hero */
.reading-hero {
    width: min(1100px, calc(100% - 30px));
    margin: 0 auto;
    padding: 52px 20px 30px;
    text-align: center;
}

.reading-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.reading-day-label {
    margin-top: 22px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .1em;
}

.reading-hero h1 {
    margin: 8px auto 8px;
    max-width: 900px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.reading-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 650;
}

/* Progress / day navigation */
.reading-toolbar {
    width: min(1100px, calc(100% - 30px));
    margin: 0 auto 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reading-progress-wrap {
    min-width: 180px;
}

.reading-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.reading-progress-top strong {
    color: var(--primary);
}

.reading-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.reading-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a97843, #70451f);
    transition: width .25s ease;
}

.reading-nav-btn,
.reading-bottom-btn,
.reading-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: .18s ease;
}

.reading-nav-btn:hover,
.reading-bottom-btn:hover,
.reading-back-btn:hover {
    background: var(--surface-soft);
    transform: translateY(-1px);
}

/* Chapters */
.reading-chapters {
    width: min(1100px, calc(100% - 30px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reading-chapter-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reading-chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.reading-chapter-number {
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.reading-chapter-title {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.25;
}

.reading-chapter-card .chapter-verses {
    padding: 25px 30px 30px;
}

.reading-verse {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 9px 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.85;
}

.reading-verse-number {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding-top: 6px;
    text-align: right;
}

.reading-verse-text {
    white-space: pre-wrap;
}

.reading-chapter-end {
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

/* Completion */
.reading-complete-card {
    width: min(1100px, calc(100% - 30px));
    margin: 26px auto 0;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reading-complete-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft, rgba(139,94,52,.09));
    color: var(--primary);
    font-size: 21px;
    font-weight: 900;
}

.reading-complete-content {
    flex: 1;
}

.reading-complete-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.reading-complete-content h2 {
    margin: 4px 0;
    font-size: 18px;
}

.reading-complete-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.reading-complete-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.reading-complete-btn.completed {
    background: var(--surface);
    color: var(--primary);
}

/* Bottom navigation */
.reading-bottom-nav {
    width: min(1100px, calc(100% - 30px));
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
}

.reading-bottom-nav .reading-bottom-btn:last-child {
    justify-self: end;
}

/* Responsive */
@media (max-width: 760px) {
    .reading-hero {
        padding-top: 38px;
    }

    .reading-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .reading-progress-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .reading-nav-btn {
        width: 100%;
    }

    .reading-verse {
        grid-template-columns: 28px 1fr;
        font-size: 17px;
        line-height: 1.75;
    }

    .reading-chapter-card .chapter-verses {
        padding: 20px 18px 24px;
    }

    .reading-complete-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .reading-complete-content {
        min-width: calc(100% - 62px);
    }

    .reading-complete-btn {
        width: 100%;
    }

    .reading-bottom-nav {
        grid-template-columns: 1fr 1fr;
    }

    .reading-back-btn {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 480px) {
    .reading-hero,
    .reading-toolbar,
    .reading-chapters,
    .reading-complete-card,
    .reading-bottom-nav {
        width: calc(100% - 20px);
    }

    .reading-chapter-header {
        padding: 15px;
    }

    .reading-chapter-title {
        font-size: 18px;
    }

    .reading-verse {
        grid-template-columns: 24px 1fr;
        gap: 8px;
        font-size: 16px;
    }

    .reading-bottom-nav {
        gap: 8px;
    }

    .reading-bottom-btn,
    .reading-back-btn {
        padding: 0 10px;
        font-size: 11px;
    }
}
