/*
Theme Name: Costa Hit Radio
Description: Eigen thema voor Costa Hit Radio – Only Hits. Viertalig (EN, NL, ES, DE) met automatische taalkeuze, schaalt mee op pc, tablet en telefoon. Vaste player die doorspeelt op elke pagina, programmering, adverteren en contact. Werkt samen met de plugin Radio Scheduler Voting (Vote Now en Song Requests).
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: costa-hit-radio
License: GPLv2 or later
*/

:root {
	--chr-bg: #0C1018;
	--chr-surface: #161C29;
	--chr-band: #111622;
	--chr-footer: #070A10;
	--chr-line: #222A3A;
	--chr-line-2: #2C3548;
	--chr-input: #3B465E;
	--chr-text: #F7F8FA;
	--chr-soft: #E3E7EF;
	--chr-muted: #C2C9D6;
	--chr-dim: #9AA4B6;
	--chr-yellow: #F6B51E;
	--chr-red: #E63328;
	--chr-red-light: #FF5A63;
	--chr-display: Anton, Impact, "Arial Narrow", sans-serif;
	--chr-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--chr-bg); color: var(--chr-text); font-family: var(--chr-body); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { color: var(--chr-yellow); }
a:hover { color: #FFCB4D; }
:focus-visible { outline: 3px solid var(--chr-yellow); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chr-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--chr-yellow); color: var(--chr-bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.chr-skip:focus { left: 8px; }
.chr-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: max(16px, 1em); } /* 16px or more: iPhone does not zoom in on focus */
button, a, input, select, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { overflow-wrap: break-word; }
.chr-display { font-family: var(--chr-display); font-weight: 400; letter-spacing: .01em; line-height: 1; margin: 0; }
.chr-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--chr-red-light); text-transform: uppercase; }
.chr-lead { font-size: 18px; color: var(--chr-soft); max-width: 620px; }
.chr-muted { color: var(--chr-muted); }

/* ---- buttons ---- */
.chr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--chr-yellow); background: var(--chr-yellow); color: var(--chr-bg); font: 700 16px var(--chr-body); text-decoration: none; cursor: pointer; }
.chr-btn:hover { background: #FFCB4D; border-color: #FFCB4D; color: var(--chr-bg); }
.chr-btn--ghost { background: transparent; color: var(--chr-text); border-color: var(--chr-red-light); }
.chr-btn--ghost:hover { background: var(--chr-red); border-color: var(--chr-red); color: #fff; }
.chr-btn--dark { background: var(--chr-bg); border-color: var(--chr-bg); color: var(--chr-text); }
.chr-btn svg { flex: none; }

/* ---- header ---- */
.chr-flag { display: flex; height: 6px; }
.chr-flag span { background: var(--chr-red); flex: 1 1 0; }
.chr-flag span:nth-child(2) { background: var(--chr-yellow); flex: 2 1 0; }
.chr-header { position: sticky; top: 0; z-index: 50; background: var(--chr-bg); border-bottom: 1px solid var(--chr-line); }
.admin-bar .chr-header { top: 32px; }
.chr-header__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 10px; padding-bottom: 10px; }
.chr-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--chr-text); }
.chr-brand img { height: 72px; width: auto; display: block; }
.chr-brand__slogan { font-size: 12px; font-weight: 700; letter-spacing: .32em; color: var(--chr-yellow); }
.chr-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.chr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.chr-nav a { display: block; padding: 10px 0; color: var(--chr-muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.chr-nav a:hover, .chr-nav .current-menu-item > a, .chr-nav .current_page_item > a { color: var(--chr-text); border-bottom-color: var(--chr-yellow); }

/* ---- sections ---- */
.chr-main { min-height: 50vh; }
.chr-section { padding-top: 72px; padding-bottom: 72px; }
.chr-band { background: var(--chr-band); border-top: 1px solid var(--chr-line); border-bottom: 1px solid var(--chr-line); }
.chr-card { background: var(--chr-surface); border: 1px solid var(--chr-line-2); border-radius: 20px; padding: 26px; }
.chr-card--accent { border: 2px solid var(--chr-yellow); }
.chr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.chr-row { display: flex; flex-wrap: wrap; gap: 48px; }
.chr-row > * { min-width: 0; }
.chr-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chr-h2 { font-family: var(--chr-display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1; margin: 0; }
.chr-h1 { font-family: var(--chr-display); font-weight: 400; font-size: clamp(56px, 8vw, 88px); line-height: .95; margin: 0; }
.chr-time { margin: 0; font-family: var(--chr-display); font-size: 26px; color: var(--chr-red-light); }
.chr-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--chr-yellow); color: var(--chr-bg); font-size: 12px; font-weight: 700; letter-spacing: .14em; }

/* ---- home hero ---- */
.chr-hero { padding-top: 56px; padding-bottom: 56px; align-items: center; }
.chr-hero__text { flex: 1 1 520px; }
.chr-hero__logo { width: 300px; max-width: 70%; display: block; margin: 0 0 18px -8px; }
.chr-hero__title { font-family: var(--chr-display); font-weight: 400; font-size: clamp(80px, 12vw, 132px); line-height: .92; margin: 0; }
.chr-hero__title span { color: var(--chr-yellow); }
.chr-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chr-hero__now { flex: 1 1 380px; }
.chr-now-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--chr-muted); margin: 0 0 14px; }
.chr-now-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--chr-yellow); }

/* ---- programmering ---- */
.chr-days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chr-days button { min-width: 64px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--chr-line-2); background: transparent; color: var(--chr-text); font: 700 15px var(--chr-body); cursor: pointer; }
.chr-days button[aria-selected="true"] { background: var(--chr-yellow); border-color: var(--chr-yellow); color: var(--chr-bg); }
.chr-day[hidden] { display: none; }
.chr-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 22px 26px; margin-bottom: 12px; }
.chr-slot .chr-time { width: 190px; font-size: 28px; }
.chr-slot__body { flex: 1 1 320px; min-width: 0; }
.chr-slot h3, .chr-card h3 { margin: 0; font-size: 21px; }
.chr-slot p, .chr-card p { margin: 6px 0 0; }
.chr-slot--now { border: 2px solid var(--chr-yellow); }

/* ---- forms ---- */
.chr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.chr-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--chr-soft); }
.chr-form .chr-full { grid-column: 1 / -1; }
.chr-form input[type=text], .chr-form input[type=email], .chr-form input[type=tel], .chr-form select, .chr-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--chr-input); border-radius: 10px; background: var(--chr-bg); color: var(--chr-text); font: 400 16px var(--chr-body); }
.chr-form textarea { resize: vertical; }
.chr-form .chr-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.chr-form .chr-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--chr-yellow); flex: none; }
.chr-form .chr-hp { position: absolute; left: -9999px; }
.chr-form-message { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.chr-form-message.is-ok { color: #7FD48A; }
.chr-form-message.is-error { color: var(--chr-red-light); }
.chr-contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 14px; }
.chr-contact-item p { margin: 0; }
.chr-contact-item small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--chr-muted); }

/* ---- generic content ---- */
.chr-content { font-size: 17px; color: var(--chr-soft); }
.chr-content h2, .chr-content h3 { color: var(--chr-text); }


/* ---- menu button (phones / small tablets) + language choice ---- */
.chr-menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--chr-line-2); border-radius: 999px; background: transparent; color: var(--chr-text); font-weight: 700; cursor: pointer; }
.chr-menu-toggle[aria-expanded="true"] { border-color: var(--chr-yellow); color: var(--chr-yellow); }
.chr-nav { align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.chr-lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px !important; border: 1px solid var(--chr-line-2); border-radius: 999px; padding: 3px !important; }
.chr-lang a { min-width: 40px; min-height: 34px; padding: 6px 8px !important; border: none !important; border-radius: 999px; text-align: center; font-size: 13px; letter-spacing: .06em; line-height: 22px; }
.chr-lang a[aria-current="true"] { background: var(--chr-yellow); color: var(--chr-bg) !important; }
.chr-lang a:hover { color: var(--chr-text); }

/* ---- footer ---- */
.chr-footer { background: var(--chr-footer); border-top: 1px solid var(--chr-line); }
.chr-footer__top { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.chr-footer__brand { flex: 2 1 280px; }
.chr-footer__brand img { height: 104px; width: auto; display: block; }
.chr-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.chr-footer__col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--chr-muted); }
.chr-footer__col ul { list-style: none; margin: 0; padding: 0; }
.chr-footer__col a { color: var(--chr-text); text-decoration: none; display: inline-block; padding: 4px 0; }
.chr-footer__col p { margin: 0; padding: 4px 0; }
.chr-social { display: flex; gap: 10px; margin-top: 20px; }
.chr-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--chr-line-2); display: flex; align-items: center; justify-content: center; color: var(--chr-soft); }
.chr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); border-top: 1px solid var(--chr-line); font-size: 14px; color: var(--chr-dim); }
.chr-footer__bottom a { color: var(--chr-muted); margin-left: 20px; }

/* ---- the persistent player ---- */
.chr-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--chr-surface); border-top: 3px solid var(--chr-red); }
.chr-player__inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.chr-play { width: 52px; height: 52px; flex: none; border: none; border-radius: 50%; background: var(--chr-yellow); color: var(--chr-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chr-play .chr-icon-pause { display: none; }
.chr-player.is-playing .chr-play .chr-icon-play { display: none; }
.chr-player.is-playing .chr-play .chr-icon-pause { display: block; }
.chr-player.is-loading .chr-play { opacity: .7; }
.chr-player__info { flex: 1 1 auto; min-width: 0; }
.chr-player__status { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--chr-red-light); text-transform: uppercase; }
.chr-player__song { margin: 2px 0 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chr-volume { display: flex; align-items: center; gap: 10px; color: var(--chr-soft); }
.chr-volume input { width: 120px; accent-color: var(--chr-yellow); }
/* The plugin's Vote Now widget inside the player: only the heart button */
.chr-player .rsv-widget { padding: 0; }
.chr-player .rsv-widget .rsv-label, .chr-player .rsv-widget .rsv-song { display: none; }
.chr-player .rsv-widget .rsv-message { position: absolute; bottom: 100%; right: 24px; margin: 0 0 6px; background: var(--chr-surface); padding: 4px 10px; border-radius: 8px; }
/* The plugin widgets in the theme colours */
.rsv-widget, .rsv-request { --rsv-accent: var(--chr-yellow); --rsv-muted: var(--chr-dim); color: var(--chr-text); }
.chr-hero__now .rsv-song { font-family: var(--chr-display); font-weight: 400; font-size: 30px; letter-spacing: .02em; }
.rsv-search { background: var(--chr-bg); color: var(--chr-text); border: 2px solid var(--chr-red-light) !important; min-height: 48px; }
.rsv-result { border-bottom-color: var(--chr-line-2) !important; }

@media (max-width: 1024px) {
	.chr-wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
	.chr-hero__title { font-size: clamp(64px, 14vw, 120px); }
}

@media (max-width: 900px) {
	.admin-bar .chr-header { top: 0; }
	.chr-header__inner { flex-wrap: nowrap; }
	.chr-brand img { height: 56px; width: auto; }
	.chr-menu-toggle { display: inline-flex; }
	.js .chr-nav { display: none; }
	.chr-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px max(20px, env(safe-area-inset-left)) 20px; background: var(--chr-bg); border-bottom: 1px solid var(--chr-line); box-shadow: 0 16px 32px rgba(0, 0, 0, .45); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
	.js .chr-nav.is-open { display: flex; }
	.chr-nav ul { flex-direction: column; gap: 0; }
	.chr-nav > ul > li > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--chr-line); }
	.chr-nav .current-menu-item > a, .chr-nav .current_page_item > a { border-bottom-color: var(--chr-yellow); }
	.chr-lang { flex-direction: row !important; align-self: flex-start; }
	.chr-lang a { min-width: 52px; min-height: 40px; font-size: 15px; }
}

@media (max-width: 782px) {
	.chr-form { grid-template-columns: minmax(0, 1fr); }
	.chr-volume { display: none; }
	.chr-slot .chr-time { width: auto; }
	.chr-section { padding-top: 48px; padding-bottom: 48px; }
	.chr-hero__logo { width: min(200px, 55vw); height: auto; }
	.chr-h1 { font-size: clamp(40px, 11vw, 64px); }
	.chr-h2 { font-size: clamp(32px, 8.5vw, 48px); }
	.chr-lead { font-size: 17px; }
	.chr-days { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.chr-days::-webkit-scrollbar { display: none; }
	.chr-promo .chr-btn, .chr-form .chr-btn { width: 100%; }
}

@media (max-width: 480px) {
	.chr-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
	.chr-brand__slogan { display: none; }
	.chr-menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.chr-menu-toggle { padding: 0 10px; min-width: 44px; justify-content: center; }
	.chr-play { width: 46px; height: 46px; }
	.chr-player__inner { gap: 10px 12px; }
	.chr-card { padding: 20px; }
	.chr-footer__bottom a { margin-left: 0; }
}

/* landscape phones: keep the player low */
@media (max-height: 500px) and (orientation: landscape) {
	.chr-header { position: static; }
	.chr-player__inner { padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}

/* page being loaded (ajax) */
html.chr-loading .chr-main { opacity: .6; transition: opacity .15s; }
