/* ═══════════════════════════════════════════════════
   verificar.css — verificação pública de certificados
   ═══════════════════════════════════════════════════ */

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a14;
    color: #e2e8f0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

/* ─── Card principal ─────────────────────────────────────────────────────── */
.vcard {
    background: linear-gradient(160deg, rgba(15,23,42,.97), rgba(8,14,30,.95));
    border: 1px solid rgba(99,102,241,.28);
    border-radius: 22px;
    padding: 44px 40px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(99,102,241,.08);
}

.vcard-brand {
    display: block;
    line-height: 0;
    margin: 0 0 28px;
    text-align: center;
    text-decoration: none;
}
.vcard-brand img {
    height: 36px;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    display: inline-block;
    object-fit: contain;
}

/* ─── Ícone de estado ────────────────────────────────────────────────────── */
.vcard-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 36px;
    transition: background 0.3s;
}

/* ─── Texto ──────────────────────────────────────────────────────────────── */
h1 {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    margin: 0 0 8px;
    color: #f1f5f9;
}
.subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 28px;
    line-height: 1.65;
}

/* ─── Formulário de busca ────────────────────────────────────────────────── */
.search-section {
    margin-bottom: 8px;
    text-align: left;
}

.search-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a78bfa;
    margin-bottom: 10px;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 14px;
    color: #6366f1;
    flex-shrink: 0;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(139,92,246,.4);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 15px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.03em;
}
.search-input:focus {
    border-color: #6366f1;
    background: rgba(99,102,241,.1);
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.search-input::placeholder { color: #475569; }

/* Shake animation for empty submit */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.search-input.shake {
    animation: shake 0.4s ease;
    border-color: #ef4444;
}

.btn-verify {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.btn-verify:hover {
    background: #5558e3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.btn-verify:active { transform: translateY(0); }

.search-hints {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}
.search-hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}
.search-hint-item svg { flex-shrink: 0; color: #6366f1; }

/* ─── Grid de info ───────────────────────────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 20px;
    text-align: left;
}
.info-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 14px;
}
.info-label {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}
.info-value { font-size: 14px; color: #e2e8f0; font-weight: 500; }
.info-highlight { font-size: 16px; font-weight: 700; color: #ddd6fe; }

/* ─── Integridade ────────────────────────────────────────────────────────── */
.integrity-box {
    background: rgba(16,185,129,.07);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}
.integrity-box.fail {
    background: rgba(239,68,68,.07);
    border-color: rgba(239,68,68,.25);
}
.integrity-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,185,129,.12);
}
.integrity-box.fail .integrity-icon-wrap { background: rgba(239,68,68,.12); }
.integrity-title { font-size: 14px; font-weight: 700; color: #10b981; margin: 0 0 4px; }
.integrity-box.fail .integrity-title { color: #ef4444; }
.integrity-desc { font-size: 12px; color: #64748b; margin: 0; line-height: 1.55; }

/* ─── ID box ─────────────────────────────────────────────────────────────── */
.cert-id-box {
    background: rgba(99,102,241,.07);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    text-align: left;
}
.cert-id-label {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.cert-id-val {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #a78bfa;
    word-break: break-all;
}
.copy-btn {
    flex-shrink: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 7px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: rgba(99,102,241,.2); color: #a78bfa; }

/* ─── Detalhes técnicos ──────────────────────────────────────────────────── */
.tech-details {
    text-align: left;
    margin-bottom: 20px;
}
.tech-details summary {
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    user-select: none;
    padding: 4px 0;
    transition: color 0.15s;
}
.tech-details summary:hover { color: #6366f1; }
.tech-details[open] summary { color: #6366f1; }
.hash-box {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 10px;
    color: #475569;
    word-break: break-all;
    text-align: left;
    margin: 8px 0;
}
.hash-label { color: #6366f1; display: block; margin-bottom: 3px; font-size: 10px; }
.hash-meta { font-size: 11px; color: #334155; margin: 4px 0 0; }

/* ─── Notices ────────────────────────────────────────────────────────────── */
.vcard-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
}
.vcard-notice.warn {
    background: rgba(245,158,11,.07);
    border: 1px solid rgba(245,158,11,.22);
}
.vcard-notice.warn svg { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }
.vcard-link { color: #a78bfa; text-decoration: underline; }

/* ─── Botões ─────────────────────────────────────────────────────────────── */
.btn {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,.15);
}
.btn-block { width: 100%; justify-content: center; }

/* ─── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(99,102,241,.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: vk-spin 0.7s linear infinite;
}
@keyframes vk-spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .vcard { padding: 32px 20px; }
    .info-grid { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; }
    .btn-verify { width: 100%; justify-content: center; }
    .cert-id-val { font-size: 11px; }
}
