/*
Theme Name:        TC Manager
Theme URI:         https://example.org/tc-manager
Description:       Klassiek thema voor de TC Manager-plugin: publieke landingspagina, login- en clubkeuzescherm en een app-shell voor de afgeschermde TC-pagina's. Compatibel met WPBakery.
Version: 0.7.4
Requires at least: 6.5
Requires PHP:      8.1
Author:            TC Manager
License:           GPL-2.0-or-later
Text Domain:       tc-manager-theme
Tags:              custom-menu, custom-logo, full-width-template, translation-ready
*/

/* Default brand colours (onlinebasketballcoach.nl): orange #fc6719, blue #0181c4. Change them under Weergave → Thema-instellingen;
   the shades below are derived from --accent and --blue. */
:root {
	--ink: #12293b;
	--ink-2: #2f4556;
	--paper: #f5f5f5;
	--surface: #ffffff;
	--line: #e4e6ea;
	--line-2: #d3d7de;
	--muted: #5b6b78;
	--accent: #fc6719;
	--accent-dark: color-mix(in srgb, var(--accent) 85%, #000);
	--accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
	--accent-line: color-mix(in srgb, var(--accent) 35%, #fff);
	--accent-text: color-mix(in srgb, var(--accent) 70%, #000);
	--blue: #0181c4;
	--blue-dark: color-mix(in srgb, var(--blue) 72%, #000);
	--blue-3: color-mix(in srgb, var(--blue) 84%, #000);
	--green: #59ba41;
	--on-dark-muted: #d9ebf6;
	--font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Bricolage Grotesque", var(--font);
	--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--surface); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--btn-radius, 999px); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--dark { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--dark:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* header */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h, 68px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.brand__logo { display: block; height: var(--logo-h, 40px); width: auto; max-width: min(280px, 60vw); object-fit: contain; }
.site-header--static { position: relative; }
.site-header--brand, .site-header--dark, .site-header--image { border-bottom-color: transparent; backdrop-filter: none; }
.site-header--brand { background: var(--blue); }
.site-header--dark { background: var(--ink); }
.site-header--image { background: linear-gradient(var(--header-overlay), var(--header-overlay)), var(--header-image) center / cover no-repeat; }
.site-header--on-dark .brand, .site-header--on-dark .brand:hover { color: #fff; }
.site-header--on-dark .site-nav a { color: rgba(255, 255, 255, .88); }
.site-header--on-dark .site-nav a:hover, .site-header--on-dark .site-nav .current-menu-item > a { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header--on-dark .btn--dark { background: var(--accent); border-color: var(--accent); }
.site-header--on-dark .btn--dark:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.site-header--on-dark .nav-toggle { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--paper); color: var(--ink); }
.site-header__cta { display: flex; gap: 8px; }
.site-header__cta .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid var(--accent-line); pointer-events: none; }
.hero::before { right: -180px; top: -220px; width: 620px; height: 620px; }
.hero::after { right: -40px; top: -80px; width: 340px; height: 340px; }
.hero__grid { position: relative; padding: 80px 24px 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.hero__lead { font-size: 20px; color: #4a566b; max-width: 40ch; margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.hero__actions .btn { min-height: 50px; padding: 0 26px; font-size: 17px; }
.preview { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(1, 92, 140, .35); overflow: hidden; }
.preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--blue-dark); color: #fff; font-size: 15px; font-weight: 600; }
.preview__bar span:last-child { font-size: 13px; font-weight: 400; color: var(--on-dark-muted); }
.preview__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.preview__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); }
.preview__row small { display: block; font-size: 13px; color: var(--muted); }
.preview__row strong { font-size: 16px; }
.preview__tasks { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 15px; }
.preview__tasks small { font-size: 13px; color: var(--muted); }
.preview__tasks span { display: flex; align-items: center; gap: 10px; }
.preview__tasks span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #c3c9d3; flex: none; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: #9a3b07; }
.tag--warn { background: #fdf3d3; color: #7a5600; }
.tag--ok { background: #e6f4e1; color: #2f6e22; }

/* sections */
.section { padding: 96px 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--blue-dark); color: #fff; }
.section__inner { display: flex; flex-direction: column; gap: 44px; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; }
.section--dark .section__head p { color: var(--on-dark-muted); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.section--dark .kicker { color: #ffc49e; }
.steps { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; counter-reset: step; }
.steps li { scroll-snap-align: start; counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--blue-3); }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; border: 2px solid #5aa6d3; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps strong { font-size: 17px; }
.steps span { font-size: 15px; color: var(--on-dark-muted); }
.steps li.is-key { background: var(--accent); color: var(--ink); }
.steps li.is-key::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.is-key span { color: var(--ink); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; padding: 28px; border-radius: 16px; border: 1px solid #3a8cbd; }
.rules h3 { font-size: 20px; margin-bottom: 8px; }
.rules p { font-size: 16px; color: var(--on-dark-muted); margin: 0; }
.rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.rules li { padding: 6px 12px; border-radius: 999px; background: var(--blue-3); font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0; display: flex; align-items: center; gap: 12px; }
.feature h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.feature--ink h3::before { background: var(--blue); }
.feature--ring h3::before { background: none; border: 3px solid var(--accent); }
.feature dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feature dt { font-weight: 600; }
.feature dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.role { padding: 20px; border-radius: 16px; background: var(--paper); }
.role strong { display: block; font-size: 17px; margin-bottom: 4px; }
.role span { color: var(--muted); font-size: 15px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: start; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trust li { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.trust li strong { display: block; margin-bottom: 4px; }
.trust li span { color: var(--muted); font-size: 15px; }
.section--cta { padding: 0 0 96px; }
.cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; border-radius: 24px; padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); pointer-events: none; }
.cta h2 { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); margin: 0; max-width: 20ch; }
.cta .btn { position: relative; min-height: 52px; padding: 0 28px; background: #fff; border-color: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* contact */
.contact { padding: 72px 24px 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 14px; }
.contact__intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.contact__text { font-size: 18px; color: var(--muted); max-width: 44ch; margin: 0; }
.contact__text p { margin: 0 0 12px; }
.contact__facts { margin: 16px 0 0; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__facts dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.contact__facts dd { margin: 2px 0 0; }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.contact__card h2 { font-size: 24px; margin: 0; }
.contact__card p { margin: 0; }
.contact__error { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8f1d14; font-weight: 600; font-size: 15px; }
.contact__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; margin-top: 6px; }
.contact__form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.contact__form input:not([type=hidden]), .contact__form select, .contact__form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: var(--ink); }
.contact__form textarea { resize: vertical; min-height: 140px; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact__form [aria-invalid="true"] { border-color: #c0392b; }
.contact__wide { grid-column: 1 / -1; }
.contact__opt { font-weight: 400; color: var(--muted); }
.contact__note { font-size: 14px; color: var(--muted); }
.contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* content pages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); }
.entry { padding-bottom: 80px; }
.entry > * { max-width: 72ch; }
.entry > .alignwide, .entry > .alignfull, .entry > .vc_row, .entry > .wpb-content-wrapper { max-width: none; }
.post-list { display: grid; gap: 24px; padding-bottom: 80px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.post-card h2 { font-size: 24px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card time { font-size: 14px; color: var(--muted); }

/* WPBakery full width */
.template-full-width .site-main { padding: 0; }
.template-full-width .vc_row[data-vc-full-width] { overflow: hidden; }

/* login / club picker */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__brand { background: var(--blue-dark); color: var(--on-dark-muted); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__brand .brand { color: #fff; }
.auth__brand h1 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.6vw, 48px); max-width: 16ch; }
.auth__brand p { color: var(--on-dark-muted); max-width: 40ch; }
.auth__brand--image { background: linear-gradient(color-mix(in srgb, var(--blue-dark) 80%, transparent), color-mix(in srgb, var(--blue-dark) 80%, transparent)), var(--auth-image) center / cover no-repeat; }
.auth__meta { font-family: var(--mono); font-size: 12px; color: #a9d0e8; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--paper); }
.auth__box { width: 100%; max-width: 420px; }
.auth__box h2 { font-size: 28px; margin-bottom: 6px; }
.auth__box > p { color: var(--muted); }
.auth form p { margin: 0 0 16px; }
.auth label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.auth input[type=text], .auth input[type=password], .auth input[type=email] { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; }
.auth input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.auth input[type=submit] { width: 100%; min-height: 48px; border-radius: var(--btn-radius, 999px); border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.auth input[type=submit]:hover { background: var(--accent-dark); }
.auth__links { display: flex; justify-content: space-between; font-size: 14px; margin-top: 8px; }
.auth__box--wide { max-width: 560px; }
.auth__steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.auth__steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.auth__steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.auth__error { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8f1d14; font-weight: 600; font-size: 15px; }
.reg { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.reg__group { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.reg__group legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; padding: 0; }
.reg__group p { margin: 0; }
.reg__wide { grid-column: 1 / -1; }
.reg__opt { font-weight: 400; color: var(--muted); }
.reg__hint { font-size: 14px; color: var(--muted); }
.reg__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth .reg input[type=email], .auth .reg input:not([type]), .auth .reg select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: var(--ink); }
.auth .reg input:focus, .auth .reg select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth .reg [aria-invalid="true"] { border-color: #c0392b; }
.reg__accept label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.reg__accept input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.auth__note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.clubs { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.club-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.club-option:hover { border-color: var(--ink); color: var(--ink); }
.club-option__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.club-option__name { font-weight: 600; display: block; }
.club-option__role { font-size: 14px; color: var(--muted); }
.club-option__go { margin-left: auto; color: var(--accent-text); font-weight: 600; }

/* app shell */
body.is-app-shell { background: var(--paper); }
.app-frame .tcm-app { min-height: 100vh; }
.app-frame--guest { min-height: 70vh; display: grid; place-items: center; padding: 48px 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
	.hero__grid { padding: 56px 24px 64px; }
	.auth { grid-template-columns: minmax(0, 1fr); }
	.auth__brand { padding: 32px 24px; gap: 32px; }
	.nav-toggle { display: inline-flex; align-items: center; }
	.site-nav, .site-header__cta { display: none; }
	.site-header.is-open .site-header__inner { flex-wrap: wrap; padding-bottom: 12px; }
	.site-header.is-open .site-nav, .site-header.is-open .site-header__cta { display: block; width: 100%; margin: 0; }
	.site-header.is-open .site-nav ul { flex-direction: column; }
	.section { padding: 64px 0; }
	.section--cta { padding-bottom: 64px; }
	.cta { padding: 36px 24px; }
}
