/*
Theme Name: RadioFLR Tema
Theme URI: https://radioflr.dk
Author: RadioFLR
Description: Brugerdefineret WordPress-tema til RadioFLR — lyst design, fast bundafspiller med split-flap sang-skift, og native IRC-chat. Byg selve sideindholdet i Elementor; header, footer og afspiller kommer fra temaet.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: radioflr
*/

:root{
  --bg: #f7f8fc;
  --bg-2: #eef0f7;
  --navy: #0f1830;
  --orange: #ff7a1a;
  --orange-text: #a64a06;
  --blue: #3a7bff;
  --link: #1d5fd1;
  --text: #141a2c;
  --text-dim: #5b6478;
  --red: #e0304a;
  --red-light: #c81f3d;
  --amber: #ffb74d;
  --blue-light: #64b5f6;
  --surface-1: rgba(20,26,44,.035);
  --surface-2: rgba(20,26,44,.06);
  --border-1: rgba(20,26,44,.10);
  --border-2: rgba(20,26,44,.16);
}
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font-family:'Hanken Grotesk', sans-serif; overflow-x:hidden; }

.aurora{ position: fixed; inset:0; z-index:0; overflow:hidden; }
.blob{ position:absolute; border-radius:50%; filter: blur(90px); will-change: transform; }
.blob-1{ width:52vw; height:52vw; left:38%; top:-14%; background: radial-gradient(circle at 40% 40%, rgba(255,122,26,.5), rgba(255,122,26,0) 70%); }
.blob-2{ width:46vw; height:46vw; left:58%; top:28%; background: radial-gradient(circle at 60% 60%, rgba(58,123,255,.42), rgba(58,123,255,0) 70%); }
.blob-3{ width:38vw; height:38vw; left:30%; top:46%; background: radial-gradient(circle at 50% 50%, rgba(255,122,26,.22), rgba(255,122,26,0) 70%); }

.noise{
  position: fixed; inset:0; z-index:1; pointer-events:none; opacity:.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header{
  position: fixed; top:0; left:0; right:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 5vw;
  background: linear-gradient(to bottom, rgba(247,248,252,0.85), transparent);
  backdrop-filter: blur(6px);
}
.logo-img{ height: 42px; width: auto; display:block; }

nav{ display:flex; gap:2.2rem; align-items:center; }
nav a{ color: var(--text-dim); text-decoration:none; font-size:.92rem; font-weight:500; transition: color .2s; }
nav a:hover{ color: var(--text); }
nav a.is-current{ color: var(--text); }

.dot{ width:7px; height:7px; border-radius:50%; background:var(--orange); box-shadow:0 0 8px var(--orange); animation: pulse 1.4s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.4; transform:scale(.7); } }

/* ---- Sticky bottom player ---- */
.sticky-player{
  position: fixed; left:0; right:0; bottom:0; z-index:40;
  display:flex; justify-content:center; pointer-events:none;
}
.sticky-player__inner{
  pointer-events:auto;
  display:flex; align-items:center; gap:1.4rem; width:min(100%, 900px);
  background: linear-gradient(135deg, var(--orange) 0%, #b1436a 35%, #4a3f8f 65%, var(--blue) 100%);
  border-radius:18px 18px 0 0; padding:.95rem 1.6rem;
  box-shadow: 0 -12px 40px rgba(20,26,44,.2);
}

.player-pill{
  display:flex; align-items:center; gap:1.1rem; flex:1; min-width:0;
  background:none; border:none; padding:0; margin:0; cursor:pointer;
  font-family:'Hanken Grotesk', sans-serif; color:#fff; appearance:none;
}

.play-btn{
  position:relative; width:52px; height:52px; border-radius:50%; flex:none;
  background:#fff; display:flex; align-items:center; justify-content:center; overflow:visible;
  box-shadow: 0 4px 14px rgba(20,26,44,.25);
}
.play-btn .ring{
  position:absolute; inset:-2px; border-radius:50%; border:1.5px solid rgba(255,255,255,.7);
  opacity:0; transform:scale(1);
}
.player-pill.is-playing .ring{ animation: ring-pulse 1.8s ease-out infinite; }
@keyframes ring-pulse{
  0%{ opacity:.55; transform:scale(1); }
  100%{ opacity:0; transform:scale(1.5); }
}

.tri{ width:0; height:0; border-top:9px solid transparent; border-bottom:9px solid transparent; border-left:14px solid var(--orange-text); margin-left:4px; transition: opacity .2s ease, transform .2s ease; }
.pause{ display:flex; gap:5px; opacity:0; position:absolute; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.pause i{ width:5px; height:17px; background:var(--orange-text); border-radius:1px; display:block; }
.player-pill.is-playing .tri{ opacity:0; transform: scale(.6); }
.player-pill.is-playing .pause{ opacity:1; transform: scale(1); }

.mini-eq{ display:flex; align-items:flex-end; gap:2px; height:16px; flex:none; }
.mini-eq i{ width:3px; background:#fff; border-radius:2px; height:3px; display:block; }

.mini-np{
  font-size:.95rem; color:#fff; opacity:.9; flex:1; min-width:0; max-width:none;
  overflow:hidden; white-space:nowrap; display:flex; align-items:baseline;
  perspective: 240px;
}
.player-pill.is-playing .mini-np{ opacity:1; }
.flap-char{ display:inline-block; white-space:pre; }

.sp-volume{ display:flex; align-items:center; gap:.6rem; flex:none; color:#fff; }
.sp-mute{ background:none; border:none; padding:.2rem; color:#fff; cursor:pointer; display:flex; opacity:.85; }
.sp-mute:hover{ opacity:1; }
.sp-mute-icon--off{ display:none; }
.sp-mute.is-muted .sp-mute-icon--on{ display:none; }
.sp-mute.is-muted .sp-mute-icon--off{ display:block; }

.sp-volume-slider{
  -webkit-appearance:none; appearance:none; width:90px; height:4px; border-radius:99px; outline:none; cursor:pointer;
  background: linear-gradient(to right, #fff var(--vol, 80%), rgba(255,255,255,.3) var(--vol, 80%));
}
.sp-volume-slider::-webkit-slider-thumb{ -webkit-appearance:none; width:13px; height:13px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.sp-volume-slider::-moz-range-thumb{ width:13px; height:13px; border-radius:50%; background:#fff; border:none; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.sp-volume-slider::-moz-range-track{ height:4px; border-radius:99px; background:rgba(255,255,255,.3); }

@media (max-width:520px){ .sp-volume{ display:none; } }

main{ position:relative; z-index:2; min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding: 0 5vw; }

h1{
  font-family:'Bricolage Grotesque', sans-serif; font-weight:800;
  font-size: clamp(2.8rem, 8vw, 6.4rem); line-height:0.98; letter-spacing:-0.02em;
  margin: 0 0 1.6rem 0; max-width: 14ch;
}
h1 .line{ overflow:hidden; }
h1 .line span{ display:inline-block; will-change: transform; }
h1 .accent{ color: var(--orange-text); font-style:italic; }

.sub{ font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 42ch; margin-bottom: 2.6rem; line-height:1.5; }

.btn{
  position:relative; display:inline-flex; align-items:center; gap:.7rem;
  background: var(--orange); color:#100800; font-weight:700; font-size:.95rem;
  padding: 1rem 1.7rem; border-radius: 999px; text-decoration:none; border:none; cursor:pointer;
  font-family:'Hanken Grotesk', sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.45); }

section{ position:relative; z-index:2; padding: 7vw 5vw; }

.mission{ display:flex; justify-content:center; padding-top:2vw; padding-bottom:6vw; }
.mission p{
  font-family:'Bricolage Grotesque', sans-serif; font-weight:600;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height:1.35; letter-spacing:-0.01em;
  max-width: 24ch; text-align:center; margin:0;
}
.mission .accent{ color: var(--orange-text); }

.feature-row{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 1.8rem; padding-top:0; }
@media (max-width: 860px){ .feature-row{ grid-template-columns: 1fr; } }

.card{
  position:relative; border-radius: 22px; padding: 2.2rem 2.4rem; border:1px solid var(--border-1);
  background: var(--surface-1); backdrop-filter: blur(8px);
}
.card h2{ font-family:'Bricolage Grotesque', sans-serif; font-weight:800; font-size:1.7rem; margin: 0 0 .6rem 0; }
.card p{ color: var(--text-dim); font-size:1rem; line-height:1.55; margin: 0 0 1.4rem 0; max-width:38ch; }
.card-link{ color: inherit; text-decoration:none; font-weight:600; font-size:.92rem; display:inline-flex; align-items:center; gap:.4rem; transition: gap .2s ease; }
.card-link:hover{ gap:.65rem; }

.kickstart{ background: linear-gradient(155deg, rgba(255,122,26,.16), rgba(255,122,26,.02)); border-color: rgba(255,122,26,.25); }
.kickstart .card-link{ color: var(--orange-text); }

.sponsor{ border-style:dashed; padding-top: 3.6rem; }
.sponsor .card-link{ color: var(--link); }
.ad-badge{
  position:absolute; top:1.4rem; right:1.6rem;
  font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color: var(--text-dim); border:1px solid var(--border-2); border-radius:999px;
  padding:.25rem .65rem;
}

/* ---- Page header (non-hero pages, e.g. Chat) ---- */
.page-head{ position:relative; z-index:2; padding: 9vw 5vw 2vw; }
.page-head h1{ font-size: clamp(2.4rem, 5.5vw, 3.6rem); max-width: none; margin-bottom: .8rem; }
.page-head .sub{ margin-bottom: 0; }

/* ---- Native IRC chat ---- */
.chat-shell{
  position:relative; z-index:2; margin: 2vw 5vw 6vw;
  display:grid; grid-template-columns: 1fr 280px; gap:1.4rem;
  height: 70vh; min-height:520px;
}
@media (max-width: 780px){ .chat-shell{ grid-template-columns: 1fr; height:auto; } }

/* ---- Chat page: fill viewport between header and footer ---- */
body.chat-page{ display:flex; flex-direction:column; height:100vh; overflow:hidden; }
body.chat-page header{ position:relative; }
body.chat-page .chat-shell{ flex:1; margin:0 0 90px; height:auto; min-height:0; }
body.chat-page .chat-main, body.chat-page .chat-sidebar{ border-radius:0; }

.chat-main, .chat-sidebar{
  border-radius:20px; border:1px solid var(--border-1); background: var(--surface-1);
  display:flex; flex-direction:column; overflow:hidden;
}

.chat-tabs{ display:flex; gap:.4rem; padding:.9rem 1rem 0; }
.chat-tab{
  display:flex; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:10px 10px 0 0;
  font-size:.85rem; color:var(--text-dim); cursor:pointer; background:transparent;
}
.chat-tab.active{ background: var(--surface-2); color:var(--text); }
.chat-tab .tab-close{ opacity:.6; }
.chat-tab .tab-close:hover{ opacity:1; }

.chat-messages{ flex:1; overflow-y:auto; padding: 1rem 1.2rem; display:none; }
.chat-messages.active{ display:block; }

.chat-msg{ display:flex; gap:.7rem; margin-bottom:1rem; }
.chat-avatar{
  flex:none; width:30px; height:30px; border-radius:50%; border:2px solid var(--text-dim);
  display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700;
}
.chat-msg-head{ display:flex; align-items:baseline; gap:.5rem; margin-bottom:.15rem; }
.chat-nick{ font-weight:700; font-size:.9rem; }
.chat-time{ font-size:.72rem; color:var(--text-dim); }
.chat-msg-text{ font-size:.92rem; line-height:1.5; word-break:break-word; }
.chat-msg-text a{ color:var(--link); }

.chat-role-pill{
  font-size:.65rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:#0b0d12; border-radius:999px; padding:.1rem .5rem;
}

.chat-system{ color:var(--text-dim); font-size:.85rem; font-style:italic; margin-bottom:.7rem; }
.chat-system a{ color:var(--link); }
.chat-onair{ color:var(--red-light); font-weight:600; font-size:.88rem; margin-bottom:.7rem; }
.chat-action{ color:var(--text-dim); font-size:.88rem; font-style:italic; margin-bottom:.7rem; }
.chat-action .chat-nick{ font-size:.88rem; }

.chat-input-row{ display:flex; gap:.7rem; padding:1rem 1.2rem; border-top:1px solid var(--border-1); }
.chat-input-row input{
  flex:1; background: var(--surface-1); border:1px solid var(--border-1); border-radius:999px;
  padding:.7rem 1.1rem; color:var(--text); font-family:'Hanken Grotesk', sans-serif; font-size:.9rem;
}
.chat-input-row input:disabled{ opacity:.5; }
.chat-input-row input::placeholder{ color:var(--text-dim); }
.chat-input-row .btn{ padding:.7rem 1.3rem; font-size:.88rem; }
.chat-input-row .btn:disabled{ opacity:.5; cursor:default; transform:none; box-shadow:none; }

.chat-sidebar-head{
  padding:1rem 1.2rem .8rem; font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-dim); border-bottom:1px solid var(--border-1);
}
.chat-userlist{ flex:1; overflow-y:auto; padding: .6rem 0; }
.chat-role-group{ padding: .5rem 1.2rem; }
.chat-role-title{ font-size:.68rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim); margin-bottom:.5rem; }
.chat-user-row{ display:flex; align-items:center; gap:.6rem; padding:.35rem 0; cursor:pointer; font-size:.88rem; }
.chat-user-row:hover{ color:var(--orange-text); }
.chat-user-row .chat-avatar{ width:24px; height:24px; font-size:.68rem; }

.nick-modal{
  position:fixed; inset:0; z-index:20; display:flex; align-items:center; justify-content:center;
  background: rgba(247,248,252,.75); backdrop-filter: blur(6px);
}
.nick-box{
  width: min(90vw, 380px); border-radius:22px; padding:2.2rem; text-align:center;
  border:1px solid rgba(255,122,26,.3); background: linear-gradient(155deg, rgba(255,122,26,.14), rgba(247,248,252,.96));
  box-shadow: 0 20px 60px rgba(20,26,44,.12);
}
.nick-box h2{ font-family:'Bricolage Grotesque', sans-serif; font-size:1.5rem; margin:0 0 .6rem; }
.nick-box p{ color:var(--text-dim); font-size:.9rem; margin:0 0 1.4rem; line-height:1.5; }
.nick-box input{
  width:100%; background: var(--surface-2); border:1px solid var(--border-2); border-radius:12px;
  padding:.8rem 1rem; color:var(--text); font-family:'Hanken Grotesk', sans-serif; font-size:.95rem;
  margin-bottom:1rem; text-align:center;
}
.nick-box .btn{ width:100%; justify-content:center; }

footer{
  position:relative; z-index:2; padding: 4vw 5vw calc(2.4vw + 90px); margin-top:2vw;
  border-top:1px solid var(--border-1);
  display:flex; flex-wrap:wrap; gap:2.2rem; align-items:center; justify-content:space-between;
}
footer .logo-img{ height:34px; }
footer nav{ gap:1.6rem; }
footer nav a{ font-size:.85rem; }
.socials a{ color: var(--text-dim); text-decoration:none; font-size:.85rem; font-weight:500; }
.socials a:hover{ color: var(--text); }
.foot-meta{ width:100%; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; padding-top:1.6rem; color: var(--text-dim); font-size:.78rem; }
.foot-meta a{ color: inherit; text-decoration:none; }
.foot-meta a:hover{ color: var(--text); }

/* ---- Plain WordPress page fallback (page.php / index.php) — content not built in Elementor ---- */
.wp-page-content{ position:relative; z-index:2; padding: 140px 5vw 80px; max-width: 900px; margin: 0 auto; }
.wp-page-content h1{ font-size: clamp(2rem, 5vw, 3.2rem); max-width:none; }
