* {
    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: #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;
    text-decoration: none;
    color: #2563eb;
    font-weight: 700;
    font-size: 1.2rem;
}

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

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

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

.nav-links a:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.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;
}

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

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

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

.btn-secondary {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

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

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

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

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

.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;
    overflow: hidden;
}

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

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

.book-author {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
}

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

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

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

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

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

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s;
}

.category-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.category-card h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.category-card p {
    color: #64748b;
}

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

.search-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    min-width: 150px;
}

/* Book Details */
.book-detail {
    padding: 60px 0;
    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;
    overflow: hidden;
}

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

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

.book-detail-meta {
    margin-bottom: 20px;
}

.book-detail-meta p {
    margin-bottom: 5px;
    color: #64748b;
}

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

.external-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: background 0.3s;
}

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

.book-sections {
    display: grid;
    gap: 40px;
}

.book-section h2 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.book-section p {
    color: #64748b;
    line-height: 1.7;
}

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

.key-takeaways li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #64748b;
}

.key-takeaways li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

/* Footer */
.footer {
    background: #1e293b;
    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: 15px;
    color: white;
}

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

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

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

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: white;
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-content a {
    color: #60a5fa;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

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

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

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

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

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

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

.content-page ul li {
    margin-bottom: 8px;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .book-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-detail-image {
        margin: 0 auto;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .search-input,
    .filter-select {
        min-width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .external-links {
        justify-content: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .featured-books h2,
    .categories-preview h2 {
        font-size: 2rem;
    }
    
    .book-card {
        padding: 20px;
    }
}