/* Lynne Silver - Romance Author Website
   Professional, feminine design with soft colors and elegant typography */

:root {
    --primary-color: #9e7b9b;
    --primary-light: #c9a7c7;
    --primary-dark: #7a5a78;
    --accent-color: #d4a574;
    --accent-light: #e8c9a8;
    --text-dark: #3d3d3d;
    --text-light: #6b6b6b;
    --background-cream: #faf8f5;
    --background-white: #ffffff;
    --border-light: #e8e4e0;
    --shadow-soft: rgba(158, 123, 155, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

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

nav a {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-dark);
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background-cream) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero .cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.hero .cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 123, 155, 0.4);
    color: white;
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Book Carousel */
.book-carousel-section {
    background-color: var(--background-white);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 1rem;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 200px;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover img {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(158, 123, 155, 0.25);
}

.carousel-slide h4 {
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.carousel-slide .series-name {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--background-white);
    border: 2px solid var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Book Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.book-card {
    background-color: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(158, 123, 155, 0.25);
}

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

.book-card-content {
    padding: 1.25rem;
}

.book-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-card .series {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.book-card .book-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Series Section */
.series-section {
    margin-bottom: 4rem;
}

.series-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

/* Individual Book Page */
.book-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3rem 0;
}

.book-cover {
    position: sticky;
    top: 120px;
}

.book-cover img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px var(--shadow-soft);
}

.book-info h1 {
    margin-bottom: 0.5rem;
}

.book-info .series-info {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.book-info .blurb {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.book-meta {
    background-color: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.book-meta p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-meta strong {
    color: var(--primary-dark);
    min-width: 120px;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ff9900;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    color: white;
}

.buy-button svg {
    width: 24px;
    height: 24px;
}

/* About Page */
.about-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.author-photo {
    position: sticky;
    top: 120px;
}

.author-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px var(--shadow-soft);
}

.author-bio h1 {
    margin-bottom: 1.5rem;
}

.author-bio p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.author-bio .highlight {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-white);
    text-align: center;
    padding: 4rem 2rem;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-email:hover {
    color: var(--primary-dark);
}

/* Newsletter Signup */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--accent-light);
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 2rem;
}

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

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

/* Back to Series Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .book-detail,
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover,
    .author-photo {
        position: static;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        box-shadow: 0 5px 10px var(--shadow-soft);
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
    }

    nav li {
        border-bottom: 1px solid var(--border-light);
    }

    nav a {
        display: block;
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .book-card img {
        height: 200px;
    }
}
