/* ==========================================================================
   WP Invictus Scanner — frontend stilovi
   Brend boje: navy #1B2A4A, teal #14B8A6, red #DC2626
   Sve klase su prefiksovane sa .wpis- da se izbegnu sukobi sa temom.
   ========================================================================== */

/* Osnovni kontejner — centriran, ograničena širina */
.wpis-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1E293B;
    line-height: 1.5;
}

/* Kartica — beli panel sa senkom */
.wpis-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
}
.wpis-card-center { text-align: center; }

/* Badge iznad naslova */
.wpis-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.12);
    color: #14B8A6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

/* Naslovi i podnaslovi */
.wpis-title { font-size: 24px; font-weight: 800; color: #1B2A4A; margin: 0 0 8px; }
.wpis-sub { font-size: 15px; color: #64748B; margin: 0 0 24px; }

/* Polja za unos */
.wpis-field { margin-bottom: 14px; }
.wpis-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    transition: border-color 0.15s ease;
    background: #fff;
}
.wpis-input:focus {
    outline: none;
    border-color: #14B8A6;
    background: #fff;
}

/* Checkbox sa tekstom */
.wpis-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
    cursor: pointer;
}
.wpis-check input { margin-top: 2px; flex-shrink: 0; }
.wpis-check a { color: #14B8A6; }

/* Turnstile razmak */
.wpis-turnstile { margin-bottom: 18px; }

/* Dugmad */
.wpis-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 28px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
    text-decoration: none;
    text-align: center;
}
.wpis-btn:active { transform: translateY(1px); }
.wpis-btn-primary { background: #14B8A6; color: #fff; }
.wpis-btn-primary:hover { background: #0F9488; }
.wpis-btn-block { display: block; width: 100%; box-sizing: border-box; }
#wpis-start, #wpis-unlock-btn { width: 100%; }

/* Greške */
.wpis-error { color: #DC2626; font-size: 14px; margin: 12px 0 0; min-height: 1px; }

/* Spinner za skeniranje */
.wpis-spinner {
    width: 48px; height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #E2E8F0;
    border-top-color: #14B8A6;
    border-radius: 50%;
    animation: wpis-spin 0.9s linear infinite;
}
@keyframes wpis-spin { to { transform: rotate(360deg); } }
.wpis-scan-line { font-size: 14px; color: #64748B; font-family: monospace; min-height: 20px; }

/* Zaglavlje rezultata sa ocenom */
.wpis-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 20px;
}
/* BESPLATNO badge iznad naslova */
.wpis-free-badge { display: inline-block; background: #14B8A6; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; text-transform: uppercase; }
/* Naslov rezultata */
.wpis-result-label { font-size: 24px; font-weight: 700; color: #1B2A4A; margin: 0; }
.wpis-result-host { font-size: 15px; font-weight: 600; color: #64748B; margin: 4px 0 0; word-break: break-all; }
/* Krug sa procentom (donut) */
.wpis-score-wrap { flex-shrink: 0; text-align: center; }
.wpis-score-label { font-size: 12px; color: #64748B; margin-bottom: 6px; font-weight: 600; }
.wpis-donut {
    position: relative;
    width: 88px; height: 88px;
    border-radius: 50%;
    background: conic-gradient(#E2E8F0 0deg, #E2E8F0 0deg); /* JS popunjava */
    margin: 0 auto;
}
/* Unutrašnji krug pravi "prsten" debljine ~4px */
.wpis-donut-inner {
    position: absolute;
    inset: 4px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpis-donut-num { font-size: 22px; font-weight: 800; color: #1B2A4A; }

/* Lista nalaza */
.wpis-checks { display: flex; flex-direction: column; gap: 10px; }
.wpis-checkitem {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
}
.wpis-checkitem.locked { background: #F8FAFC; }
.wpis-ci-main { flex: 1; }
.wpis-ci-title { font-size: 18px; font-weight: 700; color: #1B2A4A; margin: 0; }
.wpis-ci-desc { font-size: 13px; color: #64748B; margin: 5px 0 0; line-height: 1.5; }
.wpis-ci-locked-note { font-size: 13px; color: #94A3B8; margin: 4px 0 0; font-style: italic; }

/* Status oznaka */
.wpis-tag {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    color: #fff;
    white-space: nowrap;
}
.wpis-tag.pass { background: #14B8A6; }
.wpis-tag.warn { background: #F59E0B; }
.wpis-tag.fail { background: #DC2626; }
.wpis-tag.info { background: #788fa5; }
.wpis-tag.unknown { background: #94A3B8; }
.wpis-tag.lock { background: #212f40; color: #fff; cursor: pointer; transition: background 0.15s ease; }
.wpis-tag.lock:hover { background: #14B8A6; }

/* Unlock sekcija */
.wpis-unlock {
    margin-top: 24px;
    padding: 24px;
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 10px;
}
.wpis-unlock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wpis-lock-icon { font-size: 38px; line-height: 1; flex-shrink: 0; }
.wpis-unlock-titles { display: flex; flex-direction: column; }
.wpis-unlock-title { margin: 0; font-size: 20px; font-weight: 700; color: #1B2A4A; }
.wpis-unlock-sub { margin: 2px 0 0; font-size: 14px; font-weight: 400; color: #64748B; }

/* CTA nakon otključavanja */
/* Info box nakon slanja izveštaja — svetlo tirkizni */
.wpis-sent-box {
    margin-top: 24px;
    padding: 18px 20px;
    background: #F0FDFA;
    border: 1px solid #99F6E4;
    border-radius: 10px;
}
.wpis-sent-text { color: #475569; font-size: 14px; line-height: 1.6; margin: 0; }
.wpis-sent-ok { color: #14B8A6; font-weight: 700; }
.wpis-sent-time { color: #DC2626; font-weight: 700; }

/* Responsive */
@media (max-width: 520px) {
    .wpis-card { padding: 22px; }
    .wpis-title { font-size: 20px; }
    .wpis-result-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    /* Mobilni: naslov stavke ostaje kao pre (15px), opis manji za 1px (12px) */
    .wpis-ci-title { font-size: 15px; }
    .wpis-ci-desc { font-size: 12px; }
}

/* Reduced motion — poštuj korisničke preference */
@media (prefers-reduced-motion: reduce) {
    .wpis-spinner { animation-duration: 2s; }
    .wpis-btn:active { transform: none; }
}

/* === CMS/PHP meta red ispod domena === */
.wpis-meta { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.wpis-meta-item { font-size: 13px; color: #64748B; }
.wpis-meta-item strong { color: #1B2A4A; }

/* === Tooltip (znak pitanja pored naziva) === */
.wpis-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #a1b1c3;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 3px;
    top: -2px;
}
/* Tooltip oblačić — prikazuje se na hover i fokus */
.wpis-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #1B2A4A;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    width: 220px;
    max-width: 70vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(27,42,74,0.2);
}
.wpis-tip:hover::after, .wpis-tip:focus::after { opacity: 1; visibility: visible; }

/* === Ne-WordPress ekran === */
.wpis-notwp-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #DC2626;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 56px;
}
.wpis-notwp-meta { font-size: 13px; color: #64748B; margin-bottom: 20px; }
