/* ============================================================
   TAGGME — SITE CSS
   ============================================================ */

:root {
    --bg:          #060e12;
    --bg2:         #0a1820;
    --card:        #0d1f28;
    --card-hover:  #102430;
    --border:      rgba(255,255,255, 0.08);
    --border-glow: rgba(23,216,255, 0.30);
    --text:        #edf6fa;
    --muted:       #7da8b8;
    --faint:       #3e6575;
    --accent:      #17d8ff;
    --accent-dim:  #0ba8c8;
    --success-bg:  rgba(52,211,153, 0.12);
    --success-bd:  rgba(52,211,153, 0.40);
    --error-bg:    rgba(248,113,113, 0.12);
    --error-bd:    rgba(248,113,113, 0.40);
    --r:           16px;
    --r-sm:        10px;
    --font-sans:   "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    --font-display:"Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100svh;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}
h1,h2,h3,h4,p { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Achtergrondlaag — subtiele rasterlijnen */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
}

/* Cursor spotlight — volgt de muis via JS-variabelen */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        700px circle at var(--cx, 50%) var(--cy, 30%),
        rgba(23,216,255,.07) 0%,
        transparent 60%
    );
    transition: background .05s;
}

/* ── Shell ──────────────────────────────────────────────────────── */
.page-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 24px, 860px);
    margin: 0 auto;
    padding: 24px 0 48px;
}

/* ── Pagina grids ───────────────────────────────────────────────── */
.page,
.page-home,
.page-register,
.page-tag,
.page-simple {
    display: grid;
    gap: 10px;
}
.page-simple {
    min-height: 80svh;
    place-items: center;
}

/* ── Kaart-basis (gedeeld) ──────────────────────────────────────── */
.home-text,
.home-card,
.register-card,
.tag-hero,
.tag-empty-panel,
.tag-section,
.info-card,
.link-card,
.simple-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

/* ── Header & nav (alleen 404/fout) ────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    position: sticky;
    top: 12px;
    z-index: 50;
    backdrop-filter: blur(16px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0;
}
.brand-copy {
    display: grid;
    gap: 1px;
}
.brand-wordmark {
    display: inline-flex;
    align-items: flex-end;
    line-height: .9;
    white-space: nowrap;
}
.brand-mark {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    margin-right: -36px;
    transform: translate(12px, 20px);
    filter: drop-shadow(0 0 18px rgba(23,216,255,.16));
    position: relative;
    z-index: 2;
}
.brand-tail {
    display: inline-block;
    margin-left: -18px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}
.brand-name-accent { color: var(--accent); }
.brand-copy small { color: var(--muted); font-size: .75rem; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .875rem;
    transition: border-color .15s, color .15s;
}
.site-nav a:hover,
.site-nav a.is-active {
    border-color: var(--border-glow);
    color: var(--accent);
}

.site-footer {
    margin-top: 8px;
    padding: 12px;
    text-align: center;
    color: var(--faint);
    font-size: .8rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--card);
}

/* ── Knoppen ────────────────────────────────────────────────────── */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: var(--r);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.button:hover { opacity: .88; transform: translateY(-1px); }
.button:active { transform: translateY(0); opacity: 1; }

.button-primary {
    background: var(--accent);
    color: #04090c;
}
.button-secondary {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ── Meldingen ──────────────────────────────────────────────────── */
.notice {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: .9rem;
}
.notice p { margin: 2px 0; }
.notice-success { background: var(--success-bg); border: 1px solid var(--success-bd); }
.notice-error   { background: var(--error-bg);   border: 1px solid var(--error-bd); }

/* ── Eyebrow ────────────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============================================================
   HOME PAGINA — split layout
   boven: vrije tekst, onder: feature-cards, knop op de lijn
   ============================================================ */

.page-home {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    gap: 0;
    /* page-shell padding is 24px; we wil de 2 helften full-height */
    margin: -24px 0 -48px; /* compenseer page-shell padding */
}

/* ── Bovenste helft: tekst, geen container ──────────────────────── */
.home-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 0 52px;
    /* override de gedeelde kaart-stijl */
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.home-brand {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex-wrap: wrap;
}

.home-brand-mark {
    width: clamp(208px, 24vw, 324px);
    height: auto;
    flex: 0 0 auto;
    margin-right: clamp(-94px, -8vw, -136px);
    transform: translate(20px, 76px);
    filter: drop-shadow(0 0 28px rgba(23,216,255,.16));
    position: relative;
    z-index: 2;
}

.home-mark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4.4rem, 20vw, 12rem);
    line-height: .88;
    letter-spacing: -.06em;
    color: var(--text);
}

.home-brand-tail {
    display: inline-block;
    margin-left: -20px;
    position: relative;
    z-index: 1;
}

.home-mark .brand-name-accent {
    text-shadow:
        0 0 60px rgba(23,216,255,.35),
        0 0 120px rgba(23,216,255,.15);
}

.home-text h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--text);
    margin-top: 16px;
}

.home-slogan {
    color: var(--muted);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-top: 10px;
}

/* ── Knop — zit op de scheidslijn ───────────────────────────────── */
.home-cta {
    position: relative;
    z-index: 10;
    margin: -26px 0;   /* trekt knop half omhoog, half omlaag */
    display: flex;
}

.button-home {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    letter-spacing: .04em;
    animation: btn-pulse 3s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(23,216,255,.35),
            0 8px 28px rgba(23,216,255,.22),
            0 2px 8px rgba(0,0,0,.5);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(23,216,255,.55),
            0 10px 40px rgba(23,216,255,.38),
            0 2px 8px rgba(0,0,0,.5);
    }
}

.button-home:hover {
    animation: none;
    box-shadow:
        0 0 0 2px rgba(23,216,255,.7),
        0 14px 48px rgba(23,216,255,.45),
        0 2px 8px rgba(0,0,0,.5);
    opacity: 1;
}

/* ── Onderste helft: feature-cards ─────────────────────────────── */
.home-cards {
    flex: 1;
    padding-top: 52px;
    padding-bottom: 40px;
    position: relative;
}

/* subtiele gloed op de scheidingslijn */
.home-cards::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(23,216,255,.25), transparent);
    pointer-events: none;
}

.home-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

.home-card {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
    will-change: transform;
    transition: border-color .25s, background .25s, transform .25s;
    /* geen kaart-achtergrond: direct op de achtergrond */
    background: none;
    border: none;
    border-radius: 0;
}

/* gloed-rand die verschijnt bij hover (via JS tilt + CSS) */
.home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    background: linear-gradient(
        135deg,
        rgba(23,216,255,.08) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.home-card:hover::before { opacity: 1; }

/* groot achtergrond-nummer per kaart */
.home-card:nth-child(1)::after { content: "01"; }
.home-card:nth-child(2)::after { content: "02"; }
.home-card:nth-child(3)::after { content: "03"; }
.home-card:nth-child(4)::after { content: "04"; }
.home-card::after {
    position: absolute;
    bottom: -10px; right: 14px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,.04);
    pointer-events: none;
    user-select: none;
    transition: color .3s;
}
.home-card:hover::after { color: rgba(23,216,255,.09); }

.home-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.home-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ============================================================
   REGISTREER PAGINA
   ============================================================ */

.page-register {
    min-height: 100svh;
    place-items: center;
}

.register-card {
    width: 100%;
    max-width: 680px;
    margin: 40px auto;
    padding: 36px 32px;
    display: grid;
    gap: 24px;
    overflow: hidden;
}

.register-card-head { display: grid; gap: 8px; }

.register-brand-mark {
    width: 148px;
    height: 148px;
    flex: 0 0 auto;
    margin-right: -52px;
    transform: translate(14px, 34px);
    filter: drop-shadow(0 0 24px rgba(23,216,255,.14));
    position: relative;
    z-index: 2;
}

.register-brand {
    display: inline-flex;
    align-items: flex-end;
    width: fit-content;
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3rem;
    line-height: .9;
    letter-spacing: -.05em;
    color: var(--text);
}

.register-brand-tail {
    display: inline-block;
    margin-left: -24px;
    position: relative;
    z-index: 1;
}

.register-brand .brand-name-accent {
    text-shadow:
        0 0 40px rgba(23,216,255,.30),
        0 0 80px rgba(23,216,255,.12);
}

.register-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 4px;
}

.register-form { display: grid; gap: 16px; }

.register-grid {
    display: grid;
    gap: 16px;
}

.register-form label {
    display: grid;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted);
}

.register-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg2);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.register-form input:focus {
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(23,216,255,.1);
}

.register-submit {
    width: 100%;
    margin-top: 4px;
}

.register-form-note {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.45;
}

.register-form-note a {
    color: var(--accent);
    font-weight: 700;
}

.register-form-note a:hover {
    text-decoration: underline;
}

/* ============================================================
   TAG PAGINA'S
   ============================================================ */

.page-tag { gap: 10px; }

/* Hero */
.tag-hero {
    padding: 24px 20px;
    display: grid;
    gap: 8px;
}
.tag-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}
.tag-hero p { color: var(--muted); font-size: .95rem; }

/* Leeg */
.tag-empty-panel {
    padding: 40px 20px;
    display: grid;
    gap: 8px;
    text-align: center;
}
.tag-empty-panel h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}
.tag-empty-panel p { color: var(--muted); font-size: .9rem; }

/* Secties */
.tag-list { display: grid; gap: 10px; }

.tag-section {
    padding: 20px 18px;
    display: grid;
    gap: 12px;
}
.tag-section h2 {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}
.tag-section-feature { border-color: rgba(23,216,255,.22); }

/* Foto-grid */
.photo-grid,
.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.photo-card,
.photo-album-item {
    overflow: hidden;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg2);
}
.photo-card img,
.photo-album-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.photo-card figcaption,
.photo-album-caption {
    padding: 8px 12px;
    font-size: .8rem;
    color: var(--muted);
}

/* Info-kaart (generiek / visitekaartje / info-pagina) */
.stack-list,
.business-card-public-list,
.info-page-note-list { display: grid; gap: 8px; }

.info-card,
.business-card-public,
.info-page-note {
    padding: 16px;
    display: grid;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.info-card h3,
.business-card-public-copy h3,
.info-page-note h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}
.info-card p,
.info-card a,
.business-card-public-copy p,
.info-page-note p { color: var(--muted); font-size: .9rem; }
.info-card a,
.business-card-public-meta a { word-break: break-word; }
.business-card-public-meta span { word-break: break-word; color: var(--muted); }

/* Visitekaartje acties */
.business-card-public-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.business-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: .875rem;
    background: var(--accent);
    color: #04090c;
    border: none;
    transition: opacity .15s;
}
.business-card-action:hover { opacity: .85; }
.business-card-action-secondary {
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
}
.business-card-public-meta { font-size: .84rem; display: grid; gap: 4px; }

/* Link-rijen (gedeeld patroon: link-hub, business card links, info links, generiek) */
.link-grid,
.link-hub-public-list,
.business-card-link-list,
.info-page-link-list { display: grid; gap: 8px; }

.link-card,
.link-hub-public-link,
.business-card-link,
.info-page-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg2);
    font-weight: 700;
    font-size: .95rem;
    transition: background .15s, border-color .15s;
}
.link-card:hover,
.link-hub-public-link:hover,
.business-card-link:hover,
.info-page-link:hover {
    background: var(--card-hover);
    border-color: var(--border-glow);
}
.link-hub-public-link span,
.info-page-link span { font-weight: 700; font-size: .95rem; }

/* ============================================================
   SIMPELE PAGINA (404 / fout)
   ============================================================ */

.simple-panel {
    width: 100%;
    max-width: 500px;
    padding: 32px 24px;
    display: grid;
    gap: 16px;
    text-align: center;
}
.simple-panel h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}
.simple-panel p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (≥ 600px) — tag-pagina's, forms, grids */
@media (min-width: 600px) {
    .page-shell {
        width: min(100% - 32px, 900px);
        padding-top: 32px;
    }
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .business-card-public-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    .link-grid,
    .link-hub-public-list,
    .business-card-link-list,
    .info-page-link-list {
        grid-template-columns: 1fr 1fr;
    }

    .register-grid {
        grid-template-columns: 1fr 1fr;
    }

    .register-span-full {
        grid-column: 1 / -1;
    }
}

/* Desktop (≥ 800px) — home shell breder, cards op 4 kolommen */
@media (min-width: 800px) {
    body.theme-home .page-shell {
        width: min(100% - 48px, 1100px);
        padding-top: 0;
        padding-bottom: 0;
    }

    .page-home {
        margin: 0; /* reset de mobiele compensatie */
    }

    .home-text {
        padding: 64px 0 60px;
    }

    .home-mark {
        font-size: clamp(7rem, 12vw, 13rem);
    }

    .home-brand-mark {
        width: clamp(238px, 20vw, 346px);
        margin-right: clamp(-108px, -8vw, -154px);
        transform: translate(26px, 82px);
    }

    .home-text h1 {
        font-size: clamp(2.4rem, 4vw, 3.8rem);
    }

    .button-home {
        min-height: 58px;
        font-size: 1.05rem;
        border-radius: 18px;
    }

    .home-cards {
        padding-top: 58px;
        padding-bottom: 56px;
    }

    .home-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .home-card {
        padding: 26px 22px;
    }

    .home-card::after {
        font-size: 5.5rem;
    }
}

/* Breed desktop (≥ 1100px) — foto-album pagina mag breder */
@media (min-width: 1100px) {
    body.theme-tag-photo-album .page-shell {
        width: min(100% - 48px, 1200px);
    }
}

/* Klein mobiel (≤ 380px) — alles 1 kolom */
@media (max-width: 380px) {
    .home-card-grid,
    .photo-grid,
    .business-card-public-actions {
        grid-template-columns: 1fr;
    }
}
