@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --hero-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --bg-light: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
    padding-top: 76px;
}

/* Glassmorphism Navbar */
.custom-navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #38bdf8 !important;
}

/* Hero Banner Styling */
.hero-banner {
    background: var(--hero-gradient);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(49, 46, 129, 0.3);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.15);
    filter: blur(80px);
    border-radius: 50%;
}

/* ==========================================
   HERO SECTION 
   ========================================== */
.hero-section {
    background: var(--hero-gradient);
    border: none;
    box-shadow: var(--card-shadow);
}

.hero-section .badge {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Background overlay effect for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Modern Card Layout */
.book-card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.book-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #e2e8f0;
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-img {
    transform: scale(1.06);
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.book-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.book-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.book-desc {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: #4f46e5;
}

.btn-buy {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-buy:hover {
    opacity: 0.92;
}

/* Footer Styling */
.footer-modern {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}