/* =========================================================
   BIBLIOTEKA.KG BOOKS INDEX PAGE
   ========================================================= */

.books-index-page {
    position: relative;
    padding: 24px 0 44px;
    color: var(--text);
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.books-index-breadcrumbs {
    padding: 13px 16px;
    color: var(--text);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
}

.books-index-breadcrumbs .breadcrumb {
    background: transparent;
}

.books-index-breadcrumbs .breadcrumb,
.books-index-breadcrumbs .breadcrumb-item,
.books-index-breadcrumbs .breadcrumb-item a {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

.books-index-breadcrumbs .breadcrumb-item.active {
    color: var(--text);
}

.books-index-breadcrumbs .breadcrumb-item a:hover,
.books-index-breadcrumbs .breadcrumb-item a:focus {
    color: var(--accent);
}

/* =========================================================
   HERO
   ========================================================= */

.books-index-hero-inner,
.books-index-list-head,
.books-index-seo-cta-inner {
    position: relative;
    overflow: hidden;
    color: var(--text);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
}

.books-index-hero-inner::before,
.books-index-list-head::before,
.books-index-seo-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(780px 280px at 5% -12%, rgba(103, 232, 249, .18), transparent 62%),
        radial-gradient(680px 260px at 106% 110%, rgba(var(--tint-rgb), .20), transparent 60%);
    pointer-events: none;
}

.books-index-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: center;
    padding: 42px;
}

.books-index-hero-content,
.books-index-hero-stats,
.books-index-list-head > *,
.books-index-seo-cta-inner > * {
    position: relative;
    z-index: 2;
}

.books-index-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: var(--bg);
    background: var(--accent);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.books-index-hero h1,
.books-index-seo-cta h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 850;
    line-height: 1.08;
}

.books-index-hero p,
.books-index-seo-cta p {
    max-width: 880px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.books-index-hero-actions,
.books-index-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.books-index-primary-btn,
.books-index-outline-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
}

.books-index-primary-btn {
    color: var(--bg) !important;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 24px rgba(103, 232, 249, .22);
}

.books-index-primary-btn:hover,
.books-index-primary-btn:focus {
    color: var(--accent) !important;
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(103, 232, 249, .42);
}

.books-index-outline-btn {
    color: var(--text) !important;
    background: transparent;
    border: 1px solid var(--border);
}

.books-index-outline-btn:hover,
.books-index-outline-btn:focus {
    color: var(--bg) !important;
    background: var(--text);
    border-color: var(--text);
}

.books-index-hero-stats {
    display: grid;
    gap: 12px;
}

.books-index-stat {
    padding: 18px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 1px solid rgba(255, 255, 255, .18);
}

.books-index-stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.books-index-stat span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

/* =========================================================
   LIST HEADER
   ========================================================= */

.books-index-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
}

.books-index-list-head h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 850;
    line-height: 1.12;
}

.books-index-list-head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.books-index-total {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 10px 14px;
    color: var(--bg);
    background: var(--accent);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

/* =========================================================
   GRID
   ========================================================= */

.books-index-grid > [class*="col"] {
    display: flex;
}

.books-index-grid .books-showcase-card {
    width: 100%;
}

/* =========================================================
   EMPTY / PAGER
   ========================================================= */

.books-index-empty {
    padding: 24px;
    color: var(--muted);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
}

.books-index-pager {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.books-index-pager .pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.books-index-pager .page-link {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 1px solid var(--border);
    font-weight: 800;
    box-shadow: none;
}

.books-index-pager .page-item.active .page-link {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.books-index-pager .page-link:hover,
.books-index-pager .page-link:focus {
    color: var(--accent);
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(103, 232, 249, .26);
}

/* =========================================================
   SIDEBAR / ADS
   ========================================================= */

.books-index-sidebar-sticky {
    position: sticky;
    top: 96px;
}

.books-index-sidebar .card,
.books-index-top-ad .card,
.books-index-bottom-ad .card {
    color: var(--text);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
}

/* =========================================================
   SEO CTA
   ========================================================= */

.books-index-seo-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
}

/* =========================================================
   Без закруглений
   ========================================================= */

.books-index-breadcrumbs,
.books-index-hero-inner,
.books-index-list-head,
.books-index-seo-cta-inner,
.books-index-kicker,
.books-index-primary-btn,
.books-index-outline-btn,
.books-index-stat,
.books-index-total,
.books-index-empty,
.books-index-pager .page-link,
.books-index-sidebar .card,
.books-index-top-ad .card,
.books-index-bottom-ad .card {
    border-radius: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199.98px) {
    .books-index-hero-inner {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .books-index-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .books-index-seo-cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .books-index-sidebar-sticky {
        position: static;
        top: auto;
    }

    .books-index-sidebar {
        margin-top: 28px;
    }

    .books-index-list-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .books-index-page {
        padding-top: 18px;
    }

    .books-index-hero-inner,
    .books-index-seo-cta-inner {
        padding: 24px 20px;
    }

    .books-index-list-head {
        padding: 22px 20px;
    }

    .books-index-hero h1,
    .books-index-seo-cta h2 {
        font-size: 30px;
    }

    .books-index-hero-stats {
        grid-template-columns: 1fr;
    }

    .books-index-hero-actions,
    .books-index-seo-actions {
        flex-direction: column;
    }

    .books-index-primary-btn,
    .books-index-outline-btn {
        width: 100%;
    }
}