/*
Theme Name: DROPRRR
Version: 1.1.0
Description: DROPRRR red/black theme for DJ song requests, tips and shout-outs. Requires the DROPRRR Core plugin.
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: droprrr
*/

:root {
	--bg: #0b0b0e;
	--surface: #16161b;
	--surface-2: #0f0f13;
	--line: #2e2e36;
	--text: #ffffff;
	--muted: #b3b3bd;
	--red: #ff304b;
	--red-hover: #ff4d64;
	--red-soft: rgba(255, 48, 75, .14);
	--ok: #3ddc84;
	--radius: 16px;
	--dj-accent: var(--red);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg) radial-gradient(1200px 500px at 80% -10%, rgba(255, 48, 75, .18), transparent 60%) no-repeat;
	color: var(--text);
	font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; flex: 1; }
a { color: #ff6075; }
a:hover { color: #ff8a9a; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
img, canvas, iframe { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 16px; border-bottom: 1px solid var(--line); max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { font-size: 28px; font-weight: 900; letter-spacing: 2px; color: var(--red); text-decoration: none; }
.brand span { color: #fff; }
.custom-logo { max-height: 56px; width: auto; display: block; }
.site-nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { color: #fff; border: 1px solid var(--red); padding: 8px 14px; border-radius: 999px; }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero h1, .dj-hero h1 { font-size: clamp(40px, 9vw, 84px); line-height: .95; margin: 0 0 18px; font-weight: 900; letter-spacing: -1px; }
.hero h1 span { color: var(--red); }
.lead { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: 640px; margin: 0 0 24px; }
.hero-actions, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--dj-accent); font-weight: 700; margin: 0 0 8px; }

/* Buttons */
.btn, button.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 22px; min-height: 48px;
	background: var(--dj-accent); color: #fff; border: 1px solid transparent; border-radius: 12px;
	font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
	transition: background .15s, transform .05s;
}
.btn:hover { background: var(--red-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.btn-ghost { background: transparent; border-color: #4a4a55; }
.btn.btn-ghost:hover { background: #1f1f26; border-color: #6a6a75; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-big { font-size: 19px; min-height: 58px; }
.btn.btn-ok { background: #1f7a4a; } .btn.btn-ok:hover { background: #26915a; }
.btn.btn-warn { background: transparent; border-color: #7a2a35; color: #ff9aa8; }
.btn.btn-warn:hover { background: #2a1015; }

/* Layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 20px; }
.grid-2 > .card { margin-top: 24px; }
.grid-2 > .panel { margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); font-size: 16px; }
.step h3 { margin: 10px 0 4px; }
.step p { margin: 0; color: var(--muted); }
h2 { margin: 0 0 8px; font-size: 26px; }
h3 { margin: 0 0 10px; font-size: 18px; }
p { color: var(--muted); }
.small { font-size: 14px; color: #9a9aa5; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.pill { background: var(--red-soft); color: #ffb3bd; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-head h2, .dash-head h3 { margin: 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 0; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), textarea {
	display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
	border-radius: 10px; background: var(--surface-2); color: #fff; border: 1px solid #45454f;
	font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
}
input:focus, textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-soft); }
input[type=file] { padding: 10px; }
input[type=color] { width: 54px; height: 38px; border: 0; background: none; vertical-align: middle; margin-left: 8px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
label.inline { display: flex; align-items: center; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice legend { width: 100%; margin-bottom: 6px; }
.choice label { margin: 0; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid #45454f; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.choice input { accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px; }
form .btn-block { margin-top: 20px; }

/* Tabs & chips */
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 12px; border: 1px solid var(--line); }
.tab { flex: 1; padding: 11px 8px; background: transparent; color: var(--muted); border: 0; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.tab.active { background: var(--dj-accent); color: #fff; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.chip { padding: 12px 0; background: var(--surface-2); color: #fff; border: 1px solid #45454f; border-radius: 10px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; min-height: 48px; }
.chip.active { border-color: var(--dj-accent); background: var(--red-soft); }

/* Messages */
.message { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--red-soft); border: 1px solid #6b2230; color: #ffd0d6; }
.message.ok { background: rgba(61, 220, 132, .1); border-color: #1f6b43; color: #c9f5dc; }
.status-line { font-weight: 600; }
.status-line.ok { color: var(--ok); }

/* Lists & queue */
.list, .queue { list-style: none; margin: 10px 0 0; padding: 0; }
ol.list { counter-reset: hot; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
ol.list li::before { counter-increment: hot; content: counter(hot); color: var(--red); font-weight: 900; min-width: 22px; }
.list li.empty::before { content: none; }
.list .meta { color: #9a9aa5; font-size: 14px; margin-left: auto; }
.list audio { width: 100%; height: 36px; }
.queue li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #555; border-radius: 10px; padding: 14px; margin-top: 10px; }
.queue li.s-paid { border-left-color: var(--red); }
.queue li.s-accepted { border-left-color: #f5a623; }
.queue li.s-played { border-left-color: var(--ok); opacity: .75; }
.queue li.empty { border-left-color: var(--line); color: var(--muted); }
.queue .q-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.queue .q-title { font-weight: 800; font-size: 17px; }
.queue .q-amt { font-weight: 900; color: #fff; white-space: nowrap; }
.queue .q-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.queue .q-note { margin: 8px 0 0; color: #ddd; font-style: italic; }
.queue .q-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 6px; background: #2a2a33; color: #ddd; }

/* QR */
.qr-panel { text-align: center; }
#qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; height: 220px; }
.qr-panel .btn-row { justify-content: center; }

/* DJ page */
.dj-page { max-width: 640px; }
.dj-hero { padding: 40px 0 0; text-align: center; }
.dj-hero h1 { font-size: clamp(36px, 10vw, 64px); color: #fff; }
.dj-hero .lead { margin: 0 auto 8px; }
.stream { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stream iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.stream a { display: block; padding: 14px; text-align: center; }
.request-card { padding: 18px; }
.dollar input { font-size: 20px !important; font-weight: 800; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary h3 { display: inline; }
details summary::after { content: " ▾"; color: var(--muted); }

/* Content pages */
.content { max-width: 760px; padding-top: 32px; }
.page-title { font-size: clamp(30px, 6vw, 44px); margin: 0 0 16px; }
.prose p, .prose li { color: #d6d6dd; }

/* Footer */
.site-footer { padding: 32px 16px; text-align: center; color: #888; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer p { margin: 6px 0; color: #888; }
.site-footer .tagline { letter-spacing: 4px; font-weight: 800; color: var(--red); }

@media (max-width: 560px) {
	.site-header { padding: 14px 16px; }
	.brand { font-size: 24px; }
	.site-nav a:not(.nav-cta) { display: none; }
	.hero { padding-top: 36px; }
	.hero-actions .btn { width: 100%; }
	.card { padding: 18px; border-radius: 14px; }
	.tab { font-size: 14px; padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
[hidden] { display: none !important; }
