-->
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    text-decoration: none;
}

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

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

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

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

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1f2937;
    text-decoration: none;
}

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

.nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav a {
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #2563eb;
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #4b5563;
    transition: all 0.3s ease;
}

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

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

.hero-content h1 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 32px;
}

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

/* Page Header */
.page-header {
    padding: 60px 0;
    background-color: #f9fafb;
    text-align: center;
}

.page-header h1 {
    color: #1f2937;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.book-card-image {
    height: 200px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card-image img {
    max-width: 120px;
    max-height: 160px;
    object-fit: contain;
}

.book-card-content {
    padding: 24px;
}

.book-card h3 {
    color: #1f2937;
    margin-bottom: 8px;
}

.book-card .author {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 12px;
}

.book-card .category {
    display: inline-block;
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.book-card p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

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

.featured-books h2 {
    text-align: center;
    margin-bottom: 48px;
    color: #1f2937;
}

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

.categories-preview h2 {
    text-align: center;
    margin-bottom: 48px;
    color: #1f2937;
}

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

.category-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    color: #1f2937;
    margin-bottom: 16px;
}

.category-card p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.search-filter input,
.category-filter select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 200px;
}

.search-filter input:focus,
.category-filter select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.book-image {
    background-color: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.book-image img {
    max-width: 200px;
    max-height: 320px;
    object-fit: contain;
}

.book-info h1 {
    color: #1f2937;
    margin-bottom: 16px;
}

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

.book-meta .author {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.book-meta .category {
    display: inline-block;
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.book-meta .year {
    color: #6b7280;
}

.book-description {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 32px;
}

.external-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.disclaimer-notice {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 32px 0;
}

.disclaimer-notice p {
    color: #92400e;
    margin: 0;
    font-weight: 500;
}

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

.book-details-main h2 {
    color: #1f2937;
    margin-bottom: 24px;
    margin-top: 40px;
}

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

.book-sidebar {
    background-color: #f9fafb;
    padding: 32px;
    border-radius: 12px;
    height: fit-content;
}

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

.key-takeaways li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.6;
}

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

/* Book Not Found */
.book-not-found {
    padding: 80px 0;
    text-align: center;
}

.book-not-found h1 {
    color: #1f2937;
    margin-bottom: 16px;
}

.book-not-found p {
    color: #6b7280;
    margin-bottom: 32px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: #6b7280;
}

/* Categories Content */
.categories-content {
    padding: 40px 0;
}

.category-section {
    margin-bottom: 60px;
}

.category-section h2 {
    color: #1f2937;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* About Content */
.about-content,
.contact-content,
.legal-content {
    padding: 40px 0;
}

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

.content-section h2 {
    color: #1f2937;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #374151;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.content-section li {
    margin-bottom: 8px;
    color: #4b5563;
}

.categories-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.category-info {
    background-color: #f9fafb;
    padding: 24px;
    border-radius: 8px;
}

.category-info h4 {
    color: #1f2937;
    margin-bottom: 12px;
}

.category-info p {
    color: #6b7280;
    margin: 0;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-message {
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.form-message.success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.form-message.error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.contact-info-section h2 {
    color: #1f2937;
    margin-bottom: 32px;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item h4 {
    color: #1f2937;
    margin-bottom: 8px;
}

.contact-item p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: #2563eb;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #d1d5db;
    padding: 60px 0 20px;
}

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

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

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

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
}

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

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

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 12px 0;
    }

    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

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

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

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

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

    .book-image {
        height: 300px;
        margin: 0 auto;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .categories-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

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

    .book-card-content {
        padding: 16px;
    }

    .category-card {
        padding: 24px;
    }

    .book-sidebar {
        padding: 24px;
    }

    .featured-books,
    .categories-preview {
        padding: 60px 0;
    }
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero .container {
    direction: rtl;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .filters {
    direction: rtl;
}

[dir="rtl"] .book-header {
    direction: rtl;
}

[dir="rtl"] .book-content {
    direction: rtl;
}

[dir="rtl"] .contact-wrapper {
    direction: rtl;
}

[dir="rtl"] .key-takeaways li {
    padding-right: 24px;
    padding-left: 0;
}

[dir="rtl"] .key-takeaways li:before {
    right: 0;
    left: auto;
}

<!--