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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px;
    z-index: 1000;
    display: block;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-dismiss {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    width: 32px;
    height: 32px;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    min-height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2980b9;
}

.hero-image {
    flex: 1;
    text-align: center;
}

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

/* Books Grid */
.featured-books,
.categories-preview {
    padding: 80px 20px;
}

.featured-books h2,
.categories-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
}

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

.book-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.book-image {
    width: 80px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.book-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.book-author {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.book-category {
    background: #e8f4fd;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.book-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.category-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

/* Book Directory */
.book-directory {
    padding: 40px 20px;
}

.directory-header {
    text-align: center;
    margin-bottom: 40px;
}

.directory-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.search-filter-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.search-filter-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-input,
.form-select {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3498db;
}

.filter-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    height: fit-content;
}

/* Book Detail */
.book-detail {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.book-detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.book-detail-image {
    width: 200px;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.book-detail-info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.book-detail-author {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.book-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.book-detail-category {
    background: #e8f4fd;
    color: #3498db;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.book-detail-year {
    color: #666;
    font-size: 0.9rem;
}

.book-detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.book-detail-section {
    margin-bottom: 40px;
}

.book-detail-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.book-detail-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

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

.key-takeaways li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.key-takeaways li:before {
    content: "•";
    color: #3498db;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 5px;
}

.external-links {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.external-links h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.external-link {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s;
}

.external-link:hover {
    background: #e8f4fd;
}

.disclaimer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    color: #856404;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    text-align: center;
    color: #bdc3c7;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.content-page h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 40px 0 20px;
}

.content-page h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 30px 0 15px;
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.content-page ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 10px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .book-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .book-detail-image {
        margin: 0 auto;
    }

    .search-filter-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .external-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .book-card {
        padding: 20px;
    }

    .contact-form,
    .contact-info {
        padding: 25px;
    }
}