/* Base Styles */
:root {
    --primary-color: #4169e1;
    --primary-dark: #3150b2;
    --secondary-color: #f0f0fa;
    --accent-color: #ffd700;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --light-gray: #f5f5f5;
    --gray: #ddd;
    --dark-gray: #555;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --yellow-card: #fff9e0;
    --green-card: #e6f7ec;
    --blue-card: #e6f3ff;
    --purple-card: #f0e6ff;
    --orange-card: #fff0e0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--gray);
}

.btn-text {
    background: none;
    color: var(--text-color);
    padding: 12px 0;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

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

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

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Testimonial Banner */
.testimonial-banner {
    padding: 3rem 0;
}

.testimonial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.testimonial-quote {
    background-color: var(--yellow-card);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.testimonial-quote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-quote cite {
    font-style: normal;
    font-weight: 600;
}

.why-bentoverse {
    background-color: var(--blue-card);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.why-bentoverse h2 {
    margin-bottom: 1rem;
}

/* Monthly Favorites Section */
.monthly-favorites {
    padding: 4rem 0;
}

.book-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.book-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.book-image {
    height: 200px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card h3 {
    font-size: 1.25rem;
}

.book-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.rating {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Theme Selection */
.theme-selection {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.theme-selection .section-title {
    color: var(--white);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.theme-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.theme-card.wide {
    grid-column: span 1.5;
}

.theme-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.theme-card h3 {
    font-size: 1.25rem;
}

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

/* Reader Testimonials */
.reader-testimonials {
    padding: 4rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--yellow-card);
}

.testimonial-card:nth-child(2) {
    background-color: var(--green-card);
}

.testimonial-card:nth-child(3) {
    background-color: var(--blue-card);
}

.testimonial-card:nth-child(4) {
    background-color: var(--purple-card);
}

.testimonial-card:nth-child(5) {
    background-color: var(--orange-card);
}

.testimonial-card blockquote {
    margin-bottom: 1rem;
}

.testimonial-source {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Featured Book */
.featured-book {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.featured-book .section-title {
    color: var(--white);
}

.featured-book-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 2rem;
}

.book-cover {
    height: 300px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.book-details p {
    margin-bottom: 1.5rem;
}

.editors-choice {
    margin-left: 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
}

.subscribe-link {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

/* Experts Section */
.experts {
    padding: 4rem 0;
}

.expert-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expert-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.expert-card h3 {
    margin-bottom: 1rem;
}

.expert-card blockquote {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.book-recommendations h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.book-recommendations ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.book-icon {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #0a1033;
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo a {
    color: var(--white);
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-legal a {
    color: var(--white);
    opacity: 0.8;
}

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

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 350px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    padding: 1.5rem;
}

.cookie-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.cookie-content a {
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Submission Popup */
.form-submission-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    display: none;
}

.popup-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.popup-content p {
    margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content,
    .testimonial-content,
    .book-cards,
    .expert-cards {
        grid-template-columns: 1fr 1fr;
    }

    .theme-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-book-card {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content,
    .testimonial-content,
    .book-cards,
    .theme-grid,
    .testimonial-grid,
    .expert-cards,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .theme-card.wide {
        grid-column: span 1;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .testimonial-quote p {
        font-size: 1rem;
    }

    .footer-nav ul,
    .footer-legal ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--secondary-color);
        width: 100%;
        display: none;
        padding: 1rem;
    }
}

/* Star Rating Styles */
.star {
    color: var(--accent-color);
}

.star.half {
    position: relative;
    display: inline-block;
}

.star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--accent-color);
}

.star.half:after {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gray);
}

/* Active States */
.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

.main-section {
    padding: 80px 0;
}

.main-section h1 {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}