/* Shared styles for index.html and books/*.html */
body { font-family: 'Inter', sans-serif; background-color: #0f172a; color: #e2e8f0; }

/* Emerald accent (not part of the Tailwind 2.2 CDN build) */
.bg-emerald { background-color: #10b981; }
.bg-emerald:hover { background-color: #059669; }
.text-emerald { color: #10b981; }
.hover\:text-emerald:hover { color: #10b981; }
.bg-emerald\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald\/20 { background-color: rgba(16, 185, 129, 0.2); }
.border-emerald\/30 { border-color: rgba(16, 185, 129, 0.3); }
.hover\:border-emerald\/30:hover { border-color: rgba(16, 185, 129, 0.3); }
.focus\:border-emerald:focus { border-color: #10b981; }
.group:hover .group-hover\:text-emerald { color: #10b981; }

/* Book covers */
.book-cover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.related-cover { aspect-ratio: 3 / 4; object-fit: cover; }
.cover-placeholder {
    aspect-ratio: 2 / 3;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-top: 4px solid var(--cat, #10b981);
}
.related-cover.cover-placeholder { aspect-ratio: 3 / 4; }
.archive-thumb {
    width: 40px; height: 56px; object-fit: cover; border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* First-page previews (used when no cover exists) */
.first-page { background: #fff; object-fit: contain; }
.archive-thumb.first-page { object-fit: cover; object-position: top; }

/* Bundle page */
.bundle-hero { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.bundle-thumb {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; transition: transform .15s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bundle-thumb.first-page { object-position: top; }
a:hover > .bundle-thumb { transform: translateY(-3px); }

/* ---------- testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tst { background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 22px; }
.tst-top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.tst-av { width: 46px; height: 46px; border-radius: 50%%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.tst-who { font-weight: 700; color: #e2e8f0; font-size: 15px; }
.tst-stars { color: #10b981; font-size: 13px; letter-spacing: 1px; }
.tst p { font-size: 14px; color: #94a3b8; line-height: 1.5; }
.tst-bar { height: 3px; background: #10b981; border-radius: 3px; margin-top: 14px; width: 48px; }
@media (max-width: 920px) { .tst-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tst-grid { grid-template-columns: 1fr; } }
