/*
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.1.0
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
*/

:root {
	--ink: #17202b;
	--ink-2: #2a3644;
	--paper: #f4f2ec;
	--surface: #ffffff;
	--line: #e3dfd6;
	--line-2: #cfc9bc;
	--muted: #5c6470;
	--accent: #c2500f;
	--accent-dark: #a8440b;
	--accent-soft: #fbe9dc;
	--font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--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); }
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: 9px; 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; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { border-color: #fff; color: #fff; }

/* header */
.site-header { background: var(--surface); 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: 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: 700; letter-spacing: .04em; }
.custom-logo { max-height: 40px; width: auto; }
.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: 7px; 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 { background: var(--ink); color: #eae7e0; padding: 96px 0 88px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #f0a877; margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); color: #fff; margin-bottom: 20px; }
.hero__lead { font-size: 20px; max-width: 38ch; color: #cfcbc2; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__panel { background: var(--ink-2); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: flow; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #dcd8cf; font-size: 16px; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: counter(flow); width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; }
.flow li.is-key::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero__panel-title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a9a59c; margin: 0 4px 4px; }

/* sections */
.section { padding: 88px 0; }
.section--line { border-top: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section__head p { color: var(--muted); font-size: 18px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.module { background: var(--surface); padding: 28px 26px; }
.module__code { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 14px; display: block; }
.module h3 { font-size: 20px; margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 16px; margin: 0; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.role { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; 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: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trust li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 16px; font-size: 16px; }
.trust li strong { font-weight: 600; }
.trust li span { color: var(--muted); }
.cta { background: var(--accent); color: #fff; border-radius: 16px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0; max-width: 22ch; }
.cta .btn { background: #fff; border-color: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 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(--ink); color: #dcd8cf; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth__brand .brand { color: #fff; }
.auth__brand h1 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); max-width: 16ch; }
.auth__brand p { color: #a9a59c; max-width: 40ch; }
.auth__meta { font-family: var(--mono); font-size: 12px; color: #8b877e; }
.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: 9px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; 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__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); 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); padding: 32px 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 { padding: 64px 0; }
	.hero__grid, .trust, .auth { grid-template-columns: minmax(0, 1fr); }
	.auth__brand { padding: 32px 24px; gap: 32px; }
	.trust li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.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; }
	.cta { padding: 32px 24px; }
}
