/* Clipster — generator. Losse stijl: deze pagina scrollt en print, de player niet. */

:root {
    --bg: #050608;
    --panel: #10131a;
    --line: #1c2331;
    --text: #f6f7fb;
    --muted: #9ea5c4;
    --accent: #1db954;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.page-head {
    text-align: center;
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.card.error {
    border-color: #5a2130;
    background: #1b1013;
    color: #ffd9d9;
    font-size: 0.95rem;
}

.card.warning {
    border-color: #5a4a21;
    background: #191408;
    color: #ffe9c2;
    font-size: 0.9rem;
}

.clip-answer {
    margin: 0 0 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #081018;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

.clip-answer strong {
    color: var(--accent);
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #2a3144;
    background: #081018;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.hint {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary { background: var(--accent); color: #041408; }
.btn.ghost   { background: #22252e; color: var(--text); }

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.result {
    text-align: center;
}

.qr-holder {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

#qr-canvas {
    width: min(280px, 70vw);
    height: auto;
    /* Scherpe blokjes in plaats van een wazige schaling. */
    image-rendering: pixelated;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
}

.clip-id {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

code {
    background: #081018;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.clip-url {
    margin: 0 0 16px;
    font-size: 0.85rem;
    word-break: break-all;
}

.clip-url a {
    color: var(--accent);
}

.answer-form {
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.form-kop {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.answer-form .field:last-of-type {
    margin-bottom: 12px;
}

.year-input {
    width: 6em;
    text-align: center;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-foot {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.page-foot a {
    color: var(--muted);
}

/* Printen: alleen de code en het adres, zwart op wit. */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .page-head,
    .page-foot,
    form,
    .result-actions,
    .hint {
        display: none !important;
    }

    .card {
        border: 0;
        background: none;
        padding: 0;
    }

    #qr-canvas {
        width: 70mm;
        padding: 0;
    }

    .clip-url a {
        color: #000;
    }
}
