/* Base Styles */
:root {
    --primary-color: #4ade80;
    --primary-hover: #22c55e;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-light: #e5e7eb;
    --green-light: rgba(74, 222, 128, 0.1);
    --orange-light: rgba(251, 146, 60, 0.1);
    --purple-light: rgba(168, 85, 247, 0.1);
    --blue-light: rgba(59, 130, 246, 0.1);
    --red-light: rgba(239, 68, 68, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-light);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

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

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

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

a:hover .arrow {
    transform: translateX(5px);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions button {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
}

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

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Trending Section */
.trending {
    padding: 4rem 0;
}

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

.book-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-image {
    height: 200px;
    overflow: hidden;
}

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

.book-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.book-card p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Insights Section */
.insights {
    padding: 4rem 0;
}

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

.insight-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

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

.insight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.green-border::before {
    background-color: var(--primary-color);
}

.orange-border::before {
    background-color: #fb923c;
}

.purple-border::before {
    background-color: #a855f7;
}

.blue-border::before {
    background-color: #3b82f6;
}

.red-border::before {
    background-color: #ef4444;
}

.insight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--green-light);
}

.green-border .insight-icon {
    background-color: var(--green-light);
}

.orange-border .insight-icon {
    background-color: var(--orange-light);
}

.purple-border .insight-icon {
    background-color: var(--purple-light);
}

.blue-border .insight-icon {
    background-color: var(--blue-light);
}

.red-border .insight-icon {
    background-color: var(--red-light);
}

.insight-card h3 {
    font-size: 1.2rem;
}

.insight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.insight-link {
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-link:hover {
    color: var(--primary-color);
}

/* Reader Highlights Section */
.reader-highlights {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.section-subtitle {
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.reader-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    background-color: var(--bg-light);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

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

.filter-btn:hover:not(.active) {
    background-color: var(--border-light);
}

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

.reader-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reader-info {
    margin-bottom: 0.5rem;
}

.reader-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.reader-quote {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.reader-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.btn-submit {
    width: 100%;
    background-color: #f97316;
    color: white;
}

.btn-submit:hover {
    background-color: #ea580c;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column p {
    color: var(--text-lighter);
    line-height: 1.6;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-lighter);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-popup-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-icon {
    width: 40px;
    height: 40px;
}

.cookie-popup h3 {
    font-size: 1.25rem;
}

.cookie-popup p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-popup a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-accept {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
    padding: 0.75rem;
    font-size: 0.8rem;
}

.btn-reject {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    flex: 1;
    padding: 0.75rem;
    font-size: 0.8rem;
}

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    display: none;
    text-align: center;
}

.thank-you-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.thank-you-popup h3 {
    font-size: 1.25rem;
}

.thank-you-popup p {
    margin-bottom: 1rem;
}

.btn-return {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .main-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .book-grid {
        grid-template-columns: 1fr;
    }

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

    .insight-card:last-child {
        grid-column: auto;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .cookie-popup {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }

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

    .main-nav.show {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        width: 100%;
        z-index: 200;
    }
}

html {
    scroll-behavior: smooth;
}

.main-section {
    padding: 4rem 0;
}

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