.bible-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    /* Background and text colors will be overridden by inline CSS */
}

.bible-navigation {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.dropdown-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.bible-navigation select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px; /* Equal height for all elements */
    box-sizing: border-box; /* Important for consistent heights */
    min-width: 180px; /* Wider selects for better readability */
    /* Background color will be set inline */
}

/* Change dropdown hover color */
.bible-navigation select option:hover,
.bible-navigation select option:focus {
    background-color: #F95738 !important;
    color: white !important;
}

.chapter-group {
    transition: opacity 0.3s ease-in-out;
}

.bible-content-wrapper {
    display: flex;
    flex-direction: column;
}

.bible-content {
    line-height: 1.6;
}

.verse-links {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

/* Styling for the default "Select a verse" message */
.no-verse-selected {
    font-style: italic;
    color: #666;
}

/* Desktop layout */
@media (min-width: 768px) {
    .bible-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .bible-content {
        flex: 3;
        padding-right: 20px;
    }
    
    .verse-links {
        flex: 1;
        margin-top: 0;
        margin-left: 20px;
        padding-top: 0;
        padding-left: 20px;
        border-top: none;
        border-left: 1px solid #ddd;
        min-width: 250px;
        position: sticky;
        top: 130px; /* clears the WP admin bar */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.verse {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s, border-left 0.2s;
    border-left: 4px solid transparent; /* reserve space so text doesn't shift */
}

/* Style for verses with no resources */
.verse.no-resources {
    opacity: 0.5;
    border-left-color: transparent !important;
}

.verse:hover {
    filter: brightness(1.15);
}

.verse.selected-verse {
    background-color: rgba(249, 87, 56, 0.25) !important;
    color: #F95738 !important;
    opacity: 1 !important;
    border-left-color: #F95738 !important;
}

/* Heatmap legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.78em;
    flex-wrap: wrap;
}

.heatmap-legend-label {
    color: #999;
    white-space: nowrap;
}

.heatmap-legend-swatches {
    display: flex;
    gap: 3px;
}

.heatmap-swatch {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.verse-number {
    font-weight: bold;
    font-size: 0.8em;
    vertical-align: super;
    margin-right: 2px;
}

.verse-links h3 {
    margin-top: 0;
}

.verse-links ul {
    padding-left: 20px;
}

.verse-links a {
    text-decoration: none;
}

.verse-links a:hover {
    text-decoration: underline;
}

.membership-notice {
    margin-top: 15px;
    background-color: #0F0F0F;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.membership-btn {
    display: inline-block;
    background-color: #f95738 !important;
    color: white !important;
    padding: 8px 16px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.membership-btn:hover {
    background-color: #e84a2e;
    color: white;
}

.membership-container {
    margin-bottom: 1em;
}

.membership-notice {
    margin-bottom: 1em;
}

/* Add to styles.css */
.member-benefit-divider {
    margin: 10px 0;
    padding: 4px 1px;
    background-color: transparent;
    color: #666;
    border-radius: 4px;
    text-align: center;
}

.member-benefit-text {
    margin: 0;
    font-weight: bold;
    text-decoration: underline;
}

/* Add to your styles.css file */

/* Mobile Popup Styling */
.verse-links-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: #0f0f0f;
    z-index: 1000;
    border-top: 2px solid #f95738;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.verse-links-popup.active {
    display: block;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.popup-close:hover {
    color: #f95738;
}

/* Only show popup on mobile */
@media (min-width: 768px) {
    .verse-links-popup {
        display: none !important;
    }
    
    .popup-toggle {
        display: none !important;
    }
}

/* Hide original verse-links panel on mobile */
@media (max-width: 767px) {
    .verse-links {
        display: none;
    }
}

.chapter-heading {
    font-size: 1.2em;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
    text-align: left;
    font-style: italic;
    color: #faf0ca;
}

.section-heading {
    font-size: 1.2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #faf0ca;
}
/* Sign-in prompt for logged-out users */
.signin-prompt {
    margin-top: 10px;
    background-color: #0F0F0F;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.signin-prompt p {
    margin: 0 0 10px 0;
}

.signin-btn {
    display: inline-block;
    background-color: #f95738 !important;
    color: white !important;
    padding: 8px 16px;
    margin-top: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.signin-btn:hover {
    background-color: #e84a2e !important;
    color: white !important;
}

/* Daily verse limit prompt (non-members who've hit their limit) */
.daily-limit-prompt {
    margin-top: 10px;
    background-color: #0F0F0F;
    border: 1px solid #f95738;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.daily-limit-prompt p {
    margin: 0 0 8px 0;
}

/* Small usage counter shown in the default panel for non-members */
.daily-limit-note {
    font-size: 0.8em;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* ── Resource voting UI ───────────────────────────────────────────────────── */
.resource-list {
    padding-left: 20px;
    list-style: disc;
}

.resource-item {
    margin-bottom: 8px;
}

.vote-widget {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.vote-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78em;
    padding: 1px 5px;
    color: inherit;
    opacity: 0.55;
    transition: opacity 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.vote-btn:hover {
    opacity: 1;
    border-color: currentColor;
}

.vote-btn.voted {
    opacity: 1;
    border-color: #f95738;
    color: #f95738;
}

.vote-count {
    font-size: 0.95em;
}

/* Score badge — visible during testing, remove later */
.vote-score {
    font-size: 0.7em;
    color: #888;
    margin-left: 4px;
    font-style: italic;
}
/* ── Resource accordion ──────────────────────────────────────────────────── */

/* Each resource item */
.resource-item {
    margin-bottom: 4px;
}

/* The clickable header row — styled to look like the old link */
.resource-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 3px 0;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.resource-accordion-header:hover .resource-accordion-title {
    text-decoration: underline;
}

/* Title inherits the existing link colour from .verse-links a */
.resource-accordion-title {
    flex: 1;
    color: inherit;
    cursor: pointer;
}

/* Chevron — rotates 90° when open */
.resource-accordion-chevron {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: #f95738;
    cursor: pointer;
}

/* Use > as the bullet — rotate it when the accordion is open */
.resource-accordion-open > .resource-accordion-header .resource-accordion-chevron {
    transform: rotate(90deg);
}

/* Collapsible body — height animates between 0 and content height */
.resource-accordion-body {
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease;
    padding: 0 0 0 8px;
    border-left: 2px solid #f95738;
    margin-left: 2px;
}

/* When open, body has a little breathing room */
.resource-accordion-open .resource-accordion-body {
    padding-top: 6px;
    padding-bottom: 8px;
}

/* "Open resource ↗" link inside the panel */
.resource-accordion-link {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Vote widget sits below the link inside the panel */
.resource-accordion-body .vote-widget {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* "Also found in" passage list */
.resource-also-found {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-also-found-label {
    margin: 0;
    font-size: 0.8em;
    color: #999;
    line-height: 1.5;
}

.resource-also-found-list {
    color: #bbb;
}

.resource-passage-link {
    color: #f95738;
    text-decoration: none;
    font-size: 0.8em;
}

.resource-passage-link:hover {
    text-decoration: underline;
}