/* Domaincheck — Pixelhosting huisstijl */
:root{
    --blue:#07AAF9;
    --blue-dark:#0588c8;
    --ink:#2c3e50;
    --head:#34495e;
    --soft:#95a5a6;
    --faint:#bdc3c7;
    --ok:#27ae60;
    --notify:#07AAF9;
    --warn:#f39c12;
    --fail:#e74c3c;
    --error:#95a5a6;
    --sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    font-family: var(--sans);
    background-color: #F0F8FF;
    color: var(--ink);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px;
    margin: 40px 0 20px;
}

.logo { height: 46px; margin-bottom: 14px; }
h1 { font-size: 2.2em; color: var(--head); margin: 0 0 10px; word-wrap: break-word; }
.intro { color: var(--soft); font-size: 1em; margin: 0 auto; max-width: 62ch; line-height: 1.6; }

/* ---------- formulier ---------- */
.search { margin-top: 28px; text-align: left; }
.search label {
    display: block; font-weight: bold; color: #555;
    font-size: 0.95em; margin-bottom: 8px;
}
.search input[type=text] {
    width: 100%; padding: 14px 16px; font-size: 16px;
    font-family: var(--sans); color: var(--ink);
    border: 2px solid #e4e9ee; border-radius: 8px; background: #f8f9fa;
    transition: border-color 0.2s, background 0.2s;
}
.search input[type=text]:focus {
    outline: none; border-color: var(--blue); background: #fff;
}
.search input::placeholder { color: var(--faint); }

.copy-button {
    background-color: var(--blue); color: white; border: none; padding: 14px;
    border-radius: 5px; cursor: pointer; font-size: 1em; width: 100%; margin-top: 15px;
    transition: background 0.2s;
}
.copy-button:hover { background-color: var(--blue-dark); }
.copy-button:disabled { background-color: var(--faint); cursor: progress; }

.extras { margin-top: 14px; }
.extras summary {
    cursor: pointer; color: var(--blue); font-size: 0.9em; list-style: none;
    display: inline-block;
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary::before { content: "+ "; }
.extras[open] summary::before { content: "\2212 "; }
.extras-body { margin-top: 12px; }
.hint { color: var(--soft); font-size: 0.85em; margin: 8px 0 0; line-height: 1.5; }

.error-box {
    background: #fdecea; color: #c0392b; border-radius: 8px;
    padding: 12px 16px; margin-top: 16px; text-align: left; font-size: 0.95em;
}
.error-box[hidden] { display: none; }

/* ---------- voortgang ---------- */
.data-group {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: left;
}
.progress[hidden] { display: none; }

.score-line {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    justify-content: center;
}
.score-value { font-size: 2.4em; font-weight: bold; color: var(--head); line-height: 1; }
.score-label { color: var(--soft); font-size: 0.95em; }

.cache-note {
    background: #e7f6fe; color: #0b6a99; border-radius: 6px;
    padding: 10px 14px; margin: 16px 0 0; font-size: 0.88em; line-height: 1.5;
    text-align: center;
}
.cache-note[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.chip {
    font-size: 0.72em; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 4px; border: 1px solid #e4e9ee;
    background: #fff; color: var(--faint); cursor: pointer;
    font-family: var(--sans); transition: all 0.25s;
}
.chip[data-state=pending] { animation: pulse 1.4s ease-in-out infinite; }
.chip[data-state=ok]     { border-color: var(--ok);     color: var(--ok);     background: #eafaf1; }
.chip[data-state=notify] { border-color: var(--notify); color: var(--notify); background: #e7f6fe; }
.chip[data-state=warn]   { border-color: var(--warn);   color: var(--warn);   background: #fef5e7; }
.chip[data-state=fail]   { border-color: var(--fail);   color: var(--fail);   background: #fdecea; }
.chip[data-state=error]  { border-color: var(--error);  color: var(--error);  background: #f4f6f6; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.filters { display: flex; gap: 6px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.filters button {
    font-size: 0.85em; padding: 8px 14px; border-radius: 5px; cursor: pointer;
    border: 1px solid #e4e9ee; background: #fff; color: var(--soft);
    font-family: var(--sans); transition: all 0.2s;
}
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button[aria-pressed=true] { background: var(--head); border-color: var(--head); color: #fff; }

/* ---------- resultaten ---------- */
.check { border-left: 4px solid var(--faint); }
.check[data-state=ok]     { border-left-color: var(--ok); }
.check[data-state=notify] { border-left-color: var(--notify); }
.check[data-state=warn]   { border-left-color: var(--warn); }
.check[data-state=fail]   { border-left-color: var(--fail); }
.check[data-state=error]  { border-left-color: var(--error); }
.check.is-hidden { display: none; }

.check-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}
.data-title { font-size: 1.4em; color: var(--head); font-weight: bold; margin: 0; }

.badge {
    font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 4px; font-weight: bold; white-space: nowrap;
    background: #f4f6f6; color: var(--soft);
}
.check[data-state=ok] .badge     { background: #eafaf1; color: var(--ok); }
.check[data-state=notify] .badge { background: #e7f6fe; color: var(--notify); }
.check[data-state=warn] .badge   { background: #fef5e7; color: var(--warn); }
.check[data-state=fail] .badge   { background: #fdecea; color: var(--fail); }

.cache-tag {
    font-size: 0.7em; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 3px 8px; border-radius: 4px; background: #eef1f3; color: var(--soft);
    white-space: nowrap;
}
.cache-tag[hidden] { display: none; }

.force-button {
    background: none; border: 1px solid #9ed4f2; color: #0b6a99;
    border-radius: 5px; padding: 7px 14px; font-size: 0.9em; cursor: pointer;
    font-family: var(--sans); margin-top: 10px; transition: all 0.2s;
}
.force-button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.force-button[hidden] { display: none; }

.check-summary { color: #555; font-size: 0.98em; margin: 0; line-height: 1.55; }

.rows { margin-top: 14px; }
.expert-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; font-size: 0.92em; padding: 7px 0; border-bottom: 1px solid #ecf0f1;
}
.expert-row:last-child { border-bottom: none; }
.expert-label { font-weight: bold; color: var(--ink); min-width: 150px; flex-shrink: 0; }
.expert-val {
    font-family: var(--mono); color: var(--head); text-align: right;
    overflow-wrap: anywhere; flex: 1;
}
.expert-row[data-state=ok] .expert-val     { color: var(--ok); }
.expert-row[data-state=notify] .expert-val { color: var(--notify); }
.expert-row[data-state=warn] .expert-val   { color: var(--warn); }
.expert-row[data-state=fail] .expert-val   { color: var(--fail); font-weight: bold; }
.expert-row[data-state=muted] .expert-val  { color: var(--faint); }

.notes { margin: 14px 0 0; padding: 0; list-style: none; }
.notes li {
    background: #fff; border-radius: 6px; padding: 10px 12px 10px 34px;
    position: relative; color: #555; font-size: 0.9em; line-height: 1.55;
    margin-bottom: 8px;
}
.notes li:last-child { margin-bottom: 0; }
.notes li::before {
    content: "i"; position: absolute; left: 12px; top: 11px;
    width: 15px; height: 15px; border-radius: 50%; background: var(--blue);
    color: #fff; font-size: 10px; font-weight: bold; line-height: 15px; text-align: center;
}

.skeleton { height: 10px; background: #ecf0f1; border-radius: 3px; width: 45%; margin-top: 10px; }

.empty { color: var(--soft); font-size: 0.95em; padding: 24px; margin-top: 25px; }
.empty[hidden] { display: none; }

/* ---------- startlijst ---------- */
.what { columns: 2; column-gap: 30px; margin: 0; padding: 0; list-style: none; }
.what li {
    padding: 7px 0; border-bottom: 1px solid #ecf0f1; font-size: 0.9em;
    color: #555; break-inside: avoid;
}
.what code { font-family: var(--mono); color: var(--blue); font-size: 0.95em; margin-right: 6px; }

/* ---------- voet ---------- */
.footer-links { color: var(--faint); font-size: 0.9em; margin: 0 0 40px; padding: 0 20px; line-height: 2; }
.footer-links a { color: var(--faint); text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.footer-links a:hover { color: #7f8c8d; text-decoration: underline; }

button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--blue); outline-offset: 2px;
}

/* ---------- mobiel ---------- */
@media (max-width: 700px) {
    .container { padding: 24px 18px; width: 94%; margin: 20px 0 16px; }
    h1 { font-size: 1.7em; }
    .intro { font-size: 0.92em; }
    .data-group { padding: 16px; margin-top: 18px; }
    .data-title { font-size: 1.2em; }
    .what { columns: 1; }
    .expert-row {
        flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 10px;
    }
    .expert-label { min-width: 0; font-size: 0.85em; color: #555; }
    .expert-val { text-align: left; width: 100%; font-size: 0.95em; }
    .check-head { align-items: flex-start; }
    .chips, .score-line { justify-content: flex-start; }
    .cache-note { text-align: left; }
    .filters button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Toegevoegd bij het splitsen: verving de laatste inline styles. */
.force-wrap { text-align: center; }
.head-right { display: flex; gap: 8px; align-items: center; }

@media (max-width: 700px) {
    .force-wrap { text-align: left; }
}
