* {
    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(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
}

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

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

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #007bff;
}

.mobile-menu-btn {
    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: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.page-header p {
    font-size: 18px;
    color: #666;
}

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

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

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

.book-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.book-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 20px;
}

.book-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

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

.book-card .category {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
}

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

.book-card .learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

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

.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

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

.category-card .book-count {
    font-weight: 600;
    color: #007bff;
}

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

.category-detail-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-detail-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

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

.category-books {
    margin-top: 20px;
}

.category-books h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.category-books ul {
    list-style: none;
}

.category-books li {
    margin-bottom: 10px;
}

.category-books a {
    color: #007bff;
    text-decoration: none;
}

.category-books a:hover {
    text-decoration: underline;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box input,
.category-filter select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    min-width: 200px;
}

/* Book Detail */
.book-detail {
    padding: 40px 0;
}

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

.book-detail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.book-info .author {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.book-info .category {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 20px;
}

.book-info .publication-year {
    color: #666;
    margin-bottom: 20px;
}

.book-description {
    margin-bottom: 40px;
}

.book-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.key-takeaways {
    margin-bottom: 40px;
}

.key-takeaways h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.key-takeaways ul {
    list-style-type: disc;
    padding-left: 20px;
}

.key-takeaways li {
    margin-bottom: 10px;
    color: #666;
}

.who-its-for {
    margin-bottom: 40px;
}

.who-its-for h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.purchase-links {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.purchase-links h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.purchase-links p {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

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

.purchase-link {
    display: block;
    background: #007bff;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
}

.purchase-link:hover {
    background: #0056b3;
}

/* Content Pages */
.about-content,
.contact-content,
.legal-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 20px;
    color: #666;
}

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

.content-wrapper li {
    margin-bottom: 10px;
    color: #666;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.submit-btn:hover {
    background: #0056b3;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 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 h3,
.footer-section h4 {
    margin-bottom: 20px;
}

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

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

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

.footer-section a:hover {
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-detail-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-box input,
    .category-filter select {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .book-card,
    .category-card {
        padding: 20px;
    }
}