/* ========================================
   Charlotte Frost Author Website
   Atmospheric Cozy Mystery Theme
   ======================================== */

/* ========================================
   CSS Variables - Color Palette
   ======================================== */
:root {
    --ink: #1f2024;           /* deep anthracite night */
    --text: #e6dcc9;          /* parchment text tone */
    --gold: #f1c27b;          /* candlelight gold */
    --amber: #c97d3f;         /* warm amber accent */
    --wine: #6b2f3a;          /* burgundy accent */
    --mist: #74869c;          /* cold mist blue-gray */
    --bronze: #2e1d15;        /* dark bronze for nav/footer */
    --card-bg: #2a2723;       /* deep neutral background */
    --hover: #d7a96f;         /* soft gold hover */
    --pumpkin: #d66b2d;       /* Halloween accent */
    --frost: #91a6b8;         /* Christmas frost accent */
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(241, 194, 123, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--ink);
    background-image: url('images/background-parchment.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.05) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 3px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Vignette effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(46, 29, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(241, 194, 123, 0.2);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 4px 12px var(--shadow);
}

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

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-variant: small-caps;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--glow);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 3rem 2rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--glow);
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 2.5rem;
    font-style: italic;
    font-weight: 500;
    background: rgba(31, 32, 36, 0.85);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--gold);
    display: inline-block;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

/* ========================================
   Buttons
   ======================================== */
.btn-primary,
.btn-amazon,
.btn-book {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-amazon:hover,
.btn-book:hover {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 0 25px var(--glow), 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Book-specific button accents */
.frost-btn {
    border-color: var(--frost);
    color: var(--frost);
}

.frost-btn:hover {
    background: var(--frost);
    box-shadow: 0 0 25px rgba(145, 166, 184, 0.4);
}

.pumpkin-btn {
    border-color: var(--pumpkin);
    color: var(--pumpkin);
}

.pumpkin-btn:hover {
    background: var(--pumpkin);
    box-shadow: 0 0 25px rgba(214, 107, 45, 0.4);
}

.wine-btn {
    border-color: var(--wine);
    color: var(--wine);
}

.wine-btn:hover {
    background: var(--wine);
    box-shadow: 0 0 25px rgba(107, 47, 58, 0.4);
}

/* ========================================
   Ornament Divider
   ======================================== */
.ornament-divider {
    text-align: center;
    margin: 3rem 0;
    position: relative;
    z-index: 2;
}

.ornament {
    width: 80px;
    height: auto;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px var(--glow));
}

/* ========================================
   Page Header (for internal pages)
   ======================================== */
.page-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text);
    font-style: italic;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }
}

/* ========================================
   Author Bio Section
   ======================================== */
.author-bio {
    background: rgba(42, 39, 35, 0.6);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-variant: small-caps;
}

.bio-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-image {
    text-align: center;
}

.author-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 25px var(--shadow);
    filter: sepia(20%) brightness(0.9);
}

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

.bio-note {
    font-size: 0.95rem;
    color: var(--amber);
    font-style: italic;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .author-photo {
        max-width: 200px;
    }
}

/* ========================================
   Series Introduction
   ======================================== */
.series-intro {
    background: rgba(42, 39, 35, 0.6);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
}

.series-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 1rem;
}

/* ========================================
   Amazon Section
   ======================================== */
.amazon-section {
    text-align: center;
    padding: 3rem 0;
}

.btn-amazon {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
}

/* ========================================
   Book Cards
   ======================================== */
.book-section {
    padding: 2rem 0;
}

.book-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: rgba(42, 39, 35, 0.8);
    border-radius: 15px;
    padding: 2.5rem;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.4s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px var(--glow);
}

/* Book-specific accents */
.frost-accent {
    border-color: var(--frost);
}

.frost-accent:hover {
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px rgba(145, 166, 184, 0.4);
}

.pumpkin-accent {
    border-color: var(--pumpkin);
}

.pumpkin-accent:hover {
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px rgba(214, 107, 45, 0.4);
}

.wine-accent {
    border-color: var(--wine);
}

.wine-accent:hover {
    box-shadow: 0 12px 40px var(--shadow), 0 0 30px rgba(107, 47, 58, 0.4);
}

.book-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.book-series {
    font-size: 1rem;
    color: var(--amber);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-description {
    margin-bottom: 2rem;
}

.book-description p {
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 968px) {
    .book-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover {
        text-align: center;
    }

    .book-cover img {
        max-width: 300px;
    }
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: rgba(42, 39, 35, 0.6);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter-intro p {
    font-size: 1.15rem;
    line-height: 1.9;
}

.form-container {
    background: rgba(31, 32, 36, 0.6);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

/* Form Placeholder Styling */
.form-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.placeholder-instruction {
    font-size: 0.95rem;
    color: var(--amber);
    font-style: italic;
}

/* GDPR Notice */
.gdpr-notice {
    background: rgba(31, 32, 36, 0.4);
    border-left: 3px solid var(--gold);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.gdpr-notice strong {
    color: var(--gold);
}

.privacy-link {
    text-decoration: underline;
}

/* ========================================
   Privacy Page
   ======================================== */
.privacy-section {
    background: rgba(42, 39, 35, 0.6);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(241, 194, 123, 0.3);
    padding-bottom: 0.5rem;
}

.privacy-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.privacy-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.privacy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(241, 194, 123, 0.3);
    text-align: center;
    color: var(--amber);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bronze);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(241, 194, 123, 0.2);
    position: relative;
    z-index: 2;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--amber);
    font-size: 0.9rem;
}

/* ========================================
   Fade-in Animation
   ======================================== */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }

    .author-bio,
    .series-intro,
    .newsletter-section,
    .privacy-section {
        padding: 2rem 1.5rem;
    }

    .book-card {
        padding: 1.5rem;
    }

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

/* ========================================
   Newsletter Form Styling
   ======================================== */
#newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

#newsletter-form label {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: -0.5rem;
}

#newsletter-form input {
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    background: rgba(31, 32, 36, 0.8);
    color: var(--text);
    transition: all 0.3s ease;
}

#newsletter-form input:focus {
    outline: none;
    border-color: var(--hover);
    box-shadow: 0 0 15px var(--glow);
    background: rgba(31, 32, 36, 0.95);
}

#newsletter-form input::placeholder {
    color: var(--mist);
    opacity: 0.6;
}

#newsletter-form .btn {
    padding: 1rem 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

#newsletter-form .btn:hover {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 0 25px var(--glow), 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

#form-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
