/* Röster från Bohuslän – Design System */
:root {
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 20px 50px rgba(0,0,0,.25);
    --transition: .2s ease;
    --header-h: 72px;
}

[data-theme="dark"] {
    --bg: #0a0f1e;
    --bg-alt: #111827;
    --surface: #151d30;
    --surface-hover: #1c2640;
    --border: rgba(148,163,184,.15);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #a78bfa;
    --accent-2: #38bdf8;
    --accent-glow: rgba(167,139,250,.2);
    --success: #4ade80;
    --error: #f87171;
    --hero-overlay: linear-gradient(180deg, rgba(10,15,30,.3) 0%, rgba(10,15,30,.92) 100%);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --border: rgba(15,23,42,.1);
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #7c3aed;
    --accent-2: #0284c7;
    --accent-glow: rgba(124,58,237,.12);
    --success: #16a34a;
    --error: #dc2626;
    --hero-overlay: linear-gradient(180deg, rgba(248,250,252,.2) 0%, rgba(248,250,252,.95) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 300;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
}
.header-inner {
    min-height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .5rem 0;
}
.brand {
    display: flex; align-items: center; gap: .65rem;
    text-decoration: none; color: var(--text); font-weight: 600;
    min-width: 0; flex: 1;
}
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.brand-text { min-width: 0; line-height: 1.2; }
.brand-text-short { display: none; font-family: var(--font-display); color: var(--accent); letter-spacing: .04em; }
.brand-text-full { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text em { font-family: var(--font-display); font-style: normal; color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn:hover { border-color: var(--accent); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav--mobile { display: none; }
.nav-link {
    padding: .5rem 1rem; border-radius: 999px; text-decoration: none;
    color: var(--text-muted); font-weight: 500; font-size: .92rem; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--accent-glow); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 280;
    pointer-events: none;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { pointer-events: auto; }
.mobile-nav-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .2s ease;
}
.mobile-menu.is-open .mobile-nav-backdrop { opacity: 1; }
.main-nav--mobile {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(320px, 88vw);
    flex-direction: column; align-items: stretch;
    padding: calc(var(--header-h) + 1rem) 1rem 1rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0,0,0,.3);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.mobile-menu.is-open .main-nav--mobile {
    display: flex;
    transform: translateX(0);
}
.main-nav--mobile .nav-link {
    padding: .9rem 1rem; border-radius: 12px; font-size: 1rem;
}

.search-overlay {
    position: fixed; inset: 0; z-index: 320;
    background: rgba(0,0,0,.45);
    display: flex; align-items: flex-start; justify-content: center;
    padding: calc(var(--header-h) + 12px) 1rem 1rem;
}
.search-overlay[hidden] { display: none; }
.search-panel {
    width: min(560px, 100%);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .75rem; box-shadow: var(--shadow);
}
.search-panel-header { display: flex; gap: .5rem; align-items: center; }
.search-panel input {
    flex: 1; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font: inherit;
}
.search-close { font-size: 1.4rem; line-height: 1; }
.search-results { margin-top: .5rem; max-height: min(50vh, 360px); overflow-y: auto; }
.search-result {
    display: block; padding: .65rem; border-radius: 8px; text-decoration: none; color: var(--text);
}
.search-result:hover { background: var(--surface-hover); }
.search-result small { color: var(--text-muted); display: block; }

@media (min-width: 901px) {
    .main-nav--desktop {
        position: absolute; left: 50%; transform: translateX(-50%);
        top: 50%; margin-top: -18px;
    }
    .header-inner { position: relative; }
    .nav-toggle, .mobile-menu { display: none !important; }
}

body.nav-open,
body.search-open { overflow: hidden; position: fixed; width: 100%; }

/* Hero */
.hero-section {
    position: relative; min-height: 75vh; display: flex; align-items: flex-end;
    padding: 4rem 0 3rem; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.02);
}
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; padding: .35rem .85rem; border-radius: 999px;
    background: var(--accent-glow); border: 1px solid var(--border);
    font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
    color: var(--accent); margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1; margin: 0 0 1rem; max-width: 14ch;
}
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.podcast-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.podcast-badge {
    width: 48px; height: 48px; padding: 8px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
}
.podcast-badge img { width: 100%; height: 100%; object-fit: contain; }

.listen-section { padding: 0 0 3.5rem; margin-top: -1.5rem; position: relative; z-index: 2; }
.listen-card {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
    box-shadow: var(--shadow);
}
.listen-badge {
    display: inline-block; margin-bottom: .65rem;
    padding: .3rem .75rem; border-radius: 999px;
    background: var(--accent-glow); border: 1px solid var(--border);
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent);
}
.listen-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5rem; line-height: 1.15; }
.listen-lead { margin: 0; color: var(--text-muted); max-width: 36ch; }
.podcast-platform-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem;
}
.podcast-platform {
    display: flex; align-items: center; gap: .85rem;
    padding: .9rem 1rem; border-radius: 16px;
    background: var(--bg); border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.podcast-platform:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.podcast-platform.is-static { opacity: .92; }
.podcast-platform img {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 12px; object-fit: contain;
    background: color-mix(in srgb, var(--surface-hover) 80%, transparent);
    padding: 6px;
}
.podcast-platform span { font-weight: 600; font-size: .92rem; line-height: 1.25; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 1rem;
}
.section-intro, .page-lead { color: var(--text-muted); max-width: 60ch; }
.section-header-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-hero { padding: 3rem 0 1rem; border-bottom: 1px solid var(--border); }
.page-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .75rem 1.25rem; border-radius: 999px; border: none;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-small { padding: .45rem .9rem; font-size: .85rem; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.text-muted { color: var(--text-muted); font-size: .92rem; }

/* Cards */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.prose p { color: var(--text-muted); }
.trailer-card, .featured-episode, .host-card, .episode-card, .cta-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.trailer-card { padding: 1.5rem; }
.video-aspect, .modal-video-aspect {
    position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000;
}
.video-aspect iframe, .modal-video-aspect iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.featured-episode {
    display: grid; grid-template-columns: 280px 1fr; gap: 0; overflow: hidden; cursor: pointer;
}
.featured-thumb { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.featured-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.featured-body .episode-badge { margin-bottom: .25rem; }
.featured-body h3 { margin: 0 0 .2rem; line-height: 1.2; }
.featured-body .text-muted { margin: 0 0 1rem; }
.episode-badge {
    display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    font-weight: 700; color: var(--accent); margin-bottom: .5rem;
}
.episode-badge.muted { color: var(--text-muted); }
.episode-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.episode-card-mini {
    display: flex; gap: 1rem; padding: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.episode-card-mini img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.episode-card-mini > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.episode-card-mini .episode-badge { margin-bottom: .2rem; }
.episode-card-mini h3 { margin: 0 0 .15rem; line-height: 1.2; font-size: 1rem; }
.episode-card-mini .text-muted { margin: 0; font-size: .85rem; }

/* Hosts */
.hosts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.host-card { display: flex; gap: 1.25rem; padding: 1.5rem; }
.host-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--accent-glow); }
.host-role { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0 0 .5rem; }
.host-bio { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Episodes grid */
.season-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.season-tab {
    padding: .55rem 1.1rem; border-radius: 999px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-weight: 600;
}
.season-tab.active, .season-tab:hover { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.episode-card { overflow: hidden; transition: var(--transition); }
.episode-card:not(.locked) { cursor: pointer; }
.episode-card:hover:not(.locked) { transform: translateY(-3px); border-color: var(--accent); }
.episode-thumb-wrap { position: relative; aspect-ratio: 1; }
.episode-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.episode-status {
    position: absolute; bottom: 10px; left: 10px; padding: .2rem .55rem; border-radius: 999px;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.episode-status.published { background: rgba(34,197,94,.9); color: #fff; }
.episode-status.soon { background: rgba(245,158,11,.9); color: #fff; }
.episode-body { padding: 1.1rem; }
.episode-body h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.episode-card.locked { opacity: .85; }

.episode-card.episode-highlight {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow);
    animation: episodePulse 1.2s ease;
}

@keyframes episodePulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.recaptcha-notice {
    margin-top: 1rem;
    font-size: .78rem;
    color: var(--text-muted);
}

.recaptcha-notice a { color: var(--text-muted); }

/* CTA */
.cta-section { padding-bottom: 5rem; }
.cta-card { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface))); }

/* Form */
.form-container { max-width: 720px; }
.suggest-form fieldset { border: none; padding: 0; margin: 0 0 2rem; }
.suggest-form legend { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: .35rem; font-size: .88rem; color: var(--text-muted); }
.form-field input, .form-field textarea {
    width: 100%; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit;
}
.alert { padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border: 1px solid var(--success); }
.alert-error { background: color-mix(in srgb, var(--error) 12%, var(--surface)); border: 1px solid var(--error); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { width: 56px; margin-bottom: .75rem; }
.footer-tagline { color: var(--text-muted); font-size: .92rem; max-width: 28ch; }
.footer-links h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 .75rem; }
.footer-links a { display: block; color: var(--text); text-decoration: none; margin-bottom: .4rem; font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; }
.footer-bottom p { margin: 0 0 .35rem; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-credit a { color: var(--text-muted); text-decoration: none; }
.footer-credit a:hover { color: var(--accent); text-decoration: underline; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.modal-content {
    position: relative; z-index: 2; width: min(900px, calc(100% - 2rem));
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem; box-shadow: var(--shadow);
}
.modal-close {
    position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px;
    border-radius: 50%; border: none; background: var(--bg); color: var(--text); font-size: 1.4rem; cursor: pointer;
}
.modal-title { margin: 0 0 .25rem; font-size: 1.2rem; }
.modal-date { color: var(--text-muted); font-size: .88rem; margin: 0 0 1rem; }

/* Responsive */
@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .container { width: min(1140px, 100% - 2.5rem); }
    .header-inner { padding: .65rem 0; }
    .main-nav--desktop { display: none; }
    .nav-toggle { display: inline-flex; }
    .brand-text-full { display: none; }
    .brand-text-short { display: inline; font-size: 1rem; }
    .split-section, .featured-episode, .footer-grid { grid-template-columns: 1fr; }
    .featured-episode { grid-template-columns: 1fr; }
    .hero-section { min-height: 62vh; padding: 3rem 0 2.5rem; }
    .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .hero-lead { font-size: 1rem; margin-bottom: 1.75rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: .85rem; }
    .hero-actions .btn { width: 100%; }
    .section { padding: 3rem 0; }
    .section-header-row { margin-bottom: 1.75rem; }
    .page-hero { padding: 2.5rem 0 1rem; }
    .trailer-card { padding: 1.25rem; }
    .host-card { padding: 1.5rem; }
    .episode-card-mini { padding: 1.15rem; }
    .season-tabs { gap: .5rem; margin-bottom: 1.75rem; }
    .season-tab { font-size: .88rem; padding: .55rem .95rem; }
    .episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .episode-body { padding: .9rem; }
    .episode-body h3 { font-size: .88rem; line-height: 1.3; }
    .episode-body .text-muted { font-size: .75rem; }
    .episode-body .btn-small { width: 100%; padding: .45rem .6rem; font-size: .75rem; }
    .episode-badge { font-size: .62rem; }
    .episode-status { font-size: .58rem; padding: .15rem .4rem; bottom: 6px; left: 6px; right: 6px; }
    .episode-row { grid-template-columns: 1fr; gap: 1rem; }
    .cta-card { padding: 2.25rem 1.5rem; }
    .cta-section { padding-bottom: 4rem; }
    .site-footer { padding: 3rem 0 2rem; }
    .footer-grid { gap: 1.75rem; }
    .suggest-form fieldset { margin-bottom: 2.25rem; }
    .form-field input, .form-field textarea { padding: .8rem 1rem; }
    .search-overlay { padding: calc(var(--header-h) + 16px) 1.25rem 1.25rem; }
    .search-panel { padding: 1rem; }
    .main-nav--mobile { padding: calc(var(--header-h) + 1.25rem) 1.25rem 1.25rem; }
}
@media (max-width: 600px) {
    .container { width: min(1140px, 100% - 2rem); }
    .form-grid { grid-template-columns: 1fr; }
    .host-card { flex-direction: column; text-align: center; align-items: center; padding: 1.75rem 1.25rem; }
    .featured-body { padding: 1.5rem; }
    .modal-content { padding: 1.25rem; width: calc(100% - 1.5rem); }
    .podcast-badges { justify-content: center; }
    .listen-section { margin-top: 0; padding-bottom: 2.5rem; }
    .listen-card { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.35rem; }
    .podcast-platform-grid { grid-template-columns: 1fr; }
    .alert { padding: 1.35rem; }
}
