* {
    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: #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-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.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: #2563eb;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

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

.hero-content {
    flex: 1;
    max-width: 500px;
}

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

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

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

.cta-button:hover {
    background: #1d4ed8;
}

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

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

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

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

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

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

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

.book-image {
    width: 80px;
    height: 120px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
}

.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e293b;
    text-align: center;
}

.book-author {
    color: #64748b;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.book-category {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.book-description {
    color: #64748b;
    line-height: 1.6;
}

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

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid #334155;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

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

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

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

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

.book-meta {
    color: #64748b;
    margin-bottom: 20px;
}

.book-meta p {
    margin-bottom: 5px;
}

.book-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.book-link {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.book-link:hover {
    background: #1d4ed8;
}

.book-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #1e293b;
}

.book-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #374151;
}

.key-takeaways {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.key-takeaways ul {
    list-style-position: inside;
    color: #4b5563;
}

.key-takeaways li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.disclaimer-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.disclaimer-note p {
    color: #92400e;
    font-weight: 500;
}

/* Books Directory */
.books-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

.search-filters {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.category-filter {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

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

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

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

.cookie-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

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

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

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

.page-content h2 {
    font-size: 1.8rem;
    color: #374151;
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #4b5563;
}

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

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

/* Contact Form */
.contact-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
}

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

.submit-btn {
    background: #2563eb;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-detail-image {
        margin: 0 auto;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .book-card {
        padding: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}