/*
 * Plik: verify.css
 * Data powstania: 2026-08-20
 * Data ostatniej modyfikacji: 2026-08-20
 * Autor: Waldemar Sokolowski
 * Opis: Responsywny wygląd publicznej strony weryfikacji raportów BizScope.
 */

:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --border: #dbe3ee;
    --soft-blue: #eff6ff;
    --teal: #2dd4bf;
    --success: #10b981;
    --warning: #f59e0b;
    --risk: #ef4444;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 14px 40px rgba(15, 23, 42, .09);
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

html.dark {
    --bg: #0b1220;
    --surface: #0f172a;
    --surface-soft: #111c30;
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --navy: #f8fafc;
    --slate: #cbd5e1;
    --muted: #94a3b8;
    --border: #334155;
    --soft-blue: rgba(30, 58, 138, .3);
    --success: #4ade80;
    --warning: #fbbf24;
    --risk: #f87171;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--slate);
    background:
        radial-gradient(900px 460px at 88% -8%, rgba(59, 130, 246, .12), transparent 60%),
        radial-gradient(760px 420px at -4% 105%, rgba(45, 212, 191, .10), transparent 56%),
        var(--bg);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button, input { font: inherit; }

button, a, input, .upload-zone {
    transition: color .18s ease, background .18s ease, border-color .18s ease,
        box-shadow .18s ease, transform .18s ease;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
    display: flex;
    min-height: 86px;
    padding: 8px 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 1.45rem;
    letter-spacing: -.45px;
    text-decoration: none;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.wordmark .biz { color: var(--primary-dark); font-weight: 700; }
.wordmark .scope { color: var(--teal); font-weight: 400; }

.header-tools, .language-switch, .theme-switch {
    display: flex;
    align-items: center;
}

.header-tools { gap: 12px; }

.language-switch, .theme-switch {
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
}

.language-switch a, .theme-switch button {
    min-width: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.language-switch a.active, .theme-switch button.active {
    color: #fff;
    background: var(--primary);
}

.hero {
    padding: 64px 0 32px;
    text-align: center;
}

.hero h1 {
    max-width: 780px;
    margin: 0 auto 18px;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -1.3px;
}

.hero-copy {
    max-width: 730px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.verification-panel {
    margin: 8px auto 64px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-heading { margin-bottom: 26px; text-align: center; }
.panel-heading h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.45rem; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .95rem; }

.method-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
}

.method-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
}

.method-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.method-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--primary-dark);
    background: var(--soft-blue);
    font-size: 1.05rem;
}

.method-title h3 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.method-description { min-height: 52px; margin: 0 0 18px; color: var(--muted); font-size: .88rem; }

.or-divider { display: flex; align-items: center; justify-content: center; }
.or-divider::before { width: 1px; height: 100%; background: var(--border); content: ""; }
.or-divider span {
    position: absolute;
    padding: 8px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.upload-zone {
    display: grid;
    min-height: 150px;
    padding: 22px;
    place-items: center;
    border: 2px dashed #a9b8cc;
    border-radius: 14px;
    background: var(--surface);
    text-align: center;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: var(--soft-blue);
}

.upload-zone > span { min-width: 0; max-width: 100%; }
.upload-main-icon { margin-bottom: 8px; color: var(--primary); font-size: 1.7rem; }
.upload-zone strong {
    display: block;
    max-width: 100%;
    color: var(--navy);
    font-size: .92rem;
}
.upload-zone small { display: block; color: var(--muted); font-size: .76rem; }
.upload-state-label { display: none !important; margin-bottom: 5px; color: var(--primary-dark) !important; font-weight: 700; text-transform: uppercase; }

.upload-zone.has-file .upload-main-icon { display: none; }
.upload-zone.has-file .upload-state-label { display: block !important; }
.upload-zone.has-file strong {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.35;
}
.upload-zone.has-file #upload-help { margin-top: 8px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.field { margin-bottom: 15px; }
.field-label-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.field label { display: block; color: var(--navy); font-size: .82rem; font-weight: 700; }

.help-wrap { position: relative; display: inline-flex; }

.help-trigger {
    display: grid;
    width: 19px;
    height: 19px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--muted);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: .64rem;
    cursor: pointer;
}

.help-trigger:hover, .help-trigger:focus-visible, .help-wrap.is-open .help-trigger {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    outline: none;
}

.help-popover {
    position: absolute;
    left: -100px;
    bottom: calc(100% + 10px);
    z-index: 30;
    display: none;
    width: 280px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--slate);
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: .77rem;
    font-weight: 400;
    line-height: 1.5;
}

.help-popover::after {
    position: absolute;
    left: 106px;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: var(--surface);
    content: "";
}

.help-popover code {
    display: block;
    margin: 8px 0;
    padding: 8px;
    overflow-wrap: anywhere;
    border-radius: 7px;
    color: var(--navy);
    background: var(--surface-soft);
    font-family: "Consolas", "Courier New", monospace;
    font-size: .72rem;
}

.help-wrap:hover .help-popover,
.help-wrap:focus-within .help-popover,
.help-wrap.is-open .help-popover { display: block; }

.field input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--navy);
    background: var(--surface);
    font-size: .86rem;
}

.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.hash-input { font-family: "Consolas", "Courier New", monospace; }

.btn-primary {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 7px 18px rgba(37, 99, 235, .22);
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .65; cursor: wait; transform: none; }

.privacy-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 24px 0 0;
    padding: 13px 15px;
    border-radius: 12px;
    color: var(--muted);
    background: var(--soft-blue);
    font-size: .82rem;
}

.privacy-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.privacy-row i { margin-top: 3px; color: var(--primary-dark); text-align: center; }

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
    font-size: .82rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.footer-inner p { margin: 0; }
.footer-institution { color: var(--slate); }
.footer-institution strong { color: var(--navy); }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, .68);
    backdrop-filter: blur(7px);
}

.modal-backdrop.is-open { display: flex; }

.result-modal {
    width: min(500px, 100%);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
    text-align: center;
}

.modal-close-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin: -13px -13px 0 auto;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    cursor: pointer;
}

.result-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 2px auto 18px;
    place-items: center;
    border-radius: 999px;
    font-size: 1.65rem;
}

.result-modal[data-kind="match"] .result-icon { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.result-modal[data-kind="mismatch"] .result-icon { color: var(--risk); background: color-mix(in srgb, var(--risk) 14%, transparent); }
.result-modal[data-kind="no_fingerprint"] .result-icon { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.result-modal[data-kind="invalid"] .result-icon,
.result-modal[data-kind="too_large"] .result-icon,
.result-modal[data-kind="unsupported_file"] .result-icon,
.result-modal[data-kind="missing_verification_data"] .result-icon,
.result-modal[data-kind="rate_limited"] .result-icon,
.result-modal[data-kind="unavailable"] .result-icon { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }

.result-modal h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.4rem; }
.result-modal p { margin: 0 0 24px; color: var(--muted); font-size: .95rem; }
.result-modal .btn-primary { min-width: 130px; margin: 0; }

@media (max-width: 820px) {
    .hero { padding-top: 46px; }
    .verification-panel { padding: 24px; }
    .method-grid { grid-template-columns: 1fr; }
    .or-divider { min-height: 28px; }
    .or-divider::before { width: 100%; height: 1px; }
    .method-description { min-height: 0; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1120px); }
    .header-inner { min-height: 68px; gap: 10px; }
    .brand-icon { width: 40px; height: 40px; }
    .wordmark { gap: 8px; font-size: 1.22rem; }
    .theme-switch { display: none; }
    .hero { padding: 38px 0 24px; }
    .hero h1 { font-size: 2rem; }
    .hero-copy { font-size: .96rem; }
    .verification-panel { margin-bottom: 40px; padding: 16px; border-radius: 18px; }
    .method-card { padding: 20px; }
    .help-popover {
        right: -20px;
        left: auto;
        width: min(280px, calc(100vw - 48px));
    }
    .help-popover::after { right: 23px; left: auto; }
    .footer-inner { align-items: center; text-align: center; }
}

/* Koniec pliku: verify.css */
