* {
    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;
    z-index: 1000;
    display: none;
}

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

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

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

.cookie-content a {
    color: #3498db;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

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

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

.btn-primary {
    background: #3498db;
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    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: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Books Grid */
.featured-books,
.books-directory,
.categories-full {
    padding: 80px 0;
}

.featured-books h2,
.categories-full h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.book-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    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.15);
}

.book-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

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

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

.book-card .category {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
}

.book-card .description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Search and Filters */
.search-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box input,
.filter-box select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 250px;
}

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

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

.categories-preview h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

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

.category-card:hover {
    transform: translateY(-5px);
}

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

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

.category-detail-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.category-detail-card h2 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.category-detail-card p {
    color: #666;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.category-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-books .book-card {
    padding: 16px;
}

.category-books .book-card h3 {
    font-size: 1.1rem;
}

.category-books .book-card img {
    width: 60px;
    height: 90px;
}

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

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

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

.book-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.book-info h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
}

.book-info .author {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 16px;
    font-style: italic;
}

.book-info .category {
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.book-info .year {
    color: #666;
    margin-bottom: 20px;
}

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

.external-links .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.book-main h2 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.6rem;
}

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

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

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

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

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

.book-sidebar p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.third-party-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.third-party-notice h3 {
    color: #856404;
    margin-bottom: 12px;
}

.third-party-notice p {
    color: #856404;
    margin: 0;
}

.book-not-found {
    text-align: center;
    padding: 80px 20px;
}

.book-not-found h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.book-not-found p {
    color: #666;
    margin-bottom: 30px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

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

.content-section h3 {
    color: #2c3e50;
    margin-bottom: 16px;
    margin-top: 24px;
    font-size: 1.4rem;
}

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

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

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

.about-content,
.legal-content {
    padding: 60px 0;
}

/* Contact */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-info h2,
.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

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

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

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

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-note {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.contact-note h3 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.contact-note p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    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: 20px;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

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

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

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

.footer-section a[href^="tel:"] {
    color: #3498db;
    text-decoration: none;
}

.footer-section a[href^="tel:"]:hover {
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box input,
    .filter-box select {
        min-width: 100%;
        max-width: 400px;
    }
    
    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-cover {
        justify-self: center;
    }
    
    .book-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .external-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .featured-books,
    .books-directory,
    .categories-full {
        padding: 60px 0;
    }
    
    .book-card {
        padding: 20px;
    }
    
    .category-card,
    .category-detail-card {
        padding: 24px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .external-links {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .book-card,
    .category-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}