/* EBM Publisher — Public Site ("Editorial Shelf") */

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    background: rgba(255,255,255,.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.02em;
    color: var(--text) !important;
}
.navbar-brand .brand-accent { color: var(--primary); }
.navbar-brand img { height: 34px; width: auto; }

.navbar .nav-link {
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-muted) !important;
    padding: .55rem 1rem !important;
    position: relative;
    transition: color var(--transition);
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 1rem; right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
}
.navbar .nav-link:hover { color: var(--text) !important; }
.navbar .nav-link.active { color: var(--primary) !important; font-weight: 600; }
.navbar .nav-link.active::after,
.navbar .nav-link:hover::after { transform: scaleX(1); }

/* ── Hero (split, book-collage) ─────────────────────────── */
.hero-split {
    background: var(--bg-soft);
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    padding: .3rem 1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-split h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-split .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* cover collage */
.hero-covers {
    position: relative;
    height: 380px;
}
.hero-covers::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.hero-cover-item {
    position: absolute;
    width: 190px;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}
.hero-cover-item:hover { transform: translateY(-6px) rotate(0deg) !important; }
.hero-cover-item.c1 { left: 4%; top: 8%; transform: rotate(-9deg); z-index: 1; }
.hero-cover-item.c2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.hero-cover-item.c3 { right: 2%; top: 12%; transform: rotate(9deg); z-index: 2; }

/* ── Stat strip ─────────────────────────────────────────── */
.stat-strip {
    background: #0F172A;
    border-radius: var(--radius-lg);
    padding: 2.25rem 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
}
.stat-strip .stat-item {
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}
.stat-strip .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.12); }
.stat-strip .stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: #fff;
}
.stat-strip .stat-number .accent { color: var(--secondary); }
.stat-strip .stat-label {
    color: #94A3B8;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
    margin-top: .5rem;
}

/* ── Book card ──────────────────────────────────────────── */
.book-card {
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: transparent !important;
}
.book-card:hover .book-cover-img { transform: scale(1.04); }

.book-cover-wrap {
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}
.book-cover-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.book-card .card-body { padding: 1rem 1.1rem 1.1rem; position: relative; }

.book-category {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .3rem;
}

.book-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    margin-bottom: .6rem;
    min-height: 2.5em;
}

.book-meta {
    font-size: .76rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.book-price-pill {
    display: inline-block;
    background: var(--secondary);
    color: #1a1a1a;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: -.01em;
    padding: .3rem .7rem;
    border-radius: 100px;
}

/* ── Katalog filter sidebar / offcanvas ─────────────────── */
.filter-sidebar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}
.filter-sidebar .filter-heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    margin: 1.25rem 0 .6rem;
}
.filter-sidebar .filter-heading:first-child { margin-top: 0; }
.filter-sidebar .form-check { margin-bottom: .4rem; }
.filter-sidebar .form-check-label { font-size: .88rem; color: var(--text); }
.filter-sidebar .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.filter-sidebar .offcanvas-header { display: none; }

@media (max-width: 991.98px) {
    .offcanvas.filter-sidebar { border-radius: 0; }
    .filter-sidebar .offcanvas-header {
        display: flex;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }
}

/* ── Detail page ────────────────────────────────────────── */
.detail-cover {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.detail-cover-wrap { position: sticky; top: 90px; }

.spec-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.1rem;
    font-size: .88rem;
    border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: var(--bg-soft); }
.spec-row .spec-label { color: var(--text-muted); font-weight: 600; }
.spec-row .spec-value { color: var(--text); font-weight: 600; text-align: right; }

.price-box {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.price-box .price-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.price-box .price-value { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -.04em; }
.price-box-icon { font-size: 2.5rem; color: var(--primary); opacity: .15; }

.detail-title { line-height: 1.2; letter-spacing: -.02em; }
.detail-author { font-size: 1.05rem; }
.detail-author i { color: var(--primary); }
.prose-text { line-height: 1.8; }
.wa-buy-btn { border-radius: 12px; max-width: 380px; display: flex; align-items: center; justify-content: center; gap: .5rem; }

.section-prose h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.section-prose h4 i { color: var(--primary); }

.kw-badge {
    display: inline-block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .75rem;
    padding: .25rem .7rem;
    border-radius: 100px;
    margin: .2rem .15rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.kw-badge:hover { background: var(--primary-light); color: var(--primary); border-color: #FECACA; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination { gap: .2rem; }
.page-link {
    border-radius: var(--radius-sm) !important;
    color: var(--text);
    border-color: var(--border);
    font-weight: 500;
    font-size: .9rem;
}
.page-link:hover { color: var(--primary); background: var(--primary-light); border-color: #FECACA; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 8px rgba(185,28,28,.35); }
.page-item.disabled .page-link { opacity: .4; }

/* ── Empty state ────────────────────────────────────────── */
.empty-state { padding: 4rem 2rem; text-align: center; }
.empty-state .empty-icon {
    width: 80px; height: 80px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: #CBD5E1;
    border: 2px dashed var(--border);
}

/* ── Page header ────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .25rem;
}
.page-header .sub { color: var(--text-muted); font-size: 1rem; }

/* ── Tentang: vertical nav-pills ────────────────────────── */
.about-tabs .nav-link {
    text-align: left;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: .92rem;
    padding: .75rem 1rem;
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.about-tabs .nav-link.active { background: var(--primary); color: #fff; }
.about-tabs .nav-link:not(.active):hover { background: var(--bg-soft); }
.about-pane {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    min-height: 260px;
}

/* ── Kontak: icon tiles ─────────────────────────────────── */
.contact-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .9rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.contact-tile:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.contact-tile .tile-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-tile .tile-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .15rem; }
.contact-tile .tile-value { font-weight: 600; color: var(--text); font-size: .92rem; }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-height: 340px; }
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-placeholder {
    width: 100%; height: 100%; min-height: 340px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-soft); color: var(--text-muted); gap: .5rem;
}

/* ── About CTA (home) ───────────────────────────────────── */
.about-cta { background: linear-gradient(135deg, #FEF2F2 0%, #fff 100%); border-top: 1px solid var(--primary-light); }
.about-cta-text { font-size: 1.05rem; line-height: 1.75; max-width: 620px; }
.about-cta-icon {
    width: 160px; height: 160px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: auto;
    box-shadow: 0 0 0 20px rgba(185,28,28,.05);
    font-size: 4rem;
    color: var(--primary);
}

/* ── Footer ─────────────────────────────────────────────── */
footer { background: #0F172A; color: #94A3B8; padding: 4rem 0 2rem; margin-top: 5rem; }
footer .footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -.02em; margin-bottom: .75rem; display: block; }
footer .footer-brand span { color: var(--primary); }
footer .footer-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #64748B; margin-bottom: 1.25rem; }
footer a { color: #94A3B8; text-decoration: none; transition: color var(--transition); }
footer a:hover { color: #fff; }
footer .footer-link { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; margin-bottom: .65rem; }
footer .footer-link i { color: var(--primary); opacity: .8; flex-shrink: 0; margin-top: 2px; }
footer .footer-divider { border-color: #1E293B; margin: 2.5rem 0 1.5rem; }
footer .footer-copy { color: #475569; font-size: .8rem; text-align: center; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-covers { height: 280px; margin-top: 2.5rem; }
    .hero-cover-item { width: 140px; }
    .stat-strip { margin-top: 2rem; }
}

@media (max-width: 768px) {
    .hero-split { padding: 3.5rem 0 3rem; }
    .stat-strip .stat-number { font-size: 1.6rem; }
    .stat-strip .stat-item { padding: 0 .4rem; }
    .price-box { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .page-header { padding: 1.75rem 0; }
}
