/* Bible Selection Grid */
.bible-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
}

@media (min-width: 600px) {
    .bible-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-btn {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(106, 17, 203, 0.12);
    border-color: var(--primary-color);
}

.menu-btn:active {
    transform: scale(0.96);
}

.menu-btn .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.menu-btn div {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.menu-btn small {
    display: block;
    font-weight: 500;
    color: #718096;
    font-family: var(--font-tamil);
    font-size: 0.95rem;
}

/* Book Button Styling (used in OT/NT lists) */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 20px 0;
}

.book-btn {
    padding: 16px 12px;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-tamil);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #4a5568;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.book-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(106, 17, 203, 0.1);
}

.book-btn:active {
    transform: scale(0.96);
}

/* Chapter Selection Grid */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 15px 0;
}

.chapter-btn {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chapter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(106, 17, 203, 0.2);
    z-index: 1;
}

.chapter-btn:active {
    transform: scale(0.95);
}

/* Back Button Styling in Reader Flow */
.back-link-reader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: all 0.2s;
    font-weight: 600;
}

.back-link-reader:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateX(-3px);
}

/* Reader Toolbar Styling */
.reader-toolbar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 12px 20px;
    color: white;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.2);
}

.reader-toolbar button {
    color: white !important;
    transition: opacity 0.2s;
}

.reader-toolbar button:hover {
    opacity: 0.8;
}

.reader-toolbar select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    outline: none;
    cursor: pointer;

    option {
        color: black;
    }
}