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

:root {
    /* Colors matched to logo */
    --lavender: #a88bc7;
    --blue: #7baed6;
    --deep-purple: #6b5b8a;
    --rose-gold: #c4956a;
    --dark: #1a1a1a;
    --text-dark: #1e1e1e;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #f8f7fa;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);

    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--rose-gold);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: #ccc;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--rose-gold);
}

.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social a {
    color: #999;
    transition: color 0.3s ease;
}

.nav-social a:hover {
    color: var(--rose-gold);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ccc;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.hero-logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
}

/* ===== Scrolling Ticker ===== */
.ticker {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    padding: 18px 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--rose-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 30px;
}

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lavender);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Announcements Section ===== */
.announcements {
    padding: 80px 0;
    background: var(--bg-white);
}

.announcements-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.announcement-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: var(--bg-light);
    border-left: 3px solid var(--rose-gold);
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(5px);
}

.announcement-image {
    flex: 0 0 250px;
    overflow: hidden;
}

.announcement-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.announcement-description {
    color: var(--text-medium);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.announcement-btn {
    display: inline-block;
}

/* ===== Books Section ===== */
.books {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--rose-gold);
    margin: 0 auto 60px;
}

/* Series group layout */
.series-group {
    margin-bottom: 80px;
}

.series-group:last-child {
    margin-bottom: 0;
}

.series-banner {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
}

.series-banner-line {
    flex: 1;
    height: 1px;
    background: var(--rose-gold);
    opacity: 0.4;
}

.series-banner-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Books grid within a series */
.series-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Individual book card */
.book-card {
    max-width: 320px;
    width: 100%;
    position: relative;
}

.book-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rose-gold);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    z-index: 2;
}

.book-card-cover {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.book-card-cover img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-card-cover img:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
}

.book-card-info {
    text-align: center;
}

.book-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.book-card-description {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.book-card-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.loading-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.no-books-text {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--dark);
    color: var(--bg-white);
    border: 1px solid var(--dark);
}

.btn-primary:hover {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 80px 0 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--rose-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    letter-spacing: 0.5px;
}

.footer-newsletter h3,
.footer-social h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--bg-white);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer .btn {
    background: transparent;
    color: var(--rose-gold);
    border: 1px solid var(--rose-gold);
    padding: 12px 28px;
    font-size: 0.75rem;
}

.footer .btn:hover {
    background: var(--rose-gold);
    color: var(--dark);
}

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: var(--rose-gold);
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1px;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .series-books {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }

    .series-banner-title {
        font-size: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

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

    .nav-container {
        padding: 0 25px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-social {
        display: none;
    }

    .hero {
        padding: 100px 25px 60px;
    }

    .hero-logo {
        max-width: 500px;
    }

    .about {
        padding: 80px 0;
    }

    .about h2 {
        font-size: 2.5rem;
    }

    .books {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .book-spotlight {
        margin-bottom: 60px;
    }

    .book-spotlight-title {
        font-size: 2.2rem;
    }

    .announcement-card {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }

    .announcement-image {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 20px 50px;
    }

    .hero-logo {
        max-width: 350px;
    }

    .about h2,
    .section-title {
        font-size: 2rem;
    }

    .about {
        padding: 60px 0;
    }

    .books {
        padding: 60px 0;
    }

    .book-spotlight-cover {
        max-width: 250px;
    }

    .book-spotlight-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.75rem;
    }

    .footer-inner {
        padding: 0 25px 40px;
    }

    .footer-bottom {
        padding: 20px 25px;
    }
}
