/* Hero & Reader Split Layout */
.hero-reader-split {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-reader-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../bible_landing_hero.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.hero-column h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-column p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.play-store-btn {
    background: #000;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-store-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.reader-column {

    width: 100%;
}

.reader-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

.reader-controls {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0.75rem;
    border-bottom: 1px solid #edf2f7;
}


.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.reader-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 2px solid #edf2f7;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.reader-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(83, 75, 174, 0.1);
}

.verse-display {
    padding: 2rem;
    height: 500px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 1.15rem;
    color: #2d3748;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #f1f5f9;
}

.verse-display::-webkit-scrollbar {
    width: 6px;
}

.verse-display::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.verse-display::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 10px;
}


.chapter-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 800;
    position: sticky;
    top: -2rem; /* Adjusted for padding */
    background: var(--white);
    padding: 1rem 0;
    margin-top: -2rem;
    z-index: 5;
    border-bottom: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.title-center-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.title-right-side {
    display: flex;
    justify-content: flex-end;
}



.title-search-btn {
    background: #f1f5f9;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-search-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.title-select {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: #f1f5f9;
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.title-select:hover {
    border-color: var(--primary);
}

/* Search Overlay Styles */

.search-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}

.search-modal {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.search-results-container {
    max-height: 400px;
}



.verse {
    margin-bottom: 1.25rem;
    display: inline;
}

.verse-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    vertical-align: super;
    margin-right: 0.5rem;
    user-select: none;
}

.verse-text {
    font-weight: 400;
}

.reader-nav {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}


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

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 20;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(26, 35, 126, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 1024px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-column h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-reader-split {
        padding: 4rem 0;
    }
    
    .reader-controls {
        grid-template-columns: repeat(2, 1fr);
    }

    .verse-display {
        padding: 2rem;
        font-size: 1.1rem;
    }
}

.version-slider-container {
    padding: 2rem 0 4rem;
}

.versionSwiper {
    padding: 2rem 0 4rem !important;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary) !important;
    background: var(--white);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.version-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 300px;
}

.about-bibles {
    padding: 6rem 0;
    background: #f1f5f9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 800;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
