* {
    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;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-dismiss {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cookie-dismiss:hover {
    background: #357abd;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e1e5e9;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

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

.nav {
    display: flex;
    gap: 30px;
}

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

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #4a90e2;
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Sections */
.featured-books,
.categories-preview {
    padding: 80px 0;
}

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

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

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

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

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

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

.book-content {
    padding: 25px;
}

.book-content h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.book-content h3 a {
    text-decoration: none;
    color: #333;
}

.book-content h3 a:hover {
    color: #4a90e2;
}

.book-author {
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

.book-category {
    color: #4a90e2;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.book-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

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

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

.category-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    text-align: center;
}

.category-card:hover {
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74,144,226,0.1);
}

.category-card h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.category-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Search and Filter */
.search-filter-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.search-filter-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

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

/* Book Details */
.book-detail {
    padding: 60px 0;
}

.book-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
}

.book-detail-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.book-detail-author {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.book-detail-category {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.book-detail-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.book-takeaways,
.book-audience {
    margin-bottom: 30px;
}

.book-takeaways h3,
.book-audience h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.book-takeaways li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

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

.book-links {
    margin-top: 40px;
}

.book-links h3 {
    margin-bottom: 20px;
    color: #333;
}

.external-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.external-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.external-link:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.disclaimer-note {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.disclaimer-note p {
    margin: 0;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #4a90e2;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .search-filter-container {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .external-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .featured-books,
    .categories-preview {
        padding: 40px 0;
    }
    
    .book-content {
        padding: 20px;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
}