/*
 * Sitestijl voor het klantportaal (nov 2026) — zelfde look & feel als
 * provisualonline.nl: Bricolage Grotesque + Inter (lokaal, geen Google Fonts),
 * bijna-zwarte vlakken met blauwe/paarse/groene lichtvlekken, driekleurig
 * verloop, effen pilknoppen. Alleen uiterlijk; werking blijft van style.css.
 * Geladen NA style.css (views/partials/head.php). Uitzetten = die ene
 * <link>-regel weghalen.
 */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); }

/* ── kleuren + lettertypes ───────────────────────────────────────── */
:root,
:root[data-theme="light"],
body:has(.auth-wrap) {
    --paper: #f3f5fb;
    --panel: #ffffff;
    --surface-2: #f7f9fd;
    --surface-3: #eef1f7;
    --ink: #0b1020;
    --ink-soft: #3e4757;
    --faint: #687286; /* donkerder dan voorheen: kleine labels en voetregel leesbaar (contrast > 4:1) */
    --line: rgba(11, 16, 32, 0.08);
    --line-2: rgba(11, 16, 32, 0.15);
    --brand-text: #0a6fdb;
    --accent: #0b84ff;
    --accent-2: #22c55e;
    --accent-soft: #eaf3ff;
    --focus: #0b84ff;
    --hero: #05070f;
    --shadow-md: 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px -18px rgba(11, 16, 32, 0.18);
    --shadow-lg: 0 40px 80px -36px rgba(11, 16, 32, 0.55);
    --shadow-glow: 0 0 0 5px rgba(11, 16, 32, 0.08);
    --radius-lg: 24px;
    --font-display: 'Bricolage Grotesque', Inter, -apple-system, 'Segoe UI', sans-serif;
    --font-body: Inter, -apple-system, 'Segoe UI', Arial, sans-serif;
    --ps-grad: linear-gradient(90deg, #5ab0ff, #a78bfa 50%, #4ade80);
}
:root[data-theme="dark"] {
    --paper: #05070f;
    --panel: #0b1020;
    --surface-2: #10172b;
    --surface-3: #1b2438;
    --ink: #f1f4fa;
    --ink-soft: #a3acbf;
    --faint: #8d97ab;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --brand-text: #5ab0ff;
    --accent-soft: rgba(90, 176, 255, 0.13);
    --hero: #05070f;
    --shadow-glow: 0 0 0 5px rgba(255, 255, 255, 0.10);
}
::selection { background: rgba(124, 92, 255, 0.22); }

/* ── koppen ───────────────────────────────────────────────────────── */
h1, h2, h3, .page-header h1 { font-family: var(--font-display); letter-spacing: -0.03em; }
.page-header h1, main h1 { font-weight: 800; letter-spacing: -0.04em; }

/* ── knoppen: effen pil (donker op licht, wit op donker) ──────────── */
button, .btn {
    background: #05070f;
    color: #fff;
    font-weight: 700;
    box-shadow: none;
}
button:hover, .btn:hover { filter: none; opacity: 1; box-shadow: var(--shadow-glow); }
/* :where() houdt de specificiteit gelijk aan die van style.css' basisregel, zodat
   knoppen met een eigen klasse (themaschakelaar, tabs, iconen) hun eigen stijl houden */
:where(:root[data-theme="dark"]) button,
:where(:root[data-theme="dark"]) .btn { background: #fff; color: #05070f; }
/* knoppen die al een eigen variant hebben houden die (style.css zet die met eigen achtergrond) */

/* ── dashboard-hero ───────────────────────────────────────────────── */
.bento-hero {
    background:
        radial-gradient(circle at 92% 8%, rgba(124, 92, 255, 0.42), transparent 42%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
        var(--hero);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.bento-hero::before { background: radial-gradient(circle, rgba(11, 132, 255, 0.65), transparent 65%); }
.bento-hero::after { background: radial-gradient(circle, rgba(34, 197, 94, 0.45), transparent 65%); }
.bento-hero h1 { font-weight: 800; letter-spacing: -0.045em; }
.bento-hero h1 .grad { background: var(--ps-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: ps-gradshift 8s ease-in-out infinite; }
@keyframes ps-gradshift { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.bento-hero p { color: #c3cad9; }
.bento-btn.light { background: #fff; color: #05070f; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08); }
.bento-btn.light:hover { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.12); }
.bento-pill { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: #dce2ee; }

/* ── tegels ───────────────────────────────────────────────────────── */
.bento-grid .tile, .bento-action { border-radius: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.bento-grid .tile:hover, .bento-action:hover { transform: translateY(-3px); border-color: var(--line-2); }
.bento-title, .bento-big { letter-spacing: -0.03em; font-weight: 800; }

/* ── zijbalk ──────────────────────────────────────────────────────── */
.sidebar nav a { border-radius: 999px; }
.sidebar nav a.active { font-weight: 600; }

/* ── inlogscherm (split): linkerdeel in sitestijl ─────────────────── */
.login-split { font-family: var(--font-body); color: #0b1020; }
.ls-story {
    background:
        radial-gradient(circle at 88% 12%, rgba(124, 92, 255, 0.45), transparent 40%),
        #05070f;
}
.ls-blob-a { background: radial-gradient(circle, rgba(11, 132, 255, 0.62), transparent 65%); }
.ls-blob-b { background: radial-gradient(circle, rgba(34, 197, 94, 0.42), transparent 65%); }
.login-split h1, .login-split h2 { font-family: var(--font-display); letter-spacing: -0.04em; }
.ls-grad { background: var(--ps-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ps-gradshift 8s ease-in-out infinite; }
.ls-submit { background: #05070f !important; color: #fff !important; box-shadow: 0 0 0 5px rgba(5, 7, 15, 0.07) !important; filter: none !important; }
.ls-submit:hover { box-shadow: 0 0 0 7px rgba(11, 132, 255, 0.16) !important; }

@media (prefers-reduced-motion: reduce) {
    .bento-hero h1 .grad { animation: none; }
    .bento-grid .tile:hover, .bento-action:hover { transform: none; }
}
