/* Website-test (website-test.php) — bouwt verder op de variabelen uit style.css */

.wt-report-section[hidden] { display: none; }

/* ---------- Formulier in de hero ---------- */
.wt-form { margin-top: 34px; position: relative; z-index: 1; }

.wt-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.wt-form-row { display: flex; gap: 10px; }

.wt-form-row input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    font: inherit;
    font-size: 17px;
    color: var(--text-main);
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.wt-form-row input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(0, 179, 230, 0.25);
}

.wt-form-row .btn-primary {
    font-size: 16px;
    padding: 15px 26px;
    cursor: pointer;
    white-space: nowrap;
}

.wt-form-row .btn-primary:disabled { opacity: 0.7; cursor: progress; }

.wt-form-note {
    min-height: 24px;
    margin-top: 12px;
    font-size: 14.5px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.wt-form-note.is-error { color: #ffb4b4 !important; font-weight: 600; }

.wt-form-note.is-busy::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wt-spin 0.8s linear infinite;
}

@keyframes wt-spin { to { transform: rotate(360deg); } }

/* ---------- Rapport ---------- */
.wt-report-section { padding: 70px 0 80px; background: var(--bg-surface); }
.wt-container { max-width: 980px; }
.wt-container:focus { outline: none; }

.wt-summary {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 34px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px;
}

.wt-ring { position: relative; width: 190px; height: 190px; }
.wt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wt-ring circle { fill: none; stroke-width: 12; }
.wt-ring .wt-ring-track { stroke: var(--bg-surface-alt); }
.wt-ring .wt-ring-value { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }

.wt-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wt-ring-label b { font-family: var(--font-display); font-size: 58px; font-weight: 700; color: var(--ink); }
.wt-ring-label span { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-light); }

.wt-summary h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.wt-summary .wt-host { font-size: 14px; font-weight: 600; color: var(--text-light); margin-bottom: 10px; word-break: break-all; }
.wt-summary p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

.wt-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.wt-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.wt-pill::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.wt-ok { color: #12734c; background: #e3f6ec; }
.wt-warn { color: #8a5a00; background: #fdf1d6; }
.wt-fail { color: #b3261e; background: #fde7e5; }

/* ---------- Scores per domein ---------- */
.wt-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }

.wt-cat {
    display: block;
    text-align: left;
    width: 100%;
    font: inherit;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}

.wt-cat:hover, .wt-cat:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-md); outline: none; }
.wt-cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wt-cat-name { font-weight: 700; color: var(--ink); font-size: 16px; }
.wt-cat-score { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.wt-cat-bar { height: 8px; margin: 10px 0 10px; background: var(--bg-surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.wt-cat-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 0.9s ease; }
.wt-cat-intro { font-size: 13.5px; line-height: 1.5; color: var(--text-light); }

.wt-c-ok { color: #12734c; }
.wt-c-warn { color: #8a5a00; }
.wt-c-fail { color: #b3261e; }
.wt-b-ok { background: #1f9d6b; stroke: #1f9d6b; }
.wt-b-warn { background: #e0a100; stroke: #e0a100; }
.wt-b-fail { background: #d64545; stroke: #d64545; }

/* ---------- Blokken ---------- */
.wt-block {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    scroll-margin-top: 100px;
}

.wt-block h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.wt-block-sub { color: var(--text-light); font-size: 15px; margin-bottom: 18px; }
.wt-block-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.wt-prio { list-style: none; counter-reset: prio; display: grid; gap: 14px; }
.wt-prio li { counter-increment: prio; position: relative; padding-left: 50px; }

.wt-prio li::before {
    content: counter(prio);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: var(--accent);
}

.wt-prio b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 3px; }
.wt-prio span { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Controles ---------- */
.wt-checks { list-style: none; }
.wt-check { border-top: 1px solid var(--border-color); }
.wt-check:first-child { border-top: none; }
.wt-check details > summary { list-style: none; }
.wt-check details > summary::-webkit-details-marker { display: none; }

.wt-check-head {
    display: grid;
    grid-template-columns: 96px 1fr 18px;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
}

.wt-check-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wt-check-title { font-weight: 600; color: var(--text-main); font-size: 15.5px; }
.wt-check-head .wt-pill { justify-content: center; font-size: 12.5px; padding: 4px 8px; }

.wt-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

details[open] .wt-chevron { transform: rotate(-135deg); }

.wt-check-body { padding: 0 0 18px 110px; color: var(--text-muted); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.wt-check-body p + p { margin-top: 8px; }
.wt-check-fix { color: var(--text-main); }
.wt-check-fix b { color: var(--ink); }
.wt-check-body a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Oproep ---------- */
.wt-cta { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.wt-cta h3 { color: #fff; font-size: 26px; }
.wt-cta p { color: rgba(255, 255, 255, 0.82); font-size: 16px; line-height: 1.65; max-width: 720px; }
.wt-cta p + p { margin-top: 10px; }
.wt-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wt-cta .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.wt-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.wt-cta-note { margin-top: 18px !important; font-size: 13.5px !important; color: rgba(255, 255, 255, 0.6) !important; }
.wt-cta-note a { color: #fff; }

.wt-footnote { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--text-light); text-align: center; }

/* ---------- Uitleg onderaan ---------- */
.wt-madeby {
    max-width: 780px;
    margin: 44px auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.wt-madeby a { color: var(--accent-dark); font-weight: 600; }

.wt-badge {
    display: table;
    margin: 0 auto 12px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

@media (max-width: 860px) {
    .wt-cats { grid-template-columns: repeat(2, 1fr); }
    .wt-summary { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 22px; }
    .wt-counts { justify-content: center; }
    .wt-ring { width: 160px; height: 160px; }
    .wt-ring-label b { font-size: 48px; }
}

@media (max-width: 560px) {
    .wt-form-row { flex-direction: column; }
    .wt-form-row .btn-primary { width: 100%; }
    .wt-report-section { padding: 40px 0 50px; }
    .wt-block { padding: 22px 18px; }
    .wt-check-head { grid-template-columns: 1fr 18px; gap: 6px 10px; }
    .wt-check-head .wt-pill { grid-column: 1 / -1; justify-self: start; }
    .wt-check-body { padding-left: 0; }
    .wt-cat { padding: 14px; }
    .wt-cat-intro { display: none; }
    .wt-cta-buttons a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .wt-ring .wt-ring-value, .wt-cat-bar i, .wt-chevron { transition: none; }
    .wt-form-note.is-busy::before { animation-duration: 2s; }
}
