/* ============================================
   BIBLE READER — /biblias/
   ============================================ */

#bible-reader {
    padding: 32px 0 80px;
    min-height: 60vh;
}

/* ── Version Pills ──────────────────────────────────────────────────────── */
.br-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.br-pill {
    padding: 6px 18px;
    border-radius: var(--radius-full, 9999px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    border: 0.5px solid #1e2a38;
    background: #111820;
    color: #8892a0;
    transition: all 140ms ease;
}

.br-pill.active {
    background: #c8a832;
    color: #1a1000;
    border-color: #c8a832;
}

.br-pill:hover:not(.active) {
    border-color: #c8a832;
    color: #c8a832;
}

.br-version-divider {
    width: 1px;
    align-self: stretch;
    min-height: 26px;
    margin: 0 4px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(200, 168, 50, 0.65),
        transparent
    );
}

/* ── Navigation bar ─────────────────────────────────────────────────────── */
.br-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #111820;
    border: 0.5px solid #1e2a38;
    border-radius: 10px;
    margin-bottom: 20px;
}

.br-select {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    background: #0d1117;
    border: 0.5px solid #1e2a38;
    border-radius: var(--radius-md, 6px);
    color: #f0e8d0;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 140ms ease;
}

.br-select:focus { border-color: #c8a832; outline: none; }

.br-select:disabled { opacity: 0.4; cursor: not-allowed; }

.br-select option { background: #0d1117; }

.br-search-wrap {
    display: flex;
    flex: 1;
    min-width: 220px;
    gap: 6px;
}

.br-search {
    flex: 1;
    padding: 8px 12px;
    background: #0d1117;
    border: 0.5px solid #1e2a38;
    border-radius: var(--radius-md, 6px);
    color: #f0e8d0;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 140ms ease;
}

.br-search:focus  { border-color: #c8a832; outline: none; }
.br-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.br-search::placeholder { color: #606878; }

.br-search-btn {
    padding: 8px 16px;
    background: rgba(200, 168, 50, 0.1);
    border: 0.5px solid rgba(200, 168, 50, 0.5);
    border-radius: var(--radius-md, 6px);
    color: #c8a832;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 140ms ease;
}

.br-search-btn:hover { background: rgba(200, 168, 50, 0.2); }

/* ── Status / Spinner ───────────────────────────────────────────────────── */
.br-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    margin-bottom: 12px;
    color: #8892a0;
    font-size: 13px;
}

.br-status-err { color: #e07878; }

.br-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #1e2a38;
    border-top-color: #c8a832;
    border-radius: 50%;
    flex-shrink: 0;
    animation: br-spin 0.65s linear infinite;
}

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

/* ── Empty state ────────────────────────────────────────────────────────── */
.br-empty {
    text-align: center;
    padding: 60px 20px;
    color: #606878;
    font-size: 14px;
    border: 0.5px dashed #1e2a38;
    border-radius: 10px;
}

/* ── Verse display ──────────────────────────────────────────────────────── */
.br-verses {
    background: #111820;
    border: 0.5px solid #1e2a38;
    border-radius: 10px;
    padding: 28px 28px 20px;
}

.br-chapter-ref {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 600;
    color: #f0e8d0;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 0.5px solid #1e2a38;
    display: flex;
    align-items: center;
    gap: 10px;
}

.br-ver-badge {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: rgba(200, 168, 50, 0.12);
    color: #c8a832;
    padding: 2px 8px;
    border-radius: 4px;
}

.br-verse {
    display: flex;
    gap: 14px;
    padding: 9px 10px;
    border-radius: 5px;
    transition: background 300ms ease;
    margin: 0 -10px;
}

.br-verse:last-child { margin-bottom: 0; }

.br-vnum {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #c8a832;
    width: 20px;
    padding-top: 5px;
    text-align: right;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.br-vtext {
    color: #f0e8d0;
    font-size: 15px;
    line-height: 1.85;
    flex: 1;
}

.br-verse-hl {
    background: rgba(200, 168, 50, 0.09);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    #bible-reader { padding: 20px 0 60px; }

    .br-pills { gap: 6px; }
    .br-version-divider {
        flex-basis: 100%;
        width: 100%;
        height: 1px;
        min-height: 1px;
        margin: 2px 0;
        background: linear-gradient(
            to right,
            transparent,
            rgba(200, 168, 50, 0.5),
            transparent
        );
    }
    .br-pill  { padding: 5px 13px; font-size: 11px; }

    .br-nav        { flex-direction: column; padding: 12px; }
    .br-select     { min-width: 100%; }
    .br-search-wrap { min-width: 100%; }

    .br-verses { padding: 18px 14px 14px; }
    .br-vtext  { font-size: 14px; line-height: 1.75; }

    .br-chapter-ref { font-size: 15px; }
}
