/* Domeincheck – huisstijl Web Creators (Geist, beige, kobaltblauw), licht/donker. */

@import url('fonts.css');

:root {
    --bg: #f3ece1;            /* beige body-achtergrond webcreators.nl */
    --bg-deep: #eee5da;
    --surface: #fdfcfc;
    --surface-2: #f5f0e8;
    --text: #262424;
    --text-muted: #6f6d6d;
    --border: #e6dfd3;
    --accent: #424dff;
    --accent-hover: #353ecc;
    --accent-soft: #e2e4ff;
    --dark: #262424;
    --dark-hover: #1e1d1d;
    --green: #2f8f5b;
    --green-soft: #d9f2e3;
    --red: #d11a17;
    --red-soft: #ffcdcc;
    --orange: #9a5b00;
    --orange-soft: #ffe9b3;
    --gray-soft: #eae4da;
    --shadow: 0 1px 2px rgba(38, 36, 36, .04), 0 12px 32px -16px rgba(38, 36, 36, .18);
    --radius: 1.5rem;
    --radius-sm: .75rem;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --logo-light: block;
    --logo-dark: none;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1e1d1d;
        --bg-deep: #171616;
        --surface: #262424;
        --surface-2: #2f2d2d;
        --text: #f3ece1;
        --text-muted: #a8a3a0;
        --border: #3a3737;
        --accent: #6b73ff;
        --accent-hover: #8a90ff;
        --accent-soft: #2b2f80;
        --dark: #f3ece1;
        --dark-hover: #ffffff;
        --green: #77d09d;
        --green-soft: #1d3a2a;
        --red: #ff6b69;
        --red-soft: #4a1c1b;
        --orange: #ffcf72;
        --orange-soft: #4a3510;
        --gray-soft: #3a3737;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
        --logo-light: none;
        --logo-dark: block;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #1e1d1d;
    --bg-deep: #171616;
    --surface: #262424;
    --surface-2: #2f2d2d;
    --text: #f3ece1;
    --text-muted: #a8a3a0;
    --border: #3a3737;
    --accent: #6b73ff;
    --accent-hover: #8a90ff;
    --accent-soft: #2b2f80;
    --dark: #f3ece1;
    --dark-hover: #ffffff;
    --green: #77d09d;
    --green-soft: #1d3a2a;
    --red: #ff6b69;
    --red-soft: #4a1c1b;
    --orange: #ffcf72;
    --orange-soft: #4a3510;
    --gray-soft: #3a3737;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-feature-settings: "lnum";
}
strong, b { font-weight: 600; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: .35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 50rem; }
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px; max-width: 1140px; width: 100%; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); height: 46px; }
.theme-toggle {
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    width: 42px; height: 42px; border-radius: 50rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Layout */
.container { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 24px 56px; flex: 1; }
.site-footer { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 28px 24px 36px; }
.site-footer p { margin: 0; max-width: 720px; margin-inline: auto; }
.site-footer a { color: inherit; }

/* Hero + zoekveld */
.hero { padding: 32px 0 28px; max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 16px; }
.search {
    display: flex; gap: 8px; max-width: 720px; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 6px 6px 16px;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input {
    flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
    font-size: 1.1rem; padding: 8px 4px; outline: none; font-family: inherit;
}
.search input::placeholder { color: var(--text-muted); opacity: .75; }
.search button {
    border: 0; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem;
    padding: 0 20px; border-radius: var(--radius); cursor: pointer; position: relative; font-family: inherit; min-height: 44px;
    display: inline-flex; align-items: center;
}
.search button:hover { background: var(--accent-hover); }
.search button:disabled { opacity: .7; cursor: progress; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.search.is-loading .btn-label { visibility: hidden; }
.search.is-loading .btn-spinner { display: block; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--text-muted); font-size: .85rem; margin: 10px 0 0; }
.form-error { color: var(--red); background: var(--red-soft); border-radius: var(--radius-sm); padding: 10px 16px; max-width: 720px; margin: 14px 0 0; font-size: .95rem; text-align: left; }

/* Resultaten */
.results { margin-top: 12px; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.result-title h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 300; word-break: break-all; letter-spacing: -.01em; line-height: 1.05; }
.result-sub { margin: 4px 0 0; color: var(--text-muted); font-family: var(--mono); font-size: .9rem; word-break: break-all; }

.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 50rem;
    font-weight: 600; font-size: .95rem; background: var(--gray-soft); color: var(--text); white-space: nowrap;
}
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.badge-available { background: var(--green-soft); color: var(--green); }
.badge-registered { background: var(--red-soft); color: var(--red); }
.badge-warning { background: var(--orange-soft); color: var(--orange); }
.badge-loading .badge-dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Willekeurig-knop naast de badge */
.result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-random {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 50rem; cursor: pointer;
}
.btn-random:hover { border-color: var(--accent); color: var(--accent); }
.btn-random svg { flex: none; }

/* Samenvatting bovenaan */
.summary { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; margin: 0 0 22px; }
.summary-wide { grid-column: span 1; }
.summary-tile {
    background: var(--dark); color: var(--bg); border-radius: var(--radius); padding: 18px 22px; min-width: 0;
    display: flex; flex-direction: column; gap: 6px;
}
:root[data-theme="dark"] .summary-tile { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .summary-tile { background: var(--accent); color: #fff; } }
:root .summary-tile.is-good { background: #2f9e5f; color: #fff; }
:root .summary-tile.is-bad { background: #c94b4b; color: #fff; }
.summary-label { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .75; }
.summary-note { text-transform: none; letter-spacing: 0; font-weight: 300; opacity: .9; }
.summary-value { font-size: 1.35rem; font-weight: 600; line-height: 1.25; word-break: break-word; }
.summary-value .muted { opacity: .6; font-weight: 300; }
.summary-value .sub { display: block; font-size: .85rem; font-weight: 300; opacity: .8; margin-top: 2px; }
.summary-ns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.summary-ns li { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.summary-ns .note { font-family: var(--sans); font-size: .8rem; font-weight: 300; opacity: .8; }
.summary-owned {
    margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
    background: #77d09d; color: #0f2a1a; border-radius: 50rem; padding: 8px 16px 8px 12px; font-weight: 700; font-size: 1rem;
}
.summary-owned.not { background: #c94b4b; color: #fff; }
.summary-owned svg { width: 20px; height: 20px; flex: none; }
.summary-good { color: #77d09d; }
.summary-bad { color: #ff9a99; }
.summary-warn { color: #ffcf72; }
@media (max-width: 900px) { .summary { grid-template-columns: 1fr 1fr; } .summary-wide { grid-column: 1 / -1; } }
@media (max-width: 520px) { .summary { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card-wide { grid-column: 1 / -1; }
@media (max-width: 720px) {
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .hero { padding-top: 16px; }
    .search { flex-direction: column; border-radius: var(--radius); padding: 8px; }
    .search input { padding: 10px 14px; }
    .search button { justify-content: center; padding: 12px; }
    .brand img { height: 44px; }
    .site-header, .container { padding-left: 16px; padding-right: 16px; }
}

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 24px 14px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.card-meta { font-size: .8rem; color: var(--text-muted); }
.card-body { padding: 18px 24px 20px; flex: 1; }
.raw { border-top: 1px solid var(--border); }
.raw summary { cursor: pointer; padding: 12px 24px; font-size: .88rem; color: var(--text-muted); user-select: none; }
.raw summary:hover { color: var(--accent); }
.raw pre {
    margin: 0; padding: 14px 24px 18px; font-family: var(--mono); font-size: .78rem; line-height: 1.45;
    white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; background: var(--surface-2);
}

/* Sleutel/waarde-lijst */
.kv { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--text-muted); font-size: .9rem; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.kv dd.mono { font-family: var(--mono); font-size: .92rem; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.ok { color: var(--green); }
.warn { color: var(--orange); }
.bad { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 11px; border-radius: 50rem; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; font-family: var(--mono); }
.chip-label { font-family: var(--sans); font-weight: 600; background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip-ok { background: var(--green-soft); color: var(--green); border-color: transparent; font-family: var(--sans); font-weight: 600; }
.chip-warn { background: var(--orange-soft); color: var(--orange); border-color: transparent; font-family: var(--sans); font-weight: 600; }
.chip-bad { background: var(--red-soft); color: var(--red); border-color: transparent; font-family: var(--sans); font-weight: 600; }
.chip-more { cursor: pointer; font-family: var(--sans); color: var(--accent); border-style: dashed; }
.chip-more:hover { border-color: var(--accent); }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list .val { font-family: var(--mono); font-size: .92rem; word-break: break-all; }
.list .note { color: var(--text-muted); font-size: .82rem; }
.list.small li { flex-wrap: wrap; }
.txt-list li { align-items: flex-start; }
.txt-list .val { font-size: .82rem; }

.copy {
    flex: none; border: 1px solid var(--border); background: transparent; color: var(--text-muted);
    width: 26px; height: 26px; border-radius: 50rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.copied { color: var(--green); border-color: var(--green); }
.copy svg { width: 14px; height: 14px; }

.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 16px 0 6px; font-weight: 600; }
.section-title:first-child { margin-top: 0; }
.sub-label { margin: 10px 0 4px; font-size: .9rem; font-weight: 600; }
.sub-label .muted { font-weight: 300; font-size: .82rem; }
.stack > * + * { margin-top: 12px; }
.inline-chip .chip { margin-left: 8px; vertical-align: 2px; }
.links a { font-weight: 600; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); font-size: .95rem; }
.notice.error { background: var(--red-soft); color: var(--red); }
.notice.warn { background: var(--orange-soft); color: var(--orange); }
.notice.ok { background: var(--green-soft); color: var(--green); }
.notice button { margin-left: 8px; font: inherit; font-size: .85rem; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 50rem; padding: 3px 12px; cursor: pointer; }

/* Skeleton */
.skeleton { display: flex; flex-direction: column; gap: 10px; }
.skeleton span {
    display: block; height: 14px; border-radius: 50rem;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--gray-soft) 50%, var(--surface-2) 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.skeleton .w0 { width: 40%; } .skeleton .w1 { width: 72%; } .skeleton .w2 { width: 55%; } .skeleton .w3 { width: 85%; } .skeleton .w4 { width: 48%; }
.clipboard-helper { position: fixed; left: -9999px; top: 0; opacity: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .skeleton span, .btn-spinner, .badge-loading .badge-dot { animation: none; }
}

/* Redirect-keten */
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chain li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; min-width: 0; }
.chain .status { font-family: var(--mono); font-weight: 700; flex: none; width: 3ch; }
.chain .url { font-family: var(--mono); font-size: .85rem; word-break: break-all; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: var(--dark); color: var(--bg); padding: 10px 18px; border-radius: 50rem; font-size: .9rem; box-shadow: var(--shadow); z-index: 20;
}
