/* ===================================
   History of Methodism - Main Styles
   Brighter/Cleaner Design
   =================================== */

:root {
    --color-ink: #1e293b;
    --color-white: #ffffff;
    --color-off-white: #f8fafc;
    --color-light-gray: #f1f5f9;
    --color-mid-gray: #94a3b8;
    --color-slate: #64748b;
    --color-forest: #166534;
    --color-forest-light: #22c55e;
    --color-forest-pale: #dcfce7;
    --color-navy: #1e3a5f;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-ink);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-light-gray);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-forest);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-ink);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
    padding: 1rem 2rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-ink);
    text-decoration: none;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-forest);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.25);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-ink);
    border: 2px solid var(--color-light-gray);
}

.btn-secondary:hover {
    border-color: var(--color-forest);
    color: var(--color-forest);
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(22, 101, 52, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-forest);
    background: var(--color-forest-pale);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 em {
    font-style: italic;
    color: var(--color-forest);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-slate);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-slate);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.listen-platforms {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-slate);
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.listen-platforms span {
    margin-right: 0.5rem;
}

.listen-platforms a {
    color: var(--color-forest);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 500;
}

.listen-platforms a:hover {
    text-decoration: underline;
}

/* ===================================
   Stats Section
   =================================== */

.stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 4rem 2rem;
    background: var(--color-ink);
    color: var(--color-white);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-forest-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-mid-gray);
    margin-top: 0.5rem;
}

/* ===================================
   Section Styles
   =================================== */

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

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-forest);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-ink);
}

/* ===================================
   Episodes Section
   =================================== */

.episodes {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.episode-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--color-light-gray);
}

.episode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.1);
    border-color: transparent;
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-forest-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.episode-card:hover::before {
    transform: scaleX(1);
}

.episode-content {
    padding: 1.75rem;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.episode-number {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-forest);
    background: var(--color-forest-pale);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.episode-date {
    font-size: 0.85rem;
    color: var(--color-mid-gray);
}

.episode-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.episode-card a {
    text-decoration: none;
    color: inherit;
}

.episode-card a:hover .episode-title {
    color: var(--color-forest);
}

.episode-description {
    font-size: 0.95rem;
    color: var(--color-slate);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-light-gray);
}

.episode-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-slate);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-forest);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.play-btn:hover {
    background: #15803d;
    transform: scale(1.1);
}

.browse-all {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   Timeline Preview
   =================================== */

.timeline-preview {
    background: var(--color-off-white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.timeline-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-description {
    font-size: 1.1rem;
    color: var(--color-slate);
    max-width: 550px;
    margin: 0 auto 3rem;
}

.timeline-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 3rem 0;
    position: relative;
}

.timeline-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--color-forest), transparent);
    max-width: 180px;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.25rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-forest);
    margin-bottom: 0.75rem;
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--color-forest);
    border-radius: 50%;
    opacity: 0.25;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-ink);
}

.timeline-event {
    font-size: 0.8rem;
    color: var(--color-slate);
    margin-top: 0.25rem;
}

/* ===================================
   Start Here Section
   =================================== */

.start-here {
    padding: 6rem 2rem;
    background: var(--color-white);
}

.start-here-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.start-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.start-option {
    background: var(--color-white);
    padding: 2.25rem 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--color-light-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.start-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 41, 59, 0.1);
    border-color: var(--color-forest);
}

.start-option-icon {
    width: 56px;
    height: 56px;
    background: var(--color-forest-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--color-forest);
}

.start-option h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

.start-option p {
    font-size: 0.9rem;
    color: var(--color-slate);
    line-height: 1.6;
}

/* ===================================
   Support Section
   =================================== */

.support {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--color-forest) 0%, #15803d 100%);
    text-align: center;
}

.support-content {
    max-width: 550px;
    margin: 0 auto;
}

.support .section-label {
    color: rgba(255, 255, 255, 0.7);
}

.support h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.support p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.support .btn-primary {
    background: var(--color-white);
    color: var(--color-forest);
}

.support .btn-primary:hover {
    background: var(--color-off-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Footer
   =================================== */

footer {
    background: var(--color-ink);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-mid-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-forest-light);
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--color-mid-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-forest-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-slate);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-forest);
    transform: translateY(-2px);
}

/* ===================================
   Episodes Page Specific
   =================================== */

.page-header {
    padding: 8rem 2rem 4rem;
    background: var(--color-off-white);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 1rem;
}

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

.episodes-archive {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.era-section {
    margin-bottom: 4rem;
}

.era-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-forest-pale);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.episode-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.episode-list-item:hover {
    border-color: var(--color-forest);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
}

.episode-list-item .episode-number {
    flex-shrink: 0;
}

.episode-list-item .episode-info {
    flex: 1;
    min-width: 0;
}

.episode-list-item .episode-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.episode-list-item .episode-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
}

.episode-list-item .episode-date {
    flex-shrink: 0;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .timeline-visual {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-line {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, transparent, var(--color-forest), transparent);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .episode-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .episode-list-item .episode-date {
        align-self: flex-start;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.icon {
    width: 20px;
    height: 20px;
}

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

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
