/*
 * Tema halaman publik berbasis Bootstrap (toko, form, event, dst) -- menyamakan
 * halaman-halaman itu dgn beranda: latar kertas, huruf Plus Jakarta
 * Sans + Fraunces utk judul, tombol tinta. Aktif lewat <body class="site-theme">.
 */
body.site-theme {
    --primary-color: #be123c;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-bg: #f7f4ee;
    --bs-body-color: #1a1714;
    --bs-secondary-color: #6b645c;
    --bs-border-color: #e4ddd2;
    font-family: var(--bs-body-font-family);
    background: #f7f4ee;
    color: #1a1714;
}

.site-theme h1, .site-theme .h1, .site-theme h2, .site-theme .h2,
.site-theme h3, .site-theme .h3, .site-theme .brand-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #1a1714;
}

.site-theme h5.fw-bold { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.35rem; }
.site-theme .text-muted { color: #6b645c !important; }
.site-theme .text-danger { color: #be123c !important; }
.site-theme .bg-light { background-color: #f7f4ee !important; }
.site-theme .card, .site-theme .bg-white { border-color: #e4ddd2; }

/* Hero toko: kertas, rata kiri, bukan banner merah. */
.site-theme .toko-hero {
    background: transparent;
    color: #1a1714;
    text-align: left !important;
    padding: 3rem 0 1rem;
}
.site-theme .toko-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.05; margin-bottom: .75rem !important; }
.site-theme .toko-hero p { color: #6b645c; opacity: 1 !important; font-size: 1.05rem; max-width: 40rem; }

/* Tombol */
.site-theme .btn-primary-custom {
    background-color: #1a1714;
    border-color: #1a1714;
    color: #f7f4ee;
}
.site-theme .btn-primary-custom:hover, .site-theme .btn-primary-custom:focus {
    background-color: #be123c;
    border-color: #be123c;
    color: #fff;
}
.site-theme .btn-outline-dark { border-color: #1a1714; color: #1a1714; }
.site-theme .btn-outline-dark:hover { background: #1a1714; color: #f7f4ee; }
.site-theme .btn-outline-secondary { border-color: #e4ddd2; color: #1a1714; background: #fff; }
.site-theme .btn-outline-secondary:hover { border-color: #1a1714; background: #fff; color: #1a1714; }

/* Form */
.site-theme .form-control, .site-theme .form-select { border-color: #e4ddd2; background-color: #fff; }
.site-theme .form-control:focus, .site-theme .form-select:focus { border-color: #1a1714; box-shadow: 0 0 0 .2rem rgba(26, 23, 20, .08); }

/* Kartu buku: sampul seperti buku fisik, tanpa kotak putih berbayang. */
.site-theme .book-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.site-theme .book-card:hover { transform: none; box-shadow: none; }
.site-theme .book-card .book-cover,
.site-theme .book-card .book-cover-placeholder {
    border-radius: 3px 6px 6px 3px;
    box-shadow: 0 1px 2px rgba(26, 23, 20, .18), 0 12px 24px -12px rgba(26, 23, 20, .45);
    transition: transform .3s ease;
}
.site-theme .book-card:hover .book-cover,
.site-theme .book-card:hover .book-cover-placeholder { transform: translateY(-6px); }
.site-theme .book-cover-placeholder { background: #e4ddd2; color: #6b645c; }
.site-theme .book-card > .p-3 { padding: .85rem 0 0 !important; }
.site-theme .book-card .text-dark { color: #1a1714 !important; }
.site-theme .price-pill { background: transparent; color: #1a1714; padding: 0; font-size: .95rem; border-radius: 0; }
.site-theme .wishlist-btn { color: #be123c; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }

/* Chip filter */
.site-theme .chip-filter.btn-outline-secondary, .site-theme .chip-filter.btn-outline-dark { background: #fff; border-color: #e4ddd2; color: #1a1714; }
.site-theme .chip-filter.btn-dark, .site-theme .chip-filter.active { background: #1a1714; border-color: #1a1714; color: #f7f4ee; }

/* Fade tepi baris geser (NovelCardHelper::renderHorizontalCardRow) mengikuti warna kertas. */
.site-theme [style*="rgba(248,249,250"] {
    background: linear-gradient(to right, rgba(247, 244, 238, 0), rgba(247, 244, 238, .95)) !important;
}

/* Lebar & tepi konten sejajar dgn header/footer bersama (.sc-wrap). */
.site-theme .container { max-width: 80rem; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .site-theme .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .site-theme .container { padding-left: 2rem; padding-right: 2rem; } }

/* Sampul tipografis besar di halaman detail buku. */
.site-theme .cover-placeholder.sc-type-cover { padding: 2rem 1.75rem 1.75rem 2.25rem; border-radius: 4px 8px 8px 4px; box-shadow: 0 2px 4px rgba(26, 23, 20, .2), 0 24px 40px -18px rgba(26, 23, 20, .5); }
.site-theme .cover-placeholder .sc-type-cover-title { font-size: 2rem; -webkit-line-clamp: 6; }
.site-theme .cover-placeholder .sc-type-cover-author { font-size: .75rem; }

/* Judul sampul tipografis: tanpa garis bawah link & tidak tertimpa tombol wishlist. */
.site-theme .book-card a, .site-theme .book-card a:hover { text-decoration: none; }
.site-theme .book-card .sc-type-cover { padding-top: 3.1rem; }
@media (max-width: 575.98px) { .site-theme .book-card .sc-type-cover-title { font-size: .92rem; } }

/* Buku terkait di halaman detail -- gaya sama dgn kartu buku toko. */
.site-theme .related-book-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.site-theme .related-book-card:hover { transform: none; box-shadow: none; }
.site-theme .related-book-card a, .site-theme .related-book-card a:hover { text-decoration: none; }
.site-theme .related-book-cover, .site-theme .related-book-cover-placeholder {
    border-radius: 3px 6px 6px 3px;
    box-shadow: 0 1px 2px rgba(26, 23, 20, .18), 0 12px 24px -12px rgba(26, 23, 20, .45);
    transition: transform .3s ease;
}
.site-theme .related-book-card:hover .related-book-cover,
.site-theme .related-book-card:hover .related-book-cover-placeholder { transform: translateY(-6px); }
.site-theme .related-book-card > .p-2, .site-theme .related-book-card > .p-3 { padding: .85rem 0 0 !important; }
.site-theme .related-price-pill { background: transparent; color: #1a1714; padding: 0; font-size: .95rem; border-radius: 0; }

/* Judul halaman & kartu form (style.css lama: biru/merah, garis tebal, melompat saat hover). */
.site-theme .brand-title { color: #1a1714; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.005em; }
.site-theme .custom-card { background: #fff; border: 1px solid #e4ddd2; border-top: 1px solid #e4ddd2; border-radius: 14px; box-shadow: 0 1px 2px rgba(26, 23, 20, .04); }
.site-theme .custom-card:hover { transform: none !important; box-shadow: 0 1px 2px rgba(26, 23, 20, .04) !important; }
.site-theme .card { background-color: #fff; }
.site-theme .card-title-custom { color: #1a1714; font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
body.site-theme.bg-light { background-color: #f7f4ee !important; }

/* Ikon dekoratif di depan judul bagian disembunyikan -- judul serif sudah cukup. */
.site-theme h5.fw-bold > i.bi:first-child { display: none; }

/* Blurb buku: paragraf rapi dgn jarak seragam. */
.site-theme .book-blurb { font-size: 1.02rem; line-height: 1.75; max-width: 42rem; }
.site-theme .book-blurb p { margin: 0 0 .9em; }
.site-theme .book-blurb p:last-child { margin-bottom: 0; }
