/* WK voetbal 2026 — Selectiebouwer styling. Modern, slick, mobiel + desktop. */

.wk-sb-intro { padding-top: 1.5rem; }

.wk-sb { max-width: 1180px; margin: 2rem auto 3rem; padding: 0 1rem; }

/* Bovenbalk met formatie/land/acties */
.wk-sb__bar {
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
	background: linear-gradient(135deg, #0b1b40, #14264f);
	border-radius: 16px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.wk-sb__veld-keuze { display: flex; flex-direction: column; gap: 0.35rem; }
.wk-sb__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.wk-sb__select {
	appearance: none; -webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
	border: 0; border-radius: 10px; padding: 0.7rem 2.2rem 0.7rem 0.9rem;
	font-size: 1rem; font-weight: 600; color: #14264f; min-width: 190px; cursor: pointer;
}
.wk-sb__acties { display: flex; gap: 0.6rem; margin-left: auto; }
.wk-sb__btn {
	background: #ff6a00; color: #fff; border: 0; border-radius: 10px;
	padding: 0.7rem 1.2rem; font-size: 0.95rem; font-weight: 700; cursor: pointer;
	transition: transform .12s ease, background .12s ease;
}
.wk-sb__btn:hover { background: #e85f00; transform: translateY(-1px); }
.wk-sb__btn--ghost { background: rgba(255,255,255,0.12); color: #fff; }
.wk-sb__btn--ghost:hover { background: rgba(255,255,255,0.22); }

/* Layout: veld + bank */
.wk-sb__layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }

/* Het speelveld */
.wk-sb__pitch-wrap { position: relative; }
.wk-sb__pitch {
	position: relative; width: 100%; aspect-ratio: 5 / 7;
	background:
		repeating-linear-gradient(0deg, #2e8b4f 0 9%, #2a8049 9% 18%);
	border: 3px solid rgba(255,255,255,0.55); border-radius: 14px; overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.wk-sb__lijn--mid { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,0.5); }
.wk-sb__cirkel { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,0.5); border-radius: 50%; transform: translate(-50%,-50%); }
.wk-sb__zestien { position: absolute; left: 50%; transform: translateX(-50%); width: 46%; height: 14%; border: 2px solid rgba(255,255,255,0.45); }
.wk-sb__zestien--boven { top: 0; border-top: 0; border-radius: 0 0 8px 8px; }
.wk-sb__zestien--onder { bottom: 0; border-bottom: 0; border-radius: 8px 8px 0 0; }

/* Een positie (bolletje) */
.wk-sb__slot {
	position: absolute; transform: translate(-50%, -50%);
	width: 16%; max-width: 88px; aspect-ratio: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.16); border: 2px dashed rgba(255,255,255,0.6);
	border-radius: 50%; color: #fff; cursor: pointer; padding: 0;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.wk-sb__slot:hover { background: rgba(255,255,255,0.28); transform: translate(-50%,-50%) scale(1.06); }
.wk-sb__slot-leeg { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.wk-sb__slot-pos { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; margin-top: 2px; }
.wk-sb__slot--vol { background: #fff; border-style: solid; border-color: #ff6a00; }
.wk-sb__slot-foto { width: 64%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e9eef6; display: flex; align-items: center; justify-content: center; }
.wk-sb__slot-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wk-sb__slot-init { font-weight: 800; color: #14264f; font-size: 1.1rem; }
.wk-sb__slot-naam {
	position: absolute; bottom: -1.25rem; left: 50%; transform: translateX(-50%);
	white-space: nowrap; font-size: 0.7rem; font-weight: 700; color: #fff;
	background: rgba(11,27,64,0.85); padding: 1px 7px; border-radius: 6px; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}
.wk-sb__slot-vlag { position: absolute; top: -4px; right: -4px; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.wk-sb__slot-vlag img { width: 100%; height: 100%; object-fit: cover; }
.wk-sb__slot-wis { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; background: #14264f; color: #fff; border-radius: 50%; font-size: 0.8rem; line-height: 18px; opacity: 0; transition: opacity .12s; }
.wk-sb__slot--vol:hover .wk-sb__slot-wis { opacity: 1; }
.wk-sb__hint { text-align: center; color: var(--tekst-zacht, #667); font-size: 0.9rem; margin-top: 1.75rem; }

/* Spelersbank */
.wk-sb__bank { background: #fff; border: 1px solid var(--lijn, #e6e9f0); border-radius: 14px; overflow: hidden; position: sticky; top: 1rem; }
.wk-sb__bank-kop { padding: 0.9rem 1rem; border-bottom: 1px solid var(--lijn, #e6e9f0); display: flex; flex-direction: column; gap: 0.6rem; }
.wk-sb__bank-kop strong { font-size: 1.05rem; }
.wk-sb__zoek { width: 100%; border: 1px solid var(--lijn, #e6e9f0); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.9rem; }
.wk-sb__bank-lijst { list-style: none; margin: 0; padding: 0.4rem; max-height: 560px; overflow-y: auto; }
.wk-sb__bank-leeg { padding: 1rem; color: var(--tekst-zacht, #889); font-size: 0.9rem; text-align: center; }
.wk-sb__bank-item, .wk-sb__kiezer-item {
	width: 100%; display: flex; align-items: center; gap: 0.7rem; text-align: left;
	background: transparent; border: 0; border-radius: 9px; padding: 0.45rem 0.55rem; cursor: pointer;
	transition: background .12s;
}
.wk-sb__bank-item:hover, .wk-sb__kiezer-item:hover { background: #f1f4f9; }
.wk-sb__bank-foto, .wk-sb__kiezer-foto { flex: 0 0 auto; width: 40px; height: 50px; border-radius: 7px; overflow: hidden; background: #e9eef6; display: flex; align-items: center; justify-content: center; }
.wk-sb__bank-foto img, .wk-sb__kiezer-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wk-sb__bank-tekst, .wk-sb__kiezer-tekst { display: flex; flex-direction: column; min-width: 0; }
.wk-sb__bank-naam, .wk-sb__kiezer-naam { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-sb__bank-meta, .wk-sb__kiezer-meta { font-size: 0.78rem; color: var(--tekst-zacht, #889); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kiezer-overlay */
.wk-sb__kiezer { position: fixed; inset: 0; z-index: 9000; background: rgba(11,27,64,0.55); display: flex; align-items: flex-end; justify-content: center; }
.wk-sb__kiezer[hidden] { display: none; }
.wk-sb__kiezer-box {
	background: #fff; width: 100%; max-width: 520px; max-height: 80vh;
	border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding: 1rem;
	animation: wk-sb-omhoog .25s ease;
}
@keyframes wk-sb-omhoog { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wk-sb__kiezer-kop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.wk-sb__kiezer-sluit { background: #eef1f6; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.wk-sb__kiezer-lijst { list-style: none; margin: 0.6rem 0 0; padding: 0; overflow-y: auto; }
.wk-sb__kiezer-item.is-pas { box-shadow: inset 3px 0 0 #ff6a00; }
.wk-sb__kiezer-vlag { margin-left: auto; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; flex: 0 0 auto; }
.wk-sb__kiezer-vlag img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 720px) {
	.wk-sb__kiezer { align-items: center; }
	.wk-sb__kiezer-box { border-radius: 18px; max-height: 70vh; }
}
@media (max-width: 860px) {
	.wk-sb__layout { grid-template-columns: 1fr; }
	.wk-sb__bank { position: static; }
	.wk-sb__bank-lijst { max-height: 320px; }
	.wk-sb__pitch { max-width: 460px; margin: 0 auto; }
	.wk-sb__acties { margin-left: 0; width: 100%; flex-wrap: wrap; }
	.wk-sb__btn { flex: 1 1 calc(50% - 0.3rem); }
	.wk-sb__select { min-width: 0; width: 100%; }
	.wk-sb__veld-keuze { flex: 1 1 140px; }
}

/* ── Zelf-plaatsen: states ───────────────────────────────────────────── */
.wk-sb__bank-plus { margin-left: auto; flex: 0 0 auto; color: #ff6a00; font-size: 1.1rem; font-weight: 700; opacity: 0.7; }
.wk-sb__bank-item.is-opgepakt { background: #fff4ec; box-shadow: inset 0 0 0 2px #ff6a00; }
.wk-sb__bank-item.is-opgepakt .wk-sb__bank-plus { opacity: 1; }
/* Plaatsen-modus: laat de lege plekken oplichten zodat duidelijk is waar je kan tikken. */
body.wk-sb-plaatsen .wk-sb__slot:not(.wk-sb__slot--vol) {
	border-color: #ff6a00; background: rgba(255,106,0,0.22);
	animation: wk-sb-puls 1.1s ease-in-out infinite;
}
@keyframes wk-sb-puls { 0%,100% { box-shadow: 0 0 0 0 rgba(255,106,0,0.5); } 50% { box-shadow: 0 0 0 8px rgba(255,106,0,0); } }
.wk-sb__slot.is-droptarget { background: rgba(255,106,0,0.35); border-color: #ff6a00; transform: translate(-50%,-50%) scale(1.12); }
.wk-sb__bank-item { cursor: grab; }
.wk-sb__bank-item:active { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
	body.wk-sb-plaatsen .wk-sb__slot:not(.wk-sb__slot--vol) { animation: none; }
}

/* Team-statistieken (Tier 2) */
.wk-sb__stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: -0.4rem 0 1.25rem; }
.wk-sb__stat { flex: 1; min-width: 96px; background: #fff; border: 1px solid #e6e9ef; border-radius: 12px; padding: 0.6rem 0.5rem; text-align: center; box-shadow: 0 1px 2px rgba(14,26,43,0.06); }
.wk-sb__stat-getal { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem; color: #14264f; line-height: 1.1; }
.wk-sb__stat-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-top: 2px; }

/* Rugnummer + aanvoerdersband op de veld-tokens */
.wk-sb__slot-nr { position: absolute; bottom: -6px; left: -6px; min-width: 18px; height: 18px; padding: 0 4px; background: #14264f; color: #fff; border-radius: 9px; font-size: 0.7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 1px rgba(255,255,255,0.6); }
.wk-sb__slot-cap { position: absolute; bottom: -6px; right: -6px; width: 18px; height: 18px; background: rgba(20,38,79,0.55); color: #fff; border-radius: 50%; font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center; cursor: pointer; transition: background .12s ease; }
.wk-sb__slot-cap:hover { background: #14264f; }
.wk-sb__slot-cap.is-cap { background: #ffd200; color: #14264f; box-shadow: 0 0 0 2px rgba(255,210,0,0.45); }

/* Gebruiksuitleg boven de bouwer */
.wk-sb-uitleg { max-width: 760px; margin: 0.75rem 0 0; padding: 0; list-style: none; counter-reset: sb; display: flex; flex-direction: column; gap: 0.5rem; }
.wk-sb-uitleg li { position: relative; padding-left: 2.1rem; line-height: 1.5; color: #2a2f3a; counter-increment: sb; }
.wk-sb-uitleg li::before { content: counter(sb); position: absolute; left: 0; top: 0.05rem; width: 1.5rem; height: 1.5rem; background: #ff6a00; color: #fff; border-radius: 50%; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.85rem; line-height: 1.5rem; text-align: center; }
.wk-sb-uitleg strong { color: #14264f; }
