/* Base Styles */
:root {
    --primary-color: #6C5CE7;
    --primary-dark: #5247B2;
    --secondary-color: #FF9F43;
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --background-color: #FFFFFF;
    --light-background: #F8F9FA;
    --border-color: #EEEEEE;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #E67E22;
    color: white;
}

section {
    padding: 60px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
.site-header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Readers' Favorites Section */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.book-image {
    height: 200px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image img {
    max-height: 100%;
    object-fit: cover;
}

.rating {
    margin-bottom: 15px;
    display: flex;
}

.star {
    width: 20px;
    height: 20px;
    background-image: url('./assets/star-empty.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 2px;
}

.star.filled {
    background-image: url('./assets/star-filled.svg');
}

.star.half-filled {
    background-image: url('./assets/star-half.svg');
}

.view-details {
    display: inline-block;
    font-weight: 600;
}

.view-all {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 30px;
}

/* Book Categories Section */
.book-categories {
    background-color: var(--light-background);
}

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

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
}

.explore-collection {
    display: inline-block;
    font-weight: 600;
    margin-top: 10px;
}

/* Testimonials Section */
.testimonial-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* Authors Section */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.author-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 20px;
}

.author-title {
    color: var(--light-text);
    margin-bottom: 20px;
}

blockquote {
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
    font-style: italic;
}

.author-pick {
    margin-bottom: 20px;
}

.read-interview {
    font-weight: 600;
}

/* Featured Book Section */
.featured-book {
    background-color: var(--primary-color);
    color: white;
}

.featured-book-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
}

.featured-book-image {
    flex: 0 0 200px;
}

.featured-book-info {
    flex: 1;
}

.featured-book-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.notify-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: underline;
    padding: 10px 0;
}

/* Contact Section */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: #2D3436;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-quote p {
    font-style: italic;
    font-size: 1.2rem;
}

.footer-nav ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a, .footer-legal a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover, .footer-legal a:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    text-align: center;
}

.cookie-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cookie-btn {
    width: 100%;
}

.cookie-btn.accept {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn.reject {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Thank You Modal */
.thank-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    z-index: 1000;
    text-align: center;
    display: none;
}

.modal-logo {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thank-content p {
    margin-bottom: 25px;
}

html {
    scroll-behavior: smooth;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .featured-book-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-book-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-modal {
        left: 20px;
        right: 20px;
        max-width: none;
        width: auto;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-card img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }
}

/* Mobile menu when active */
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.main-nav.active ul {
    flex-direction: column;
    gap: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal.show, .thank-modal.show, .modal-overlay.show {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.main-section h1 {
    text-transform: uppercase;
    text-align: center;
}