/* papers.audio - Dark Mode Stylesheet */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #10b981;
    --accent-dim: #059669;
    --border: #222222;
    --border-light: #333333;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Episode Card */
.episode-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.episode-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.episode-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.episode-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.separator {
    color: var(--text-muted);
}

/* Audio Player */
.player {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.play-btn svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
}

.progress-container {
    flex: 1;
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

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

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Episode Description */
.episode-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.episode-description p {
    margin-bottom: 0.75rem;
}

.episode-description p:last-child {
    margin-bottom: 0;
}

/* Subscribe Section */
.subscribe {
    text-align: center;
    margin-bottom: 3rem;
}

.subscribe h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscribe-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}

.subscribe-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

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

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.footer a:hover {
    color: var(--accent);
}

/* Loading State */
.loading {
    opacity: 0.5;
}

/* Error State */
.error {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .episode-title {
        font-size: 1.1rem;
    }

    .player-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .play-btn {
        align-self: center;
        margin-bottom: 0.5rem;
    }

    .subscribe-links {
        flex-direction: column;
    }

    .subscribe-btn {
        justify-content: center;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading .episode-title,
.loading .episode-meta,
.loading .episode-description {
    animation: pulse 2s ease-in-out infinite;
}
