/*
Theme Name: Dikke BBQ Groep
Theme URI: https://dikkebbqgroep.nl
Author: Het Comitée
Description: De domste website ooit, nu met accounts. Mededelingen, De Hoek™, BBQ-poll, declaratie-tribunaal en een gastenboek. Best bekeken in Internet Explorer 4.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dikkebbq
*/

/* Layout: één smalle Geocities-kolom anno 1998, alles door elkaar, alles knippert.
   Bewust één thema: lelijk is lelijk, licht of donker. */
:root {
	--bg: #00ff66;
	--panel: #ffff00;
	--ink: #000000;
	--hot: #ff00cc;
	--blue: #0000ff;
	--red: #ff0000;
	--white: #ffffff;
	--green: #008800;
	--display: "Bungee Shade", Impact, "Arial Black", sans-serif;
	--body: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive;
	--pixel: "Press Start 2P", "Courier New", monospace;
	color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	background-color: var(--bg);
	background-image:
		radial-gradient(circle at 10px 10px, var(--hot) 3px, transparent 4px),
		repeating-linear-gradient(45deg, transparent 0 18px, rgba(0,0,255,.12) 18px 36px);
	background-size: 40px 40px, auto;
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	padding-inline: 16px;
	padding-block: 12px 60px;
	overflow-x: hidden;
}
.wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
a { color: var(--blue); font-weight: 700; }
h2 {
	font-family: var(--pixel); font-size: 15px; line-height: 1.6;
	background: var(--blue); color: var(--panel); padding: 8px 10px; margin: -14px -14px 12px;
	text-wrap: balance;
}
h3 { font-family: var(--pixel); font-size: 11px; line-height: 1.6; margin: 14px 0 8px; color: var(--hot); }
.box { background: var(--panel); border: 6px ridge var(--hot); padding: 14px; box-shadow: 8px 8px 0 var(--ink); min-width: 0; }
.box:nth-of-type(odd) { transform: rotate(-.6deg); }
.box:nth-of-type(even) { transform: rotate(.5deg); }
.box p { margin: 0 0 10px; line-height: 1.4; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* kop */
.logo {
	font-family: var(--display); font-size: clamp(30px, 9vw, 72px); line-height: .95; text-align: center;
	color: var(--red); margin: 6px 0 0; text-shadow: 4px 4px 0 var(--blue); font-weight: 400;
	text-wrap: balance; word-break: break-word;
}
.logo span { display: inline-block; animation: hop 1.2s infinite; }
.sub { text-align: center; font-family: var(--pixel); font-size: 10px; line-height: 1.8; background: var(--ink); color: var(--bg); padding: 6px; }

.memberbar {
	display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center;
	background: var(--white); border: 3px dashed var(--blue); padding: 8px 12px; font-size: 15px;
}

.marquee { overflow: hidden; background: var(--ink); color: var(--panel); border-block: 4px dashed var(--hot); white-space: nowrap; font-family: var(--pixel); font-size: 12px; padding: 8px 0; }
.marquee .track { display: inline-block; padding-left: 100%; animation: scroll 45s linear infinite; }

/* mededeling */
.mededeling {
	background: var(--red); color: var(--panel); border: 10px double var(--panel);
	outline: 6px dashed var(--ink); padding: 20px 12px; text-align: center; position: relative;
	animation: shake .35s infinite;
}
.mededeling .label { font-family: var(--pixel); font-size: 12px; line-height: 1.8; animation: blink 1s steps(1) infinite; }
.mededeling .big {
	font-family: var(--display); font-size: clamp(30px, 10vw, 88px); line-height: 1; margin: 12px 0;
	text-transform: uppercase; overflow-wrap: anywhere;
	background: linear-gradient(90deg, #ff0, #0f0, #0ff, #f0f, #ff0); -webkit-background-clip: text; background-clip: text; color: transparent;
	background-size: 300% 100%; animation: rainbow 2s linear infinite; text-wrap: balance;
}
.mededeling .fine { font-size: 13px; color: var(--white); }
.stamp {
	position: absolute; right: -10px; top: -18px; background: var(--panel); color: var(--red);
	font-family: var(--pixel); font-size: 9px; line-height: 1.5; padding: 8px; border: 3px solid var(--red); transform: rotate(12deg);
}

/* formulieren */
button, select, input, textarea { font-family: var(--body); font-weight: 700; font-size: 17px; }
button {
	background: linear-gradient(#c0c0c0, #8a8a8a); border: 4px outset #e0e0e0; padding: 8px 14px; cursor: pointer; color: var(--ink);
}
button:active { border-style: inset; }
button[disabled] { opacity: .6; cursor: wait; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 4px solid var(--hot); outline-offset: 2px; }
select, input, textarea { border: 3px inset #aaa; padding: 6px; background: var(--white); color: var(--ink); max-width: 100%; min-width: 0; }
input.short { width: 6em; }
textarea { width: 100%; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stack input[type=text] { width: 100%; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.login-hint { background: var(--white); border: 3px dotted var(--ink); padding: 8px 10px; font-size: 15px; margin: 0 0 10px; }

.list { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.list small, .meta { color: #555; font-size: 13px; }
.empty { font-style: italic; color: #555; }

/* teller */
.counter { display: flex; gap: 3px; justify-content: center; }
.counter b { background: var(--ink); color: #39ff14; font-family: var(--pixel); font-size: 18px; padding: 8px 6px; border: 2px solid #555; font-variant-numeric: tabular-nums; }

/* hoek */
.hoek-stage { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.corner-card { display: flex; gap: 10px; align-items: center; background: var(--white); border: 3px solid var(--ink); padding: 8px; min-width: 0; }
.corner {
	width: 90px; height: 90px; flex: none; position: relative;
	background: linear-gradient(135deg, #888 0 50%, #666 50%); border: 3px solid var(--ink);
}
.corner .who { position: absolute; inset: auto 0 4px 0; text-align: center; font-size: 28px; }
.corner .tag { position: absolute; top: 4px; left: 3px; right: 3px; font-family: var(--pixel); font-size: 7px; line-height: 1.4; color: var(--panel); text-align: center; overflow-wrap: anywhere; }
.clock { font-family: var(--pixel); font-size: 20px; color: var(--red); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }

/* poll */
.event-card { background: var(--white); border: 3px double var(--ink); padding: 10px 12px; margin-bottom: 12px; }
.event-card .date { font-family: var(--display); font-size: clamp(22px, 6vw, 36px); line-height: 1.1; color: var(--red); }
.poll { position: relative; min-height: 190px; border: 3px dotted var(--ink); background: var(--white); padding: 12px; overflow: hidden; }
.poll .q { font-weight: 700; margin-bottom: 12px; }
.poll button { position: absolute; transition: left .12s, top .12s; }
.poll button.picked { box-shadow: 0 0 0 4px var(--hot); }
.vote-ja { left: 14px; top: 56px; background: linear-gradient(#7fff7f, #2db82d); }
.vote-twijfel { left: 14px; top: 104px; background: linear-gradient(#fff2a0, #e0b800); }
.vote-aoe { right: 14px; top: 140px; background: linear-gradient(#ffb0b0, #d84040); }
.rsvp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.rsvp-cols > div { background: var(--white); border: 2px solid var(--ink); padding: 8px; min-width: 0; }
.rsvp-cols h3 { margin-top: 0; }

/* declaraties */
.decl-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.decl { background: var(--white); border: 2px solid var(--ink); padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.decl .what { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.decl .amount { font-family: var(--pixel); font-size: 12px; font-variant-numeric: tabular-nums; }
.decl .verdict { font-family: var(--pixel); font-size: 10px; line-height: 1.5; }
.decl .verdict.no { color: var(--red); }
.decl .verdict.yes { color: var(--green); }
.decl .votes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.decl .votes button { font-size: 14px; padding: 4px 8px; }
.decl .votes button.picked { box-shadow: 0 0 0 3px var(--hot); }

/* gastenboek */
.gb { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gb > div { background: var(--white); border: 2px solid var(--ink); padding: 8px 10px; overflow-wrap: anywhere; white-space: pre-line; }
.gb .who { font-family: var(--pixel); font-size: 9px; line-height: 1.6; color: var(--hot); display: block; margin-bottom: 4px; white-space: normal; }
.gb .del { float: right; font-size: 12px; padding: 2px 6px; }

/* namen */
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.names li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: baseline; }
.names time { font-family: var(--pixel); font-size: 9px; color: var(--blue); }
.names .n { font-weight: 700; min-width: 0; }
.names .future .n { color: var(--hot); animation: blink 1.3s steps(1) infinite; }

/* chat */
.chat { background: #e5ddd5; padding: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; border: 3px inset #aaa; margin-top: 12px; }
.bubble { align-self: flex-start; background: var(--white); color: var(--ink); padding: 6px 10px; border-radius: 0 10px 10px 10px; max-width: 85%; font-family: Arial, sans-serif; font-size: 14px; }
.bubble b { display: block; font-size: 12px; color: #c2185b; }
.bubble.me { align-self: flex-end; background: #dcf8c6; border-radius: 10px 0 10px 10px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge { font-family: var(--pixel); font-size: 8px; line-height: 1.6; border: 2px outset #ddd; padding: 6px 8px; background: var(--ink); color: var(--panel); }
.badge:nth-child(2) { background: var(--blue); color: var(--white); }
.badge:nth-child(3) { background: var(--hot); color: var(--white); }
.construction {
	background: repeating-linear-gradient(-45deg, #ffcc00 0 16px, #000 16px 32px);
	color: var(--white); text-align: center; font-family: var(--pixel); font-size: 11px; padding: 10px;
}
.construction span { background: #000; padding: 4px 8px; display: inline-block; line-height: 1.6; }
footer { text-align: center; font-size: 13px; line-height: 1.6; }
.blink { animation: blink 1s steps(1) infinite; }

.toast {
	position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
	background: var(--ink); color: var(--panel); border: 3px solid var(--hot); padding: 10px 14px;
	font-weight: 700; z-index: 100; max-width: calc(100% - 32px);
}
.trail { position: fixed; pointer-events: none; font-size: 22px; z-index: 50; animation: fall 1s forwards; }

@keyframes hop { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) rotate(-6deg) } }
@keyframes scroll { to { transform: translateX(-100%); } }
@keyframes blink { 50% { visibility: hidden; } }
@keyframes shake { 0%,100% { transform: translate(0,0) rotate(0) } 25% { transform: translate(-2px,1px) rotate(-.6deg) } 75% { transform: translate(2px,-1px) rotate(.6deg) } }
@keyframes rainbow { to { background-position: 300% 0; } }
@keyframes fall { to { transform: translateY(60px) rotate(200deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.marquee { white-space: normal; }
	.marquee .track { padding-left: 0; }
}
