/* ==========================================================
   Ancient Wisdom Podcast - Main Public Stylesheet (Light Theme)
   ========================================================== */

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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: rgba(180, 133, 24, 0.3);
    --border-subtle: #e2e8f0;

    --gold-primary: #b48518;
    --gold-light: #92640e;
    --gold-dark: #78350f;
    --gold-glow: rgba(180, 133, 24, 0.18);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 0 25px rgba(180, 133, 24, 0.2);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(219, 234, 254, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    letter-spacing: 0.03em;
}

.btn-primary {
    background: linear-gradient(135deg, #b48518, #92640e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(180, 133, 24, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c9971e, #a37213);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(180, 133, 24, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: #ffffff;
    color: var(--gold-dark);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.site-header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(180, 133, 24, 0.1);
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Flash Alerts */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.flash-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(180, 133, 24, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-badge svg {
    color: var(--gold-primary);
}

.hero-title {
    margin-bottom: 20px;
    line-height: 1.18;
}

.hero-title span {
    background: linear-gradient(135deg, #0f172a 20%, #b48518 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 36px;
}

.platform-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.platform-pill:hover {
    background: rgba(180, 133, 24, 0.12);
    border-color: var(--border-color);
    color: var(--gold-dark);
}

/* Featured Episode Box */
.featured-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.featured-card:hover {
    border-color: rgba(180, 133, 24, 0.5);
    box-shadow: var(--shadow-gold);
}

.featured-cover-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-sm);
}

.featured-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-cover {
    transform: scale(1.04);
}

.play-overlay-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #b48518;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform var(--transition-smooth), background var(--transition-fast);
}

.play-overlay-btn:hover {
    transform: scale(1.1);
    background: #92640e;
}

.episode-meta-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.category-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    text-decoration: none;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--border-color);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(180, 133, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.category-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.episode-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.episode-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ep-cover-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ep-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.episode-card:hover .ep-cover {
    transform: scale(1.05);
}

.ep-duration-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ep-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ep-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ep-title {
    font-size: 1.22rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.ep-title a {
    color: var(--text-primary);
}

.ep-title a:hover {
    color: var(--gold-primary);
}

.ep-summary {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.ep-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-play-trigger {
    background: rgba(180, 133, 24, 0.08);
    border: 1px solid var(--border-color);
    color: var(--gold-dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-play-trigger:hover {
    background: var(--gold-primary);
    color: #ffffff;
    border-color: var(--gold-primary);
}

/* Episode Detail Page */
.episode-single {
    padding: 50px 0 100px;
}

.ep-single-header {
    margin-bottom: 40px;
}

.ep-single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.ep-hero-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.ep-article {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-bottom: 30px;
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
}

.ep-article h3 {
    margin: 28px 0 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.ep-article ul, .ep-article ol {
    margin: 16px 0 20px 24px;
    color: var(--text-secondary);
}

.ep-article li {
    margin-bottom: 8px;
}

.ep-article blockquote {
    border-left: 4px solid var(--gold-primary);
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-primary);
}

.tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tab-btn.active {
    color: var(--gold-dark);
    background: rgba(180, 133, 24, 0.12);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter & Search Bar */
.filter-bar {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    flex-grow: 1;
    max-width: 420px;
}

.search-input-wrap input {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.search-input-wrap input::placeholder {
    color: var(--text-muted);
}

.category-select {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    outline: none;
    font-family: var(--font-body);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(180, 133, 24, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* About & Contact Cards */
.about-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.host-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.host-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.host-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter Section */
.newsletter-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
    box-shadow: var(--shadow-sm);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(180, 133, 24, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-box h3 {
    color: var(--text-primary);
}

.newsletter-box p {
    color: var(--text-secondary);
}

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

.newsletter-form input {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: var(--text-primary);
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--gold-primary);
}

/* Footer */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 120px; /* bottom pad for sticky audio player */
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .ep-single-grid {
        grid-template-columns: 1fr;
    }
    .host-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input-wrap {
        max-width: 100%;
    }
}
