@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* Reset/Base for Chats Page */
body {
    font-family: 'Lato', sans-serif;
    background-color: #f8f9fa;
    /* Very soft grey/white */
    color: #37474f;
    /* Blue Grey text */
    line-height: 1.6;
    background-image: none;
    animation: none;
}

header {
    background-color: #ffffff;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eceff1;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern for header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9IiM2MDdkOGIiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9zdmc+');
    z-index: 0;
    opacity: 0.5;
}

header h1 {
    font-family: 'Playfair Display', serif;
    color: #455a64;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: none;
    animation: none;
    transform: none;
}

header p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #78909c;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.main-nav {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #cfd8dc;
}

.main-nav a {
    color: #546e7a;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: #263238;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.saga-intro {
    text-align: center;
    margin-bottom: 5rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    animation: none;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.saga-intro p {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #546e7a;
    line-height: 1.8;
}

.saga-intro img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    filter: sepia(10%);
    /* Slight nostalgic touch */
}

.book-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    /* Large spacing between books */
}

.book-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card:nth-child(even) {
    flex-direction: row-reverse;
}

.book-card:nth-child(1) {
    animation-delay: 0.2s;
}

.book-card:nth-child(2) {
    animation-delay: 0.4s;
}

.book-card:nth-child(3) {
    animation-delay: 0.6s;
}

.book-visual {
    flex: 1;
    position: relative;
}

.book-visual img,
.book-visual video {
    width: 100%;
    max-width: 350px;
    border-radius: 2px;
    box-shadow: 20px 20px 0 #eceff1;
    /* Geometric shadow graphic */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
    margin: 0 auto;
}

.book-card:hover .book-visual img,
.book-card:hover .book-visual video {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 #cfd8dc;
}

.book-content {
    flex: 1.2;
}

.book-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #455a64;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.book-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #b0bec5;
    margin-top: 10px;
}

.book-info {
    font-size: 1.05rem;
    color: #607d8b;
    margin-bottom: 2rem;
}

.buy-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #455a64;
    border: 1px solid #455a64;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: none;
    width: auto;
    /* Not full width anymore */
}

.buy-btn:hover {
    background-color: #455a64;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(69, 90, 100, 0.2);
}

.back-link {
    color: #90a4ae;
    font-weight: normal;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 10rem;
    margin-bottom: 5rem;
}

.back-link:hover {
    color: #455a64;
    letter-spacing: 0;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .book-card {
        flex-direction: column !important;
        /* Stack vertically on mobile */
        gap: 2rem;
        text-align: center;
    }

    .book-content h3::after {
        margin: 10px auto 0 auto;
        /* Center the underline */
    }

    .book-visual img {
        max-width: 250px;
        box-shadow: 15px 15px 0 #eceff1;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}