/* Bosh sahifa — index.php */

@font-face {
    font-family: 'Uthmani';
    src: url('https://fonts.quran.com/p1-v1.woff2');
}

:root {
    --main-teal: #00695c;
    --light-teal: #e0f2f1;
    --gold: #ffd700;
    --bg-gray: #f8fcfc;
}

body {
    background-color: var(--bg-gray);
    font-family: 'Noto Sans', sans-serif;
    color: #333;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Header — pastki burchak radiusi yo‘q */
.header-bg {
    position: relative;
    background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #00897b 100%);
    color: white;
    padding: 52px 0 56px;
    box-shadow: 0 12px 40px rgba(0, 77, 64, 0.25);
    margin-bottom: 40px;
    overflow: hidden;
}

.header-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 15% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 80%, rgba(255, 215, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.reciter-open-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.reciter-open-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.theme-toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.header-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.header-book-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffe082;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.header-title {
    letter-spacing: 0.02em;
}

.header-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

/* Qori modal */
.reciter-modal-title-ico {
    color: var(--main-teal);
}

.reciter-modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 77, 64, 0.2);
    overflow: hidden;
}

.reciter-modal-hint {
    line-height: 1.45;
}

.reciter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reciter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid #e8eeed;
    border-radius: 14px;
    background: #fafcfb;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.reciter-item:hover {
    background: var(--light-teal);
    border-color: rgba(0, 105, 92, 0.35);
}

.reciter-item.active {
    background: linear-gradient(135deg, #e0f2f1 0%, #fff 100%);
    border-color: var(--main-teal);
    box-shadow: 0 4px 16px rgba(0, 105, 92, 0.12);
}

.reciter-item-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: #e2e8f0;
    color: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.reciter-item.active .reciter-item-check {
    background: var(--main-teal);
    color: #fff;
}

.reciter-item-name {
    flex: 1;
    min-width: 0;
}

/* Navigatsiya */
.nav-pills .nav-link {
    color: var(--main-teal);
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 35px;
    margin: 0 8px;
    background: white;
    border: 1px solid #dee2e6;
    transition: 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--main-teal) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(0, 105, 92, 0.25);
}

/* Sura kartalari */
.quran-card {
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.quran-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 105, 92, 0.1);
    border-color: var(--main-teal);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--light-teal);
    color: var(--main-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 18px;
    flex-shrink: 0;
}

.sura-info-left {
    flex-grow: 1;
    min-width: 0;
}

.sura-info-left h5 {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-city {
    font-size: 11px;
    background: #fff8e1;
    color: #b8860b;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 600;
}

.verses-count {
    font-size: 12px;
    color: #777;
    margin-left: 8px;
}

.arabic-name-right {
    font-family: 'Uthmani', serif;
    font-size: 1.7rem;
    color: var(--main-teal);
    direction: rtl;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 110px;
    margin-left: 10px;
}

/* Pora kartalari */
.juz-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
    text-decoration: none;
    color: var(--main-teal);
    font-weight: 700;
    display: block;
}

.juz-card:hover {
    background: var(--main-teal);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 105, 92, 0.2);
    transform: scale(1.05);
}

.juz-card i {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.juz-card .juz-meta {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5a7a76;
    line-height: 1.35;
    margin-top: 8px;
    display: block;
    min-height: 2.2em;
}

.juz-card:hover .juz-meta {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .header-bg {
        padding: 44px 0 40px;
    }

    .reciter-open-btn {
        top: 0.65rem;
        left: 0.65rem;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .theme-toggle-btn {
        top: 0.65rem;
        right: 0.65rem;
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .header-book-icon {
        width: 64px;
        height: 64px;
        font-size: 1.65rem;
    }

    .nav-pills .nav-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    .quran-card {
        padding: 15px;
    }

    .arabic-name-right {
        font-size: 1.4rem;
        min-width: 80px;
    }

    .icon-box {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-right: 12px;
    }
}
