* {
    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;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

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

.cookie-banner button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-banner button:hover {
    background: #45a049;
}

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

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

.logo {
    display: flex;
    align-items: center;
}

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

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

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

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

.nav a:hover,
.nav a.active {
    color: #4CAF50;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

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

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

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

.cta-button:hover {
    background: #45a049;
}

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

/* Featured Books */
.featured-books {
    padding: 80px 0;
}

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

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

.book-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 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 10px 30px rgba(0,0,0,0.15);
}

.book-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

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

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

.book-card .category {
    display: inline-block;
    background: #e8f5e8;
    color: #4CAF50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.book-card p {
    color: #666;
    line-height: 1.5;
}

/* Categories Preview */
.categories-preview {
    background: #f8f9fa;
    padding: 80px 0;
}

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

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

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px 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 a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.category-card a:hover {
    color: #45a049;
}

/* Books Directory */
.books-directory {
    padding: 40px 0 80px;
}

.books-header {
    margin-bottom: 40px;
}

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

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

.search-box {
    flex: 1;
    min-width: 250px;
}

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

.search-box input:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.filter-select select:focus {
    outline: none;
    border-color: #4CAF50;
}

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

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

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

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

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

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

.book-detail-info .category {
    background: #e8f5e8;
    color: #4CAF50;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.book-detail-info .year {
    background: #f0f0f0;
    color: #666;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.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: none;
    padding-left: 0;
}

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

.key-takeaways li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

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

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

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

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

.external-links .disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.link-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.link-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

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

.link-button.amazon {
    background: #ff9900;
}

.link-button.amazon:hover {
    background: #e68900;
}

.link-button.audible {
    background: #f56500;
}

.link-button.audible:hover {
    background: #d14900;
}

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

.footer-content {
    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: #4CAF50;
}

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

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

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

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

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #45a049;
}

/* Content Pages */
.content-page {
    padding: 40px 0 80px;
}

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

.content-page h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #333;
}

.content-page h3 {
    font-size: 22px;
    margin: 25px 0 10px;
    color: #333;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-page ul,
.content-page ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .book-detail-image {
        text-align: center;
    }
    
    .book-detail-image img {
        width: 200px;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .link-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .featured-books,
    .categories-preview {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .book-card {
        padding: 20px;
    }
    
    .category-card {
        padding: 25px;
    }
}