@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --brand-primary: #FF7A00;
    --brand-primary-light: #FFF3E6;
    --brand-secondary: #FF9D42;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-500: #64748B;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;
    
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-success: #10B981;
    
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 25px rgba(0,0,0,0.06);
    
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --space-12: 12px;
    --space-16: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 122, 0, 0.3);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid #E2E8F0;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-dark), #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 48px;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    color: var(--text-light);
}

/* Basic Form */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Stretched Link overlay for clickable cards */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Ensure interactive elements inside clickable cards stay above the stretched link */
.fav-btn, 
.product-card form, 
.card form, 
.card .btn-primary,
.product-card .btn-primary,
.product-card form button,
.card form button {
    position: relative;
    z-index: 10;
}

/* Hero Section with Glassmorphism */
.hero-section {
    position: relative;
    padding: 50px 0;
    background: #F8FAFC;
    overflow: hidden;
}

/* Swiper Slider Styling matching mockup */
.mainBannerSwiper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.swiper-button-prev, .swiper-button-next {
    background: white;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--brand-primary) !important;
    transition: 0.2s;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    transform: scale(1.05);
    background: var(--brand-primary-light);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 16px !important;
    font-weight: 900;
}
.swiper-pagination-bullet {
    background: var(--neutral-300) !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Premium Book Card */
.premium-card {
    background: #FFFFFF;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-16);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}
.premium-card .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--neutral-100);
    margin-bottom: var(--space-12);
}
.premium-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.premium-card:hover img {
    transform: scale(1.05);
}
.ai-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: linear-gradient(135deg, var(--color-success), #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16,185,129,0.25);
    z-index: 2;
}
.discount-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--color-error-light);
    color: var(--color-error);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}
.card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--neutral-800);
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}
.card-author {
    font-size: 12px;
    color: var(--neutral-500);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}
.card-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--neutral-900);
    font-family: 'Inter', sans-serif;
}
.card-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.premium-card:hover .card-add-btn {
    background: var(--brand-primary);
    color: white;
}
.card-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.card-fav-btn:hover {
    transform: scale(1.1);
    color: var(--color-error) !important;
}

/* Section Titles */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1.5px solid var(--neutral-100);
    padding-bottom: 15px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--neutral-900);
    margin: 0;
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
}
.section-see-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.section-see-all:hover {
    gap: 8px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
@media (min-width: 768px) {
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 25px;
    }
}
@media (min-width: 1024px) {
    .book-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

