/* Radio Website Builder — publieke site */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--site-bg, #f8fafc);
    color: var(--site-text, #0f172a);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent, #e11d48); }
h1, h2, h3 { line-height: 1.2; }

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

/* ---------- Aankondigingsbalk ---------- */
.announcement { background: var(--a-bg); color: var(--a-text); font-size: .95rem; }
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .55rem 1.25rem; }
.announcement a, .announcement span { color: inherit; font-weight: 600; text-decoration: none; }
.announcement a:hover { text-decoration: underline; }
.announcement-close { background: none; border: 0; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 .25rem; opacity: .7; }
.announcement-close:hover { opacity: 1; }

/* ---------- Navigatiebalk ---------- */
.navbar { background: var(--nav-bg); color: var(--nav-text); position: relative; }
.navbar--sticky { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }
.navbar--sm .navbar-inner { min-height: 48px; }
.navbar--md .navbar-inner { min-height: 64px; }
.navbar--lg .navbar-inner { min-height: 84px; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.15rem; padding: .4rem 0; }
.navbar--sm .navbar-brand img { max-height: 34px; }
.navbar--md .navbar-brand img { max-height: 46px; }
.navbar--lg .navbar-brand img { max-height: 64px; }
.navbar-links { display: flex; gap: .25rem; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.navbar-links a { color: inherit; text-decoration: none; padding: .45rem .8rem; border-radius: 8px; font-weight: 500; opacity: .9; white-space: nowrap; }
.navbar-links a:hover { background: rgba(255,255,255,.12); opacity: 1; }

/* Hamburger-menu: verschijnt automatisch zodra de menu-items niet meer passen */
.navbar-burger { display: none; background: none; border: 0; cursor: pointer; color: inherit; padding: .6rem .4rem; flex-direction: column; gap: 5px; }
.navbar-burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.navbar--collapsed .navbar-burger { display: flex; }
.navbar--collapsed .navbar-links { display: none; }
/* Geopend menu hangt als overlay onder de balk: de balk zelf verandert niet van maat,
   dus logo en knoppen blijven pixel-vast staan */
.navbar--collapsed.navbar--open .navbar-links {
    display: flex; flex-direction: column; gap: .1rem;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    background: var(--nav-bg);
    padding: .35rem 1.25rem 1rem;
    overflow: visible;
    box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.navbar--collapsed.navbar--open .navbar-links a { padding: .65rem .8rem; }
.navbar--open .navbar-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar--open .navbar-burger span:nth-child(2) { opacity: 0; }
.navbar--open .navbar-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero / header ---------- */
.hero { position: relative; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--hero-text, #fff); }
.hero--sm { min-height: 38vh; }
.hero--md { min-height: 55vh; }
.hero--lg { min-height: 78vh; }
.hero--overlay::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero-inner { position: relative; width: 100%; padding-top: 3rem; padding-bottom: 3rem; }
.hero--left .hero-inner { text-align: left; }
.hero--center .hero-inner { text-align: center; }
.hero--right .hero-inner { text-align: right; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .5rem; }
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin: 0 0 1.5rem; opacity: .92; }
.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero--center .hero-buttons { justify-content: center; }
.hero--right .hero-buttons { justify-content: flex-end; }

.btn { display: inline-block; padding: .7rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .1s, opacity .15s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--outline { border: 2px solid currentColor; color: inherit; }
.btn--ghost { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Secties algemeen ---------- */
.rw-section { padding: 3.5rem 0; }
.section-title { font-size: 1.7rem; margin: 0 0 1.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
.section-placeholder { background: rgba(0,0,0,.05); border: 1px dashed rgba(0,0,0,.2); border-radius: 12px; padding: 2rem; text-align: center; opacity: .75; }
.page-title { font-size: 2.2rem; margin: 0 0 .5rem; }
.page-section { padding-top: 2.5rem; }

/* ---------- Player ---------- */
.player { display: flex; align-items: center; gap: 1rem; background: var(--p-bg); color: var(--p-text); border-radius: 16px; padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.player--full .player-art { width: 84px; height: 84px; }
.player--compact { padding: .6rem .9rem; gap: .75rem; }
.player--compact .player-art { width: 52px; height: 52px; }
.player-art { border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #334155; }
.player-info { flex: 1; min-width: 0; }
.player-live { color: var(--p-accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.player-song { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player--compact .player-song { font-size: .95rem; }
.player-artist { opacity: .8; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-listeners { font-size: .8rem; opacity: .7; margin-top: .2rem; }
.player-controls { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.player-volume { display: flex; align-items: center; gap: .35rem; opacity: .85; }
.player-volume svg { width: 20px; height: 20px; flex-shrink: 0; }
.player-volume input[type=range] { width: 90px; accent-color: var(--p-accent); cursor: pointer; }
.player--compact .player-volume input[type=range] { width: 70px; }
@media (max-width: 560px) { .player-volume { display: none; } }
.player-toggle { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--p-accent); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: transform .1s; }
.player-toggle:hover:not(:disabled) { transform: scale(1.06); }
.player-toggle:disabled { opacity: .5; cursor: default; }
.player-toggle svg { width: 26px; height: 26px; }
.player--compact .player-toggle { width: 44px; height: 44px; }

.player--sticky { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 0; z-index: 60; }
body.has-player-sticky main { padding-bottom: 110px; }
body.has-player-sticky .site-footer { padding-bottom: 120px; }
.player--floating { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; max-width: 360px; width: calc(100% - 2.5rem); }

/* ---------- Nieuws ---------- */
.news-grid { display: grid; gap: 1.5rem; }
.news-grid--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-grid--list { grid-template-columns: 1fr; }
.news-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 16px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.news-grid--list .news-card { flex-direction: row; }
.news-grid--list .news-card-image { width: 260px; flex-shrink: 0; }
.news-card-image img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; aspect-ratio: 16/9; }
.news-grid--list .news-card-image img { aspect-ratio: auto; }
.news-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.news-card-body time { font-size: .8rem; opacity: .6; text-transform: uppercase; letter-spacing: .04em; }
.news-card-body h3 { margin: .35rem 0 .4rem; font-size: 1.15rem; }
.news-card-body h3 a { color: inherit; text-decoration: none; }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-body p { margin: 0; font-size: .93rem; opacity: .8; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a { padding: .4rem .85rem; border-radius: 8px; text-decoration: none; background: rgba(0,0,0,.06); color: inherit; }
.pagination a.active { background: var(--accent); color: #fff; }

/* ---------- Artikel ---------- */
.article--narrow .article-container { max-width: 720px; }
.article-back a { text-decoration: none; font-weight: 600; }
.article-date { display: block; opacity: .6; margin-bottom: 1.5rem; }
.article-hero { width: 100%; border-radius: 16px; margin-bottom: 2rem; max-height: 480px; object-fit: cover; }
.article-body { font-size: 1.05rem; }
.article-body img { border-radius: 12px; margin: 1.5rem 0; }
.article-body blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; opacity: .85; }

/* ---------- Chat ---------- */
.chat-card { display: grid; grid-template-columns: 1fr 220px; background: #fff; border-radius: 16px; box-shadow: 0 3px 16px rgba(0,0,0,.08); overflow: hidden; min-height: 460px; }
.chat-main { display: flex; flex-direction: column; padding: 1rem 1.25rem; min-width: 0; }
.chat-older { text-align: center; }
.chat-older button { background: none; border: 0; color: var(--c-accent); font-weight: 600; cursor: pointer; padding: .35rem .75rem; font-size: .85rem; }
.chat-older button:hover { text-decoration: underline; }
.chat-messages { flex: 1; overflow-y: auto; max-height: 420px; padding: .5rem 0; display: flex; flex-direction: column; gap: .45rem; }
.chat-empty { opacity: .55; text-align: center; margin-top: 2rem; }
.chat-msg { font-size: .95rem; overflow-wrap: break-word; }
.chat-msg--old { opacity: .6; }
.chat-msg .chat-msg-user { font-weight: 700; }
.chat-msg .chat-msg-time { font-size: .72rem; opacity: .5; margin-left: .4rem; }
.chat-day-divider { text-align: center; font-size: .75rem; opacity: .5; margin: .5rem 0; text-transform: uppercase; letter-spacing: .05em; }
.chat-auth { border-top: 1px solid rgba(0,0,0,.08); padding-top: .9rem; }
.chat-auth-tabs { display: flex; gap: .35rem; margin-bottom: .7rem; }
.chat-auth-tabs button { background: rgba(0,0,0,.05); border: 0; border-radius: 8px; padding: .4rem .8rem; cursor: pointer; font-size: .85rem; font-weight: 600; }
.chat-auth-tabs button.active { background: var(--c-accent); color: #fff; }
.chat-auth form { display: flex; gap: .5rem; flex-wrap: wrap; }
.chat-auth input { flex: 1; min-width: 140px; padding: .55rem .8rem; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; font-size: .95rem; }
.chat-auth button[type=submit] { background: var(--c-accent); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1.1rem; font-weight: 600; cursor: pointer; }
.chat-form { display: flex; gap: .5rem; align-items: center; border-top: 1px solid rgba(0,0,0,.08); padding-top: .9rem; }
.chat-you { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.chat-form input { flex: 1; padding: .55rem .8rem; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; font-size: .95rem; min-width: 0; }
.chat-form button[type=submit] { background: var(--c-accent); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.chat-leave { background: none; border: 0; color: inherit; opacity: .55; cursor: pointer; font-size: .8rem; }
.chat-leave:hover { opacity: 1; }
.chat-error { color: #b91c1c; font-size: .85rem; margin: .5rem 0 0; }
.chat-online { background: rgba(0,0,0,.03); border-left: 1px solid rgba(0,0,0,.07); padding: 1rem 1.1rem; }
.chat-online h3 { margin: 0 0 .75rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.chat-online ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.chat-online li { font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.chat-online li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.chat-online .guest-tag { font-size: .7rem; opacity: .5; }

/* ---------- Fotocollage ---------- */
.collage--grid { display: grid; grid-template-columns: repeat(var(--col-count, 3), 1fr); gap: var(--col-gap, 1rem); }
.collage--masonry { column-count: var(--col-count, 3); column-gap: var(--col-gap, 1rem); }
.collage--masonry .collage-item { break-inside: avoid; margin-bottom: var(--col-gap, 1rem); }
.collage--carousel { display: flex; gap: var(--col-gap, 1rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.collage--carousel .collage-item { flex: 0 0 min(340px, 80vw); scroll-snap-align: start; }
.collage-item { margin: 0; position: relative; }
.collage-item img { width: 100%; border-radius: var(--col-round, 14px); cursor: pointer; object-fit: cover; transition: transform .15s; }
.collage--grid .collage-item img { aspect-ratio: 1; }
.collage--carousel .collage-item img { aspect-ratio: 4/3; }
.collage-item img:hover { transform: scale(1.02); }
.collage-item figcaption { font-size: .82rem; opacity: .7; margin-top: .35rem; }
.collage-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .75rem; }
.collage-nav button { background: var(--accent); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #cbd5e1; margin-top: .75rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Embeds ---------- */
.az-embed { width: 100%; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 16px rgba(0,0,0,.08); }

/* ---------- Footer ---------- */
.site-footer { padding: 2rem 0; text-align: center; font-size: .85rem; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .chat-card { grid-template-columns: 1fr; }
    .chat-online { border-left: 0; border-top: 1px solid rgba(0,0,0,.07); }
    .chat-online ul { flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
    .collage--grid, .collage--masonry { --col-count: 2; }
    .news-grid--list .news-card { flex-direction: column; }
    .news-grid--list .news-card-image { width: 100%; }
    .player--floating { max-width: none; }
}
