* {
    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: #333;
    color: white;
    padding: 15px;
    z-index: 1000;
}

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

.cookie-accept {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: #357ABD;
}

/* Header */
.header {
    background: white;
    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: #333;
    font-weight: 600;
    font-size: 1.2em;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #4A90E2;
}

.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 {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    min-height: 500px;
}

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

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

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

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #4A90E2;
    border-color: #4A90E2;
}

.btn-secondary:hover {
    background: #4A90E2;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #333;
    border-color: #ddd;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

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

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Books Grid */
.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;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-image {
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-image img {
    width: 160px;
    height: 220px;
    object-fit: cover;
}

.book-content {
    padding: 25px;
}

.book-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-content h3 {
    margin: 15px 0 8px 0;
    font-size: 1.3em;
    color: #2c3e50;
}

.book-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.book-content h3 a:hover {
    color: #4A90E2;
}

.book-author {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    font-style: italic;
}

.book-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.book-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.book-link {
    background: #f8f9fa;
    color: #333;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.book-link:hover {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* Categories */
.categories-preview {
    background: #f8f9fa;
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #4A90E2;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

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

/* Search and Filters */
.search-filters {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 50px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #4A90E2;
}

.filter-select {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    min-width: 150px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4A90E2;
}

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

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

.book-detail-image {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-detail-image img {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

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

.book-detail-author {
    font-size: 1.3em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

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

.book-detail-meta span {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.book-detail-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.book-detail-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-detail-links .book-link {
    padding: 12px 25px;
    font-size: 1em;
}

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

.book-main-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

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

.book-main-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.book-main-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.book-main-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

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

.book-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.disclaimer-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    color: #856404;
}

.disclaimer-note h4 {
    margin-bottom: 10px;
    color: #856404;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.2em;
}

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

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

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

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

.footer-section a:hover {
    color: #4A90E2;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

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

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

.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: #4A90E2;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

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

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .search-container {
        flex-direction: column;
    }

    .search-box,
    .filter-select {
        min-width: 100%;
    }

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

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

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

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

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

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

    .btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .book-content {
        padding: 20px;
    }

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