* {
    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: #2c3e50;
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-content button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2em;
}

.logo {
    width: 40px;
    height: 40px;
}

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

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/hero-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Books Section */
.featured-books {
    padding: 80px 20px;
    background: #f8f9fa;
}

.featured-books h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.book-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px 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 10px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.book-image {
    width: 80px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

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

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

.section-footer {
    text-align: center;
}

.view-all-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

.view-all-link:hover {
    text-decoration: underline;
}

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

.categories-preview h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
}

.category-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.category-count {
    opacity: 0.9;
    font-size: 0.9em;
}

/* Books Directory Page */
.page-header {
    background: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.filters {
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #eee;
}

.filters-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

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

.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
}

.filter-select select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    background: white;
    min-width: 150px;
}

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

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

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

.book-cover {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

.book-meta span {
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9em;
    color: #555;
}

.book-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.book-main h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 30px;
}

.book-main h2:first-child {
    margin-top: 0;
}

.key-takeaways {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

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

.key-takeaways li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

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

.book-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.external-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.external-link {
    display: block;
    background: #3498db;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.external-link:hover {
    background: #2980b9;
    text-decoration: none;
    color: white;
}

.disclaimer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    font-size: 0.9em;
    color: #856404;
}

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

.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: 15px;
    color: #ecf0f1;
}

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

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

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

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

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

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

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

.btn {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

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

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

.content-page h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.content-page h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2em;
    }

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

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

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

    .book-content {
        grid-template-columns: 1fr;
    }

    .filters-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

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

    .book-card {
        padding: 20px;
    }

    .category-card {
        padding: 25px;
    }
}