/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #f1c40f;
    color: #2c3e50;
}

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

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

.btn-secondary:hover {
    background-color: #2c3e50;
    color: #fff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    z-index: 1000;
    display: block;
}

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

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

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    background-color: #2c3e50;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1c40f;
    text-decoration: none;
}

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

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

.nav-link:hover {
    color: #f1c40f;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('./images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 80px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f1c40f;
}

/* Collection Section */
.collection {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.collection p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.recommendation-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.recommendation-card h3 {
    background-color: #34495e;
    color: #fff;
    padding: 1rem;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.card-content {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
}

.card-content img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.card-text h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-text p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Genres Section */
.genres {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.genres p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.genre-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.genre-card img {
    width: 100%;
    object-fit: cover;
}

.genre-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #2c3e50;
}

.genre-card p {
    padding: 0 1rem 1.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Authors Section */
.authors {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.author-featured {
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.author-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.author-text {
    flex: 1;
    padding: 3rem;
}

.author-text h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.author-text p {
    color: #555;
    margin-bottom: 1.5rem;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

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

.author-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.author-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.author-card h4 {
    padding: 1rem 1rem 0.5rem;
    color: #2c3e50;
}

.author-card p {
    padding: 0 1rem 1.5rem;
    color: #666;
    margin-bottom: 0;
}

/* Events Section */
.events {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.events-column h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: left;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-3px);
}

.event-date {
    background-color: #f1c40f;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.event-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.event-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bookclub-featured {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bookclub-featured img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.bookclub-featured h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.bookclub-featured p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Challenge Section */
.challenge {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.challenge-column h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: left;
}

.challenge-column p {
    color: #666;
    margin-bottom: 2rem;
}

.challenge-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f1c40f;
    margin-bottom: 0.5rem;
}

.stat .label {
    color: #666;
    font-size: 0.9rem;
}

.community-list {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.community-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.community-item:last-child {
    border-bottom: none;
}

.community-item .rank {
    background-color: #f1c40f;
    color: #2c3e50;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.community-item .name {
    flex: 1;
    margin-left: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.community-item .books {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #2c3e50;
    color: #fff;
}

.contact h2 {
    color: #fff;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.contact-form-section {
    background: #34495e;
    padding: 3rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    color: #2c3e50;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.3);
}

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

.contact-info h3 {
    color: #f1c40f;
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #34495e;
    padding: 2rem;
    border-radius: 10px;
}

.faq-item h4 {
    color: #f1c40f;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #ecf0f1;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f1c40f;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.contact-details p {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #f1c40f;
}

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

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        margin-top: 80px;
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-text {
        padding: 2rem;
    }
    
    .author-image img {
        width: 250px;
        height: 250px;
    }
    
    .events-grid,
    .challenge-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recommendations-grid,
    .genres-grid,
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-content p {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .author-image img {
        width: 200px;
        height: 200px;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        align-self: center;
    }
}