/* Pastor's Study Bible - Bible Display and Content */

/* BIBLE CONTENT */
.bible-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
    min-height: 0;
}

/* Default verse styling (normal spacing) */
.verse {
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs) 45px var(--spacing-xs) var(--spacing-sm);
    line-height: 1.6;
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--border-radius-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TEXT SPACING VARIATIONS */

/* Tight spacing - minimal spacing for dense reading */
.text-spacing-tight .bible-content {
    padding: var(--spacing-xs);
}

.text-spacing-tight .verse {
    margin-bottom: 2px;
    padding: 2px 40px 2px var(--spacing-xs);
    line-height: 1.4;
}

/* Normal spacing - current default */
.text-spacing-normal .bible-content {
    padding: var(--spacing-sm);
}

.text-spacing-normal .verse {
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs) 45px var(--spacing-xs) var(--spacing-sm);
    line-height: 1.6;
}

/* Wide spacing - generous spacing for easy reading */
.text-spacing-wide .bible-content {
    padding: var(--spacing-md);
}

.text-spacing-wide .verse {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) 45px var(--spacing-sm) var(--spacing-sm);
    line-height: 1.8;
}

.verse:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.verse:hover .add-note-btn {
    opacity: 1 !important; /* Force show on hover */
}

.verse-number {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    font-weight: bold;
    margin-right: var(--spacing-sm);
    vertical-align: super;
}

/* Small caps for divine name (LORD) */
.small-caps {
    font-variant: small-caps;
    font-size: 0.85em;
    letter-spacing: 0.03em;
}

.add-note-btn {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(52, 152, 219, 0.3);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
    z-index: 10;
}

.add-note-btn:hover {
    opacity: 1 !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* SCRIPTURE LINKS */
.scripture-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition-fast);
}

.scripture-link:hover {
    color: var(--primary-hover);
}

/* PASSAGE PICKER MODAL */
.picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 2000;
    overflow-y: auto;
}

.picker-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    padding: var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.picker-header h2 {
    margin-bottom: var(--spacing-sm);
}

.picker-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.picker-content {
    padding: var(--spacing-xl);
}

.picker-section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: bold;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--bg-secondary);
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: var(--transition-medium);
}

.category-card:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
    transform: translateY(-2px);
}

.category-card.active {
    border-color: var(--primary-color);
    background: #e7f3ff;
}

.category-title {
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.category-books {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* BOOK GRID */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.book-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-medium);
    padding: 0.8rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
    justify-content: center;
}

.book-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.book-card.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.book-card.has-notes::after {
    content: '•';
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--success-color);
    font-size: var(--font-size-xs);
}

.book-name {
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.book-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.book-card.selected .book-meta {
    color: rgba(255,255,255,0.8);
}

/* NAVIGATION GRID */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: var(--spacing-sm);
}

.nav-btn {
    padding: 10px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    transform: translateY(-1px);
}

.nav-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-btn.has-notes {
    border-color: var(--success-color);
    background: #f8fff8;
}

.nav-btn.has-notes:hover {
    border-color: var(--success-color);
    background: #d4edda;
}

.nav-btn.has-notes::after {
    content: '•';
    position: absolute;
    top: 4px;
    right: 4px;
    color: var(--success-color);
    font-size: 8px;
    line-height: 1;
}

/* PICKER BUTTONS */
.picker-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: