/* ========================================
   HADITH PAGE WRAPPER
   ======================================== */
.hadith-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg, #f0f2f0);
    color: #1f2937;
}

/* Stats bar */
.hadith-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px;
    margin: 0 auto 0;
    max-width: 520px;
    background: var(--emerald-50, #ecfdf5);
    border: 1px solid color-mix(in srgb, var(--emerald, #059669) 30%, transparent);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--emerald-dark, #065f46);
}
.hadith-stats-bar b { font-weight: 700; }
.hadith-stats-dot { color: var(--emerald-light, #6ee7b7); }

/* ── Кнопка «Наверх» (FAB) ── */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--emerald, #059669);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--emerald) 35%, transparent);
    /* Скрыта по умолчанию */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--emerald) 50%, transparent);
    background: var(--emerald-dark, #047857);
}
.scroll-top-btn:active { transform: translateY(1px); }
.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Main layout */
.hadith-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}
