/* ============================================================
   Book Superstore — Main Stylesheet
   Using Bootstrap 5 as base
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bs-primary:       #4361ee;
    --bs-primary-rgb:   67, 97, 238;
    --bs-font-sans-serif: 'Inter', sans-serif;
    --font-serif:       'Lora', Georgia, serif;

    --color-bg:         #fafaf9;
    --color-card:       #ffffff;
    --color-border:     #ebebeb;
    --color-muted:      #888;
}

body {
    background-color: var(--color-bg);
    color: #1a1a1a;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 0;
}

.hero-section h1 {
    font-family: var(--font-serif);
}

/* ── Primary soft background ── */
.bg-primary-soft {
    background-color: #eef1ff;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* ── Feature icons ── */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Book cards ── */
.book-card {
    transition: transform .15s ease, box-shadow .15s ease;
    background: var(--color-card);
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    background: #f0f0f0;
}

/* ── Category cards ── */
.card-category {
    transition: transform .15s ease, box-shadow .15s ease;
    background: white;
    color: #333;
}

.card-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    color: var(--bs-primary);
}

/* ── Quiz ── */
.quiz-option {
    cursor: pointer;
    background: white;
    transition: all .15s ease;
    border-color: var(--color-border) !important;
    user-select: none;
}

.quiz-option:hover {
    border-color: var(--bs-primary) !important;
    background: #eef1ff;
}

.quiz-option:has(input:checked) {
    border-color: var(--bs-primary) !important;
    background: #eef1ff;
    box-shadow: 0 0 0 2px rgba(67,97,238,0.2);
}

.cursor-pointer { cursor: pointer; }

/* ── Recommendation cards ── */
.recommendation-card .object-cover {
    object-fit: cover;
}

/* ── Badges & pills ── */
.w-fit { width: fit-content; }

/* ── Navbar ── */
.navbar-brand {
    font-family: var(--font-serif);
}

/* ── Buttons ── */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #2f4ed8;
    border-color: #2f4ed8;
}

.btn-warning {
    background-color: #f5a623;
    border-color: #f5a623;
    color: #fff;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e09318;
    border-color: #e09318;
    color: #fff;
}

/* ── Footer ── */
footer a:hover {
    color: white !important;
}

/* ── Utility ── */
.lh-tight { line-height: 1.2; }
.py-md-6  { padding-top: 4rem; padding-bottom: 4rem; }

/* ── Responsive ── */
@media (max-width: 576px) {
    .hero-section { padding: 48px 0; }
    .hero-section h1 { font-size: 2rem; }
}
