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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

.cookie-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #2980b9;
}

/* 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;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

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

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

.cta-button:hover {
    background: #2980b9;
}

.secondary-button {
    display: inline-block;
    background: transparent;
    color: #3498db;
    padding: 12px 25px;
    text-decoration: none;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.secondary-button:hover {
    background: #3498db;
    color: white;
}

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

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

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

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

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

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

.book-image {
    width: 80px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.book-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

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

.book-description {
    color: #555;
    line-height: 1.5;
}

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

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

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
}

/* Book Details */
.book-details {
    padding: 40px 20px 80px;
}

.book-header {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.book-cover {
    width: 200px;
    height: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.book-info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-meta {
    margin-bottom: 25px;
}

.book-meta p {
    margin-bottom: 8px;
    color: #666;
}

.book-meta strong {
    color: #333;
}

.book-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.book-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.book-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.book-section ul {
    padding-left: 20px;
}

.book-section li {
    color: #555;
    margin-bottom: 8px;
}

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

.external-link {
    background: #f8f9fa;
    color: #3498db;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-weight: 600;
    transition: all 0.3s;
}

.external-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.disclaimer-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    color: #856404;
}

/* Search and Filter */
.search-filter {
    background: #f8f9fa;
    padding: 30px 20px;
}

.search-filter .container {
    max-width: 800px;
}

.search-filter h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

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

.search-input,
.category-select {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus,
.category-select:focus {
    outline: none;
    border-color: #3498db;
}

.books-directory {
    padding: 40px 20px;
}

.books-count {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

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

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

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

.submit-btn {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
}

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

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.content-page h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.content-page h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

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

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

.content-page li {
    color: #555;
    margin-bottom: 8px;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    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: #ecf0f1;
}

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

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

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

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

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
    color: #95a5a6;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .book-cover {
        margin: 0 auto;
    }

    .filter-controls {
        flex-direction: column;
    }

    .search-input,
    .category-select {
        min-width: auto;
    }

    .external-links {
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .book-card,
    .category-card {
        padding: 20px;
    }

    .featured-books h2,
    .categories-preview h2 {
        font-size: 2rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }
}