/* Habbocube: opmaak van de publieke website. Mobile first. Kleuren komen uit het bestaande ontwerp (donkergrijs en limoengroen)
   en uit het logo (regenboog-equalizer). Geen externe lettertypen of scripts. */

:root {
    --ink: #1d3b52;
    --ink-soft: #4f6272;
    --bg: #e3f2f7;
    --panel: #ffffff;
    --dark: #1d3b52;
    --dark-2: #28506e;
    --lime: #f5c400;
    --lime-dark: #0b6b86;
    --line: #c9dfe8;
    --red: #d72022;
    --orange: #f7941d;
    --yellow: #ffd400;
    --green: #8fc415;
    --teal: #00a79d;
    --blue: #2e9fd8;
    --purple: #7b4fa3;
    --radius: 18px;
    --shadow: 0 2px 0 rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .07);
    --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 1.5rem 3rem; }
img { max-width: 100%; height: auto; }
a { color: var(--lime-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-top: .4rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 99; background: var(--lime); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.meta { font-size: .9rem; color: var(--ink-soft); }
.hint { font-size: .9rem; color: var(--ink-soft); }
.more { display: inline-block; margin-top: .25rem; font-weight: 700; }
.plain { list-style: none; padding: 0; }

/* Kop */
.site-header { background: var(--dark); color: #fff; }
.header-grid { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem 1.25rem; align-items: center; padding-block: .75rem; }
.logo { display: block; line-height: 0; }
.logo img { width: 150px; height: auto; border-radius: 8px; background: #fff; padding: 4px 8px; }
.nav-toggle { background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: .55rem 1rem; font: inherit; font-weight: 800; display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; min-height: 44px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 3px; background: currentColor; border-radius: 3px; content: ""; position: relative; }
.nav-toggle__bars::before { top: -6px; position: absolute; }
.nav-toggle__bars::after { top: 6px; position: absolute; }

/* Speler */
.player { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; background: var(--dark-2); border: 2px solid var(--lime); border-radius: var(--radius); padding: .75rem 1rem; }
.player__info { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; min-width: 0; }
.player__badge { background: var(--ink-soft); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .1rem .6rem; }
.player__badge.is-live { background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.player__dj { font-size: 1.1rem; color: var(--lime); }
.player__show { color: #ddd; }
.player__track { flex-basis: 100%; color: #ccc; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__controls { display: flex; align-items: center; gap: .75rem; }
.player__btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.player__btn:disabled { opacity: .45; cursor: not-allowed; }
.player__btn .icon { width: 28px; height: 28px; fill: currentColor; }
.player__btn .icon--pause, .player__btn[aria-pressed="true"] .icon--play { display: none; }
.player__btn[aria-pressed="true"] .icon--pause { display: block; }
.player__volume input { width: 90px; accent-color: var(--lime); }
.player__status { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: #ccc; }
@keyframes pulse { 50% { opacity: .65; } }

/* Menu */
.main-nav { background: #16283a; }
.main-nav ul { display: none; list-style: none; margin: 0 auto; padding: .5rem 0 .75rem; }
.main-nav.is-open ul { display: block; }
.main-nav a, .main-nav summary { display: block; color: #fff; text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .8rem 1rem; border-radius: 12px; cursor: pointer; list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav a:hover, .main-nav summary:hover, .main-nav .is-active { background: var(--lime); color: var(--ink); }
.main-nav .sub { display: block; list-style: none; padding: .25rem 0 .25rem 1rem; margin: 0; }
.main-nav .sub a { text-transform: none; letter-spacing: 0; font-weight: 700; }

.ticker { background: var(--lime); color: var(--ink); font-size: .95rem; }
.ticker .wrap { display: flex; gap: .75rem; align-items: baseline; padding-block: .45rem; }
.ticker strong { background: var(--ink); color: var(--lime); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; padding: .1rem .55rem; border-radius: 999px; flex: none; }

/* Blokken */
.card { background: var(--panel); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card h2 { display: flex; align-items: center; gap: .5rem; }
.card h2::before { content: ""; width: 10px; height: 1.1em; border-radius: 4px; background: linear-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--blue)); flex: none; }
.card--dark { background: var(--dark); color: #fff; }
.card--dark h2 { color: var(--lime); }
.card--dark a { color: var(--lime); }
.card--join { background: linear-gradient(135deg, var(--lime), #ffd84d); }
.card--join h2::before { background: var(--ink); }
.card--spot .spot { display: flex; gap: 1rem; align-items: flex-start; }
.notice { background: #fffbe0; border: 2px solid var(--yellow); border-radius: 14px; padding: .75rem 1rem; }
.notice--ok { background: #fff4c8; border-color: var(--green); color: #20420a; }
.notice--error { background: #ffe9e9; border-color: var(--red); color: #6a1010; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.tag { display: inline-block; background: var(--lime); color: var(--ink); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: .05rem .6rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.4rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--lime:hover { background: #ffd84d; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.is-disabled { opacity: .4; pointer-events: none; }

/* Formulieren */
form label { display: block; font-weight: 700; margin-bottom: .75rem; }
input[type="text"], input[type="email"], input[type="number"], textarea { display: block; width: 100%; margin-top: .25rem; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 2px solid #c9cabf; border-radius: 12px; }
input:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(46 159 216 / .3); }
.card--dark input, .card--dark textarea { border-color: #555; }
.choice { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 600 !important; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--lime-dark); flex: none; }
.card--dark .hint { color: #bbb; }
.form { max-width: 620px; }

/* Tabs voor shout en request */
.tabs__list { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tabs__list button { flex: 1; padding: .6rem; border: 2px solid var(--lime); border-radius: 999px; background: transparent; color: var(--lime); font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; }
.tabs__list button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.tabs__panel[hidden] { display: none; }

/* Home */
.home-grid, .page-grid { display: grid; gap: 1.25rem; }
.two-col { display: grid; gap: 1.25rem; }
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; background: var(--dark); box-shadow: var(--shadow); }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.hero__slide--0 { background: linear-gradient(135deg, #16283a, #3b5a00); }
.hero__slide--1 { background: linear-gradient(135deg, #16283a, #12466b); }
.hero__slide--2 { background: linear-gradient(135deg, #16283a, #6a1f4a); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__text { position: relative; padding: 1.5rem 1.25rem 3.5rem; max-width: 720px; }
.hero__text h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); }
.hero__text h2::before { display: none; }
.hero__text a:not(.btn) { color: #fff; text-decoration: none; }
.hero__nav { position: absolute; right: 1rem; bottom: .75rem; display: flex; align-items: center; gap: .5rem; z-index: 2; }
.hero__nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hero__dots { display: flex; gap: .35rem; }
.hero__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .45); }
.hero__dots i.is-active { background: var(--lime); }
.hero .eq--hero { position: absolute; left: 1.25rem; bottom: .75rem; height: 28px; z-index: 1; opacity: .9; }

.news-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.news-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list h3 { margin: 0 0 .25rem; }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--lime-dark); text-decoration: underline; }
.news-list p { margin: 0 0 .25rem; color: var(--ink-soft); }

.slots { list-style: none; margin: 0 0 .5rem; padding: 0; }
.slots li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .5rem; align-items: center; padding: .6rem .75rem; border-left: 6px solid var(--show-color, var(--lime)); border-radius: 10px; margin-bottom: .4rem; background: #f1f7fa; }
.slots li.is-now { background: #fff1b8; }
.slots time { font-weight: 800; font-variant-numeric: tabular-nums; }
.slots strong a { color: var(--ink); text-decoration: none; }
.slots span { display: block; font-size: .9rem; color: var(--ink-soft); }
.slots em { font-style: normal; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; border-radius: 999px; padding: .1rem .55rem; }

.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--letter { display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--green)); color: var(--ink); font-size: 1.8rem; font-weight: 900; }

.wall { list-style: none; padding: 0; margin: 0; }
.wall li { padding: .55rem .75rem; background: #f1f7fa; border-radius: 12px; margin-bottom: .45rem; overflow-wrap: anywhere; }

.poll-form .btn { margin-top: .5rem; }
.poll-results { list-style: none; padding: 0; }
.poll-results li { margin-bottom: .75rem; }
.bar { display: block; height: 12px; border-radius: 999px; background: #c9dfe8; overflow: hidden; margin-top: .25rem; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--lime)); border-radius: 999px; }

.event { display: flex; gap: .9rem; align-items: center; margin-bottom: .75rem; }
.event time { flex: none; width: 56px; text-align: center; background: var(--dark); color: var(--lime); border-radius: 12px; padding: .35rem 0; text-transform: uppercase; font-size: .75rem; font-weight: 800; }
.event time b { display: block; font-size: 1.4rem; line-height: 1.1; color: #fff; }
.event span { display: block; font-size: .9rem; color: var(--ink-soft); }
.event--big h2::before { display: none; }

.grid { display: grid; gap: 1.25rem; }
.news-card img { border-radius: 12px; margin-bottom: .75rem; }
.news-card h2::before, .dj-card h2::before, .show-card h2::before, .partner h2::before { display: none; }
.dj-card { text-align: center; }
.dj-card .avatar { width: 96px; height: 96px; margin: 0 auto .5rem; font-size: 2.4rem; display: grid; }
.dj-head { display: flex; gap: 1rem; align-items: center; }
.dj-head .avatar { width: 96px; height: 96px; font-size: 2.4rem; }
.show-card { border-top: 8px solid var(--show-color, var(--lime)); }
.show-head { border-left: 10px solid var(--show-color, var(--lime)); }
.show-head h1 { margin-bottom: .25rem; }

.week { display: grid; gap: 1rem; }
.week .is-today { outline: 3px solid var(--lime); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chips a { text-decoration: none; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: .35rem 1rem; font-weight: 700; }
.chips a.is-active, .chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.pager__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.pager__info { color: var(--ink-soft); font-size: .9rem; }

.prose { font-size: 1.1rem; }
.prose h1 { margin-bottom: .5rem; }
.prose__img { border-radius: var(--radius); margin: 1rem 0; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 1rem 1.25rem; }
.faq details p { padding: 0 1.25rem 1rem; margin: 0; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .4rem; }
.partner img { margin-bottom: .5rem; }

/* Equalizer (versiering) */
.eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 36px; }
.eq i { width: 8px; border-radius: 4px 4px 0 0; animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(1) { background: var(--red); height: 40%; animation-delay: -.2s; }
.eq i:nth-child(2) { background: var(--orange); height: 70%; animation-delay: -.5s; }
.eq i:nth-child(3) { background: var(--yellow); height: 100%; animation-delay: -.8s; }
.eq i:nth-child(4) { background: var(--green); height: 60%; animation-delay: -.1s; }
.eq i:nth-child(5) { background: var(--teal); height: 85%; animation-delay: -.6s; }
.eq i:nth-child(6) { background: var(--blue); height: 50%; animation-delay: -.3s; }
.eq i:nth-child(7) { background: var(--purple); height: 75%; animation-delay: -.9s; }
.eq i:nth-child(8) { background: var(--red); height: 45%; animation-delay: -.4s; }
.eq i:nth-child(9) { background: var(--orange); height: 65%; animation-delay: -.7s; }
.eq--small { height: 24px; }
@keyframes eq { 50% { transform: scaleY(.45); transform-origin: bottom; } }

/* Voet */
.site-footer { background: var(--dark); color: #d6d6d6; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; padding-block: 2rem; }
.site-footer h2 { color: var(--lime); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #fff; text-decoration: none; display: inline-block; padding: .15rem 0; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom { background: #16283a; padding-block: .8rem; font-size: .9rem; }

/* Groter scherm */
@media (min-width: 720px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr 1fr; }
    .week { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .logo img { width: 190px; }
}
@media (min-width: 980px) {
    .header-grid { grid-template-columns: auto 1fr; }
    .player { grid-column: auto; order: 0; }
    .nav-toggle { display: none; }
    .main-nav ul { display: flex; gap: .25rem; padding: .35rem 0; }
    .main-nav .has-sub { position: relative; }
    .main-nav .sub { display: block; position: absolute; right: 0; top: 100%; z-index: 20; min-width: 270px; background: #16283a; border-radius: 14px; padding: .5rem; box-shadow: 0 12px 30px rgb(0 0 0 / .35); }
    .main-nav details:not([open]) .sub { display: none; }
    .home-grid { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; }
    .page-grid { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .week { grid-template-columns: repeat(3, 1fr); }
    .hero__slide { min-height: 340px; }
}
@media (max-width: 979px) {
    .player__track { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
}

/* Voorkomt dat brede inhoud (zoals de slider) de pagina breder maakt dan het scherm. */
.home-grid > *, .page-grid > *, .two-col > *, .grid > * { min-width: 0; }
.hero, .hero__track { max-width: 100%; }

/* Roosterblok dat vervalt, lintjes bij een DJ en de banner tijdens een uitzending. */
.slots li.is-cancelled { opacity: .6; background: #f3e9e9; }
.slots li.is-cancelled strong a { text-decoration: line-through; }
.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.badges li { display: flex; align-items: center; gap: .5rem; background: #f1f7fa; border-radius: 999px; padding: .25rem .9rem .25rem .3rem; }
.badges img { border-radius: 50%; object-fit: contain; background: #fff; }
.radio-big__banner { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: .5rem 0; }
.card--dark a.btn--lime { color: var(--ink); }

/* Het Habbocube-logo is pixelkunst: scherp laten, niet uitsmeren. */
.logo-img, .logo img { image-rendering: pixelated; image-rendering: crisp-edges; height: 86px; width: auto; }
