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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    padding: 12px 24px;
    border: 2px solid #2563eb;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.hero-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Featured Books */
.featured-books {
    padding: 4rem 0;
}

.featured-books h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.book-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-image {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image img {
    max-width: 80%;
    max-height: 80%;
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.book-author {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.book-category {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.book-description {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.book-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.book-link:hover {
    text-decoration: underline;
}

.section-footer {
    text-align: center;
}

/* Categories Preview */
.categories-preview {
    padding: 4rem 0;
    background: #f8fafc;
}

.categories-preview h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.category-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.category-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.category-link:hover {
    text-decoration: underline;
}

/* Search and Filter */
.search-filter {
    padding: 2rem 0;
    background: #f8fafc;
}

.search-filter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
}

/* Book Detail */
.book-detail {
    padding: 4rem 0;
}

.book-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.book-detail-image {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.book-detail-image img {
    max-width: 100%;
    height: auto;
}

.book-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.book-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.book-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.book-meta-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.book-meta-value {
    color: #64748b;
}

.book-description-full {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #374151;
}

.book-takeaways {
    margin-bottom: 2rem;
}

.book-takeaways h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.book-takeaways ul {
    list-style: none;
    padding: 0;
}

.book-takeaways li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
}

.book-takeaways li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.book-external-links {
    margin-bottom: 2rem;
}

.book-external-links h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.external-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.disclaimer-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 1rem;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
}

.cookie-banner a {
    color: #3b82f6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e293b;
}

.page-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #1e293b;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #1e293b;
}

.page-content p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #374151;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .search-filter-form {
        flex-direction: column;
    }

    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-detail-image {
        order: -1;
    }

    .book-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .external-links {
        flex-direction: column;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .featured-books h2 {
        font-size: 2rem;
    }

    .categories-preview h2 {
        font-size: 2rem;
    }

    .book-detail h1 {
        font-size: 2rem;
    }
}