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

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

.cookie-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: #357abd;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px 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;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 10px;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

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

.hero-btn {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #357abd;
}

.hero-image {
    flex: 1;
}

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

/* Sections */
.featured,
.categories {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #4a90e2;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid #4a90e2;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #4a90e2;
    color: white;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.book-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.book-author {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

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

.book-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

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

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.category-count {
    color: #666;
    font-size: 0.95rem;
}

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

.book-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.book-cover {
    flex: 0 0 300px;
}

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

.book-meta {
    flex: 1;
}

.book-meta h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #333;
}

.book-meta .author {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 15px;
}

.book-meta .category {
    display: inline-block;
    background: #e8f4f8;
    color: #4a90e2;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.book-meta .year {
    color: #888;
    margin-bottom: 20px;
}

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

.book-link {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.book-link:hover {
    background: #357abd;
}

.third-party-notice {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

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

.content-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.content-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.content-section li:before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.search-filter .container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

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

.filter-select {
    min-width: 150px;
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

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

.form-button {
    background: #4a90e2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-button:hover {
    background: #357abd;
}

/* Footer */
.footer {
    background: #333;
    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-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4a90e2;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: #4a90e2;
}

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

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

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

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-item a {
    color: #4a90e2;
    text-decoration: none;
}

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

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

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #333;
}

.content-page h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #333;
}

.content-page h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #333;
}

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

.content-page ul,
.content-page ol {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .book-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .book-cover {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .book-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-filter .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .book-meta h1 {
        font-size: 2rem;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
}