/* Happy Viber Podcast - Styles */
:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeeb;
    --color-text: #2d2a26;
    --color-text-muted: #6b6560;
    --color-accent: #1a7f72;
    --color-accent-hover: #146b60;
    --color-accent-light: #e8f4f2;
    --color-warm: #e07b53;
    --color-warm-light: #fdf0eb;
    --color-border: #e0ddd8;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(45, 42, 38, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 42, 38, 0.1);
    --shadow-lg: 0 8px 30px rgba(45, 42, 38, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

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

.logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #2a9d8f 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -1px;
}

.logo-mark.small {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.brand-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.brand-text .tagline {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-text);
}

.subscribe-btn {
    background: var(--color-accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: var(--color-accent-hover);
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-warm-light);
    color: var(--color-warm);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: var(--color-text);
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin: 0 0 32px 0;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text);
}

/* Waveform Animation */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 200px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.waveform span {
    width: 8px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-warm) 100%);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 70%; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 100%; animation-delay: 0.6s; }
.waveform span:nth-child(8) { height: 70%; animation-delay: 0.7s; }
.waveform span:nth-child(9) { height: 50%; animation-delay: 0.8s; }
.waveform span:nth-child(10) { height: 80%; animation-delay: 0.9s; }
.waveform span:nth-child(11) { height: 60%; animation-delay: 1s; }
.waveform span:nth-child(12) { height: 90%; animation-delay: 1.1s; }
.waveform span:nth-child(13) { height: 40%; animation-delay: 0.15s; }
.waveform span:nth-child(14) { height: 70%; animation-delay: 0.25s; }
.waveform span:nth-child(15) { height: 55%; animation-delay: 0.35s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Latest Episode */
.latest-episode {
    padding: 80px 0;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.episode-featured {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

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

.episode-number {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.episode-meta time {
    color: var(--color-text-muted);
    font-size: 14px;
}

.episode-featured h3 {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.episode-description {
    font-size: 17px;
    color: var(--color-text-muted);
    margin: 0 0 32px 0;
    line-height: 1.7;
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-bg-alt);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.play-btn .icon-pause {
    display: none;
}

.play-btn.playing .icon-play {
    display: none;
}

.play-btn.playing .icon-pause {
    display: block;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.progress-container {
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.speed-btn, .volume-btn {
    background: white;
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.speed-btn:hover, .volume-btn:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.volume-btn {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn svg {
    width: 18px;
    height: 18px;
}

.episode-links {
    display: flex;
    gap: 16px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.download-link:hover {
    color: var(--color-accent);
}

/* Featured Project Link */
.episode-project {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.project-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.project-link:hover {
    border-color: var(--color-text);
    background: white;
    transform: translateX(4px);
}

.project-link > svg:first-child {
    color: var(--color-text);
    flex-shrink: 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.project-desc {
    font-size: 13px;
    color: var(--color-text-muted);
}

.project-arrow {
    color: var(--color-text-muted);
    margin-left: auto;
    transition: transform 0.2s;
}

.project-link:hover .project-arrow {
    transform: translateX(4px);
    color: var(--color-accent);
}

/* Episodes List */
.episodes-list {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 0 0 40px 0;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.episode-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

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

.episode-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.episode-card .episode-number {
    background: var(--color-warm-light);
    color: var(--color-warm);
    font-size: 12px;
    padding: 4px 10px;
}

.episode-card time {
    font-size: 13px;
    color: var(--color-text-muted);
}

.episode-card h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.episode-card p {
    margin: 0 0 20px 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.episode-card-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.episode-card-play:hover {
    color: var(--color-accent-hover);
}

.episode-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.episode-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    padding-left: 12px;
    border-left: 1px solid var(--color-border);
}

.episode-card-link:hover {
    color: var(--color-text);
}

/* About */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 680px;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 0 0 24px 0;
}

.about p {
    font-size: 17px;
    color: var(--color-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.subscribe-options {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.subscribe-options h3 {
    font-size: 18px;
    margin: 0 0 20px 0;
}

.subscribe-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.subscribe-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.2s;
}

.subscribe-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.subscribe-link svg {
    color: var(--color-warm);
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    background: rgba(255, 255, 255, 0.15);
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 16px;
    }

    .main-nav {
        gap: 20px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero-visual {
        order: -1;
    }

    .waveform {
        width: 100%;
        max-width: 300px;
        height: 120px;
        padding: 24px;
    }

    .episode-featured {
        padding: 28px;
    }

    .episode-featured h3 {
        font-size: 24px;
    }

    .audio-player {
        flex-wrap: wrap;
    }

    .player-info {
        order: 3;
        width: 100%;
    }

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