/* Bible Navigator Styles */

.bible-navigator {
    padding: 10px 0;
}

.bible-navigator h1 {
    margin-bottom: 10px;
}

.bible-navigator h1 big {
    font-size: 1.5em;
    margin-right: 5px;
}

.bible-stats {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.testament-header {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a6da7;
    color: #4a6da7;
    font-size: 1.3em;
}

.testament-header:first-of-type {
    margin-top: 10px;
}

/* Book, Chapter, Verse items */
.bible-books,
.bible-chapters,
.bible-verses,
.bible-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bible-book-item,
.bible-chapter-item,
.bible-verse-item {
    margin-bottom: 2px;
}

.bible-book-item a,
.bible-chapter-item a,
.bible-verse-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.bible-book-item a:hover,
.bible-chapter-item a:hover,
.bible-verse-item a:hover {
    background: #e9ecef;
}

.bible-book-item .icon,
.bible-chapter-item .icon,
.bible-verse-item .icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a6da7;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

.bible-book-item .icon::before {
    content: "📖";
}

.bible-chapter-item .icon::before {
    content: "📄";
}

.bible-verse-item .icon::before {
    content: "📍";
}

.bible-article-item .icon::before {
    content: "📃";
}

.bible-book-item .title,
.bible-chapter-item .title,
.bible-verse-item .title,
.bible-article-item .title {
    flex: 1;
    font-weight: 500;
}

.bible-book-item .refs-count,
.bible-chapter-item .refs-count,
.bible-verse-item .refs-count {
    color: #888;
    font-size: 0.85em;
    margin-left: 10px;
}

.bible-article-item .year {
    color: #4a6da7;
    font-weight: bold;
    margin-left: 10px;
    min-width: 50px;
    text-align: right;
}

/* Category headers in articles view */
.category-header {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 8px 15px;
    background: #4a6da7;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header .icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Chapter reference item styling */
.chapter-ref a {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.chapter-ref a:hover {
    background: #ffecb5;
}

/* Article item with expandable preview */
.bible-article-item {
    margin-bottom: 2px;
}

.bible-article-item .article-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bible-article-item .article-header:hover {
    background: #e9ecef;
}

.bible-article-item .article-header .icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4a6da7;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

.bible-article-item .article-header .title {
    flex: 1;
    font-weight: 500;
}

.bible-article-item .article-header .year {
    color: #4a6da7;
    font-weight: bold;
    margin-left: 10px;
    min-width: 100px;
    text-align: right;
}

.bible-article-item .article-header .expand-icon {
    margin-left: 10px;
    color: #888;
    font-size: 12px;
    transition: transform 0.2s;
}

/* Context size selector */
.context-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 5px 0 20px 0;
    padding: 10px 15px;
    font-size: 0.85em;
    color: #888;
    background: linear-gradient(to right, transparent, #f5f7fa);
    border-radius: 8px;
}

.context-selector span {
    font-weight: 500;
}

.context-selector select {
    padding: 6px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.context-selector select:hover {
    border-color: #4a6da7;
}

.context-selector select:focus {
    outline: none;
    border-color: #4a6da7;
    box-shadow: 0 0 0 3px rgba(74, 109, 167, 0.15);
}

/* Article preview panel */
.article-preview {
    padding: 15px 15px 15px 57px;
    background: #f0f4f8;
    border-radius: 0 0 5px 5px;
    margin-top: -3px;
    border-left: 3px solid #4a6da7;
}

.article-preview .preview-loading {
    color: #666;
    font-style: italic;
}

.article-preview .preview-context {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #333;
    font-size: 0.95em;
}

.article-preview .verse-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.article-preview .preview-link {
    display: inline-block;
    padding: 8px 16px;
    background: #4a6da7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.2s;
}

.article-preview .preview-link:hover {
    background: #3a5d97;
}

.article-preview .preview-error {
    color: #dc3545;
    font-style: italic;
}

/* Icon variations by category - scoped to bible-navigator */
.bible-navigator .icon-w::before { content: "📰"; }
.bible-navigator .icon-g::before { content: "📰"; }
.bible-navigator .icon-bk::before { content: "📚"; }
.bible-navigator .icon-bklt::before { content: "📑"; }
.bible-navigator .icon-ybk::before { content: "📅"; }
.bible-navigator .icon-bible::before { content: "📖"; }
.bible-navigator .icon-docs::before { content: "📃"; }

/* Two column layout for books on larger screens */
@media (min-width: 768px) {
    .bible-books {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

@media (min-width: 1200px) {
    .bible-books {
        grid-template-columns: repeat(3, 1fr);
    }
}
