/*
Theme Name: De Kantine Zeeburgereiland
Theme URI: https://www.dekantine-zeeburgereiland.nl/
Author: De Kantine Zeeburgereiland
Description: Block theme (Full Site Editing) voor De Kantine in Sportgebouw Bibian Mentel, in de huisstijl van AW.DTV: zwart, AW.DTV-rood, Barlow Condensed en Poppins. Geen page builder nodig. Bevat Tools → De Kantine import en patronen voor hero, scorebord, menukaart, clubs, zaalhuur en call-to-actions.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dekantine
Tags: full-site-editing, block-patterns, custom-colors, editor-style, wide-blocks
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: #C2002F; color: #fff; }

/* ---------- Header ---------- */
.dk-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(18, 18, 18, .92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid #2A2A2A;
}
.admin-bar .dk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dk-header { top: 46px; } }
.dk-header .wp-block-site-logo img { max-height: 48px; width: auto; }
.dk-header .wp-block-navigation a:hover,
.dk-header .wp-block-navigation a[aria-current="page"] { color: #FF6B88; }
.dk-header .wp-block-navigation__responsive-container-open,
.dk-header .wp-block-navigation__responsive-container-close { color: #fff; }

/* ---------- Labels ---------- */
.dk-kicker {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .8125rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: #FF6B88; margin-bottom: .75rem !important;
}
.dk-kicker--live::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.dk-light .dk-kicker { color: #C2002F; }
.dk-muted { color: #C9C9C9; }
.dk-light .dk-muted { color: #4A4A4A; }
.dk-lead { font-size: 1.25rem; line-height: 1.55; max-width: 36rem; }

/* ---------- Secties ---------- */
.dk-section { padding-top: var(--wp--preset--spacing--70) !important; padding-bottom: var(--wp--preset--spacing--70) !important; }
.dk-section--tight { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.dk-light { background: #F6F5F3; color: #121212; }
.dk-light a:where(:not(.wp-element-button)) { color: #C2002F; }
.dk-light a:where(:not(.wp-element-button)):hover { color: #93001F; }
.dk-light .wp-block-button.is-style-outline > .wp-block-button__link { color: #121212; border-color: #121212; }
.dk-band { background: #1C1C1C; border-top: 1px solid #2A2A2A; border-bottom: 1px solid #2A2A2A; }
.dk-section-head { align-items: flex-end !important; }

/* ---------- Hero ---------- */
.dk-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(100deg, rgba(18,18,18,.97) 0%, rgba(18,18,18,.85) 50%, rgba(194,0,47,.35) 100%), #121212;
}
.dk-hero::before {
	content: ""; position: absolute; z-index: -1;
	top: -10%; right: 6%; width: 22%; height: 120%;
	background: #C2002F; opacity: .9; transform: skewX(-14deg);
}
.dk-hero h1 em,
.dk-slash em {
	display: inline-block; font-style: normal; color: #fff;
	background: #C2002F; padding: 0 .14em; transform: skewX(-8deg);
}
.dk-hero h1 { margin-top: 0; }
@media (max-width: 781px) { .dk-hero::before { width: 40%; right: -12%; opacity: .55; } }

/* ---------- Scorebord ---------- */
.dk-scoreboard {
	background: #1C1C1C; border: 1px solid #2A2A2A; border-radius: 14px;
	padding: 1.75rem !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.dk-scoreboard-title { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.4rem !important; letter-spacing: .06em; text-transform: uppercase; margin: 0 !important; }
.dk-badge { font-size: .75rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3DDC84; background: rgba(61, 220, 132, .12); padding: .4em .9em; border-radius: 999px; margin: 0 !important; }
.dk-tile { background: #121212; border-radius: 14px; border-top: 4px solid #C2002F; padding: 1.1rem !important; }
.dk-tile-value { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 3rem !important; line-height: 1 !important; color: #fff; margin: 0 !important; }
.dk-tile-label { font-size: .8125rem !important; color: #A3A3A3; margin: .4rem 0 0 !important; }

/* ---------- Ticker ---------- */
.dk-ticker { overflow: hidden; transform: rotate(-1.2deg); margin: 1.25rem -1.5rem 0 !important; background: #C2002F; }
.dk-ticker p {
	margin: 0; padding: 1.1rem 0; white-space: nowrap; display: inline-block;
	font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: .05em; text-transform: uppercase; color: #fff;
	animation: dk-marquee 40s linear infinite;
}
@keyframes dk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .dk-ticker p { animation: none; } }

/* ---------- Kaarten ---------- */
.dk-card {
	background: #1C1C1C; border: 1px solid #2A2A2A; border-radius: 14px;
	padding: var(--wp--preset--spacing--40) !important;
	height: 100%; display: flex; flex-direction: column;
	transition: transform .2s ease, border-color .2s ease;
}
.dk-card:hover { transform: translateY(-3px); border-color: #C2002F; }
.dk-card > :last-child { margin-top: auto; }
.dk-card h3 { margin-top: 1.25rem; }
.dk-card p { color: #C9C9C9; }
.dk-card--red { background: #C2002F; border-color: #C2002F; }
.dk-card--red p, .dk-card--red .dk-big { color: #fff; }
.dk-card--red .wp-element-button { background: #fff; color: #C2002F; }
.dk-card--red .wp-element-button:hover { background: #121212; color: #fff; }
.dk-card--dashed { background: transparent; border: 2px dashed #4A4A4A; }
.dk-card--club { min-height: 16rem; justify-content: flex-end; position: relative; overflow: hidden; border: 0; }
.dk-card--club > :last-child { margin-top: 0; }
.dk-card--club .dk-kicker { color: rgba(255, 255, 255, .8); }
.dk-card--club h3 { font-family: "Barlow Condensed", sans-serif; font-size: clamp(2rem, 3vw, 2.75rem); text-transform: uppercase; line-height: 1; color: #fff; margin-top: 0; }
.dk-card--club::after {
	content: ""; position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; opacity: .2;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M50 98V30M34 14h32l-4 16H38z'/%3E%3C/svg%3E");
}
.dk-card--club h3 a { color: inherit !important; text-decoration: none; }
.dk-card--club h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dk-card--club h3 a::after { content: " ↗"; font-size: .6em; vertical-align: .35em; opacity: .7; }
.dk-card--club:focus-within { outline: 3px solid #FF6B88; outline-offset: 3px; }
.dk-card--volley { background: #8DC73F; }
.dk-card--club .dk-club-logo {
	margin: 0 auto 1.5rem 0 !important; position: relative; z-index: 2; pointer-events: none;
	width: 88px; height: 88px; padding: 10px; box-sizing: border-box;
	background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	display: flex; align-items: center; justify-content: center;
}
.dk-card--volley .dk-club-logo { background: #8DC73F; border: 3px solid #fff; padding: 14px; }
.dk-card--club .dk-club-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.dk-card--club > .dk-club-logo + .dk-kicker { margin-top: auto !important; }
.dk-card--volley .dk-kicker, .dk-card--volley h3 { color: #000 !important; }
.dk-card--volley::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='4'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Cpath d='M50 10c-12 16-12 64 0 80M14 34c22 6 50 6 72 0M14 66c22-6 50-6 72 0'/%3E%3C/svg%3E"); }
.dk-icon { width: 40px; height: 40px; display: block; color: #C2002F; }
.dk-card .dk-big, .dk-big { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 4rem !important; line-height: 1 !important; margin: 0 !important; color: #fff; }

/* ---------- Menukaart ---------- */
.dk-menu-title { border-bottom: 3px solid #121212; padding-bottom: .6rem; margin-bottom: .5rem !important; }
.dk-menu table { border-collapse: collapse; width: 100%; table-layout: auto !important; }
.dk-menu td { border: 0 !important; border-bottom: 1px dashed #D4D2CE !important; padding: .8rem 0 !important; font-size: 1.125rem; }
.dk-menu td:last-child { text-align: right; font-weight: 800; white-space: nowrap; width: 7rem; }

/* ---------- Knoppen ---------- */
.wp-element-button { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-element-button:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #121212; border-color: #fff; }
.dk-light .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #121212; color: #fff; border-color: #121212; }
.dk-link-arrow a { font-weight: 700; text-decoration: none; }

/* ---------- Lijsten ---------- */
.dk-checklist { list-style: none; padding-left: 0 !important; }
.dk-checklist li { position: relative; padding-left: 1.8em; margin-bottom: .5em; }
.dk-checklist li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 1.1em; height: 1.1em; border-radius: 50%;
	background: #C2002F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 64% no-repeat;
}

/* ---------- Afbeeldingen ---------- */
.dk-photo img { border-radius: 14px; object-fit: cover; width: 100%; }
.dk-photo--tall img { aspect-ratio: 4 / 5; }
.dk-photo--wide img { aspect-ratio: 4 / 3; }

/* ---------- Embeds ---------- */
.dk-embed { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid #2A2A2A; background: #fff; }
.dk-embed iframe { display: block; width: 100%; border: 0; }
.dk-embed--calendar iframe { height: 760px; }
.dk-embed--map iframe { height: 420px; }
@media (max-width: 600px) { .dk-embed--calendar iframe { height: 600px; } }

/* ---------- Pagina-header ---------- */
.dk-page-header .wp-block-post-title { font-size: clamp(3.5rem, 9vw, 8rem); line-height: .9; margin-top: 0; }
.dk-page-header .wp-block-post-excerpt__excerpt { font-size: 1.25rem; max-width: 40rem; color: #C9C9C9; }
.dk-page-header .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Footer ---------- */
.dk-footer { border-top: 1px solid #2A2A2A; }
.dk-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.dk-footer a:hover { color: #FF6B88; }
.dk-footer p, .dk-footer li { color: rgba(255, 255, 255, .75); }
.dk-footer-list { list-style: none; padding-left: 0; }
.dk-footer-list li { margin-bottom: .35em; }
.dk-footer-bottom { border-top: 1px solid #2A2A2A; }
.dk-footer-bottom p { color: rgba(255, 255, 255, .5) !important; }

/* ---------- Responsief ---------- */
@media (max-width: 680px) {
	.dk-header-cta { display: none; }
}
