@import url('colors.css');

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: transparent;
}

/* Header and Navigation - fixed so it overlays content (no reserved top band) */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem 2rem;
    padding-top: 1rem;
    background: transparent;
    background-color: rgba(0, 0, 0, 0);
    box-shadow: none;
    pointer-events: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

header.header-scrolled {
    background-color: var(--color-beige);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: auto;
}

.logo-name-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.name-svg {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 0.5px currentColor);
    font-weight: 700;
    transition: filter 0.35s ease;
}
.name-svg-white {
    filter: brightness(0) invert(1);
}
.name-svg-black {
    filter: brightness(0);
}

/* When header has scrolled background, show logo in black */
header.header-scrolled .name-svg,
header.header-scrolled .name-svg-white {
    filter: brightness(0);
}

nav ul.nav-pill {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background-color: var(--color-beige);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0;
}

nav ul li {
    position: relative;
}

nav ul.nav-pill li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    display: block;
}

nav ul.nav-pill li a:hover {
    background-color: var(--color-white);
    color: var(--color-text);
}

nav ul.nav-pill li a.active {
    background-color: var(--color-orange);
    color: var(--color-white);
    font-weight: 600;
}

nav ul.nav-pill li a.active:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
}

nav ul.nav-pill li.dropdown > a {
    position: relative;
}
/* Header Right Container */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ecwid Cart Widget */
.ec-cart-widget {
    display: none; /* Hidden by default, shown by JavaScript when cart has items */
    flex-direction: row;
    align-items: center;
    margin-left: 0.5rem;
}

.ec-cart-widget iframe,
.ec-cart-widget div {
    display: inline-block;
}

/* Hide cart when empty (Ecwid handles this, but we can add custom styling) */
.ec-cart-widget:empty {
    display: none;
}

/* Ecwid Product Browser Background */
html#ecwid_html body#ecwid_body div.ecwid-productBrowser {
    background-color: transparent !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: 0;
    border-radius: 8px;
    z-index: 1001;
    padding-top: 0.75rem;
}

/* Add invisible bridge to prevent gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content:hover {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--color-light-gray);
}

.dropdown-content div {
    border-top: 1px solid #ddd;
    margin: 0.5rem 0;
    padding-top: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
    padding: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0;
    width: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 90vh;
    object-fit: cover;
    object-position: 33% 66%;
    opacity: 1;
    display: block;
    transform: scale(1.1);
    transform-origin: 50% 25%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    padding: 3rem;
    margin-left: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: min-height 0.6s ease-in-out, height 0.6s ease-in-out;
    overflow: hidden;
}

.quotes-carousel {
    font-size: clamp(0.95rem, 2.5vh, 1.4rem);
    font-style: italic;
    font-weight: 300;
    line-height: clamp(1.5, 2.8vh, 1.8);
    margin-bottom: 0;
    min-height: 200px;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.quote-container {
    width: 100%;
    padding: 0.5rem 0;
}

.quote-container br {
    display: block;
    margin: 0.5rem 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section - Override section defaults for full width */
.hero-section {
    padding: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

/* Standard Page Title Section */
.page-title-section {
    background: var(--color-tan) !important;
    padding: 7rem 2rem 1rem 2rem !important;
    text-align: center;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: block;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.page-title-section h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0;
    color: var(--color-black);
    text-transform: none;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.01em;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.page-title-section p {
    display: none;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-dark-gray);
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.01em;
    text-decoration: underline;
    text-decoration-color: var(--color-text-light);
    text-underline-offset: 0.3em;
}

/* Home page section titles (Books, About Lisa) – smaller, match site font */
.books-section .section-title,
.about-section .section-title {
    font-size: 2rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-decoration: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sub-page spacing - add padding-top to sections on non-homepage pages */
body:not(.homepage) section {
    padding-top: 2rem;
}

body:not(.homepage) section:first-of-type {
    padding-top: 6rem;
}

/* Podcast Section */
.podcast-section {
    background-color: var(--color-white);
}

.podcast-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.episode-card {
    background-color: var(--color-beige);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 2px solid transparent;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.9);
    background-color: var(--color-white);
    border-color: var(--color-brown);
}

.episode-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.episode-info {
    padding: 1.5rem;
}

.episode-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
}

.episode-number {
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-decoration: none;
}

/* Remove underlines from all text inside episode cards */
.episode-card,
.episode-card *,
.episode-card-link,
.episode-card-link * {
    text-decoration: none !important;
}

.episode-card a,
.episode-card-link a {
    text-decoration: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--color-brown);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-purple {
    background-color: #6B4E9D;
}
.btn-purple:hover {
    background-color: #5a4190;
    color: var(--color-white);
}

.book-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-center {
    display: block;
    text-align: center;
    margin: 2rem auto;
    max-width: 300px;
}

/* Search Library Section */
.search-library {
    background-color: var(--color-light-gray);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.search-library h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.search-library p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topic-filter {
    padding: 0.5rem 1.5rem;
    background-color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s;
}

.topic-filter:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Where to Listen */
.where-to-listen {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.listen-badge {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.listen-badge:hover {
    opacity: 1;
}

/* Books Section */
.books-section {
    background-color: var(--color-light-gray);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.book-featured {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-direction: column;
}

.book-cover {
    flex: 0 0 350px;
    max-width: 350px;
}

.book-cover img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--color-white);
    text-align: center;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.new-here-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-text);
    text-decoration: underline;
}

/* About Section */
.about-section {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
footer {
    background: none;
    color: var(--color-white);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #333333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #222222;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #000000;
}

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

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s;
    filter: brightness(0);
}

.social-links a:hover {
    transform: scale(1.2);
    filter: brightness(0) opacity(0.7);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.3);
    background-color: rgba(0,0,0,0.3);
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-bottom p {
    color: var(--color-white);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--color-yellow);
    text-decoration: underline;
}

.footer-image {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.footer-image img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-bottom {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul.nav-pill {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--color-light-gray);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem;
        border-radius: 12px;
        min-width: 200px;
        align-items: stretch;
    }
    
    nav ul.nav-pill.active {
        display: flex;
    }
    
    nav ul.nav-pill li {
        width: 100%;
    }
    
    nav ul.nav-pill li a {
        width: 100%;
        text-align: left;
    }
    
    .book-featured,
    .about-content {
        flex-direction: column;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

