/*
 * Aktor ID Verify — Widget Styles
 * Version: 1.0.0
 * Author:  Miko Santos (twitter.com/realmikosantos)
 * Company: kangaroofern Media Lab Pty Ltd
 */

/* ── Base widget container ───────────────────────────────────────────────── */

.aktor-idv-widget {
    max-width: 520px;
    margin: 40px auto;
    padding: 40px 36px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    text-align: center;
}

/* ── Shared icon ─────────────────────────────────────────────────────────── */

.aktor-idv-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.aktor-idv-heading {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

/* ── Body text ───────────────────────────────────────────────────────────── */

.aktor-idv-msg {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
}

/* ── Requirements list ───────────────────────────────────────────────────── */

.aktor-idv-requirements {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
}

.aktor-idv-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.aktor-idv-requirements li:last-child {
    margin-bottom: 0;
}

.aktor-idv-req-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1.4;
}

.aktor-idv-requirements strong {
    display: block;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
}

.aktor-idv-requirements small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── Primary CTA button ──────────────────────────────────────────────────── */

.aktor-idv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    background: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
    width: 100%;
    max-width: 300px;
}

.aktor-idv-btn:hover {
    background: #1e40af;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
    transform: translateY(-1px);
}

.aktor-idv-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(29, 78, 216, 0.3);
}

.aktor-idv-btn:disabled,
.aktor-idv-btn[disabled] {
    background: #93c5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Privacy note ────────────────────────────────────────────────────────── */

.aktor-idv-privacy {
    margin: 20px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.aktor-idv-privacy a {
    color: #6b7280;
    text-decoration: underline;
}

/* ── Verified state ──────────────────────────────────────────────────────── */

.aktor-idv-widget--verified {
    border-color: #bbf7d0;
    background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 60%);
}

.aktor-idv-widget--verified .aktor-idv-heading {
    color: #15803d;
}

/* ── Details list (verified state) ──────────────────────────────────────── */

.aktor-idv-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    text-align: left;
    margin: 20px auto 0;
    max-width: 320px;
    font-size: 13px;
}

.aktor-idv-details dt {
    font-weight: 600;
    color: #374151;
}

.aktor-idv-details dd {
    margin: 0;
    color: #6b7280;
}

/* ── ID Verified — pending admin review ──────────────────────────────────── */

.aktor-idv-widget--id-verified {
    border-color: #fde68a;
    background: linear-gradient(160deg, #fffbeb 0%, #ffffff 60%);
}

.aktor-idv-widget--id-verified .aktor-idv-heading {
    color: #92400e;
}

.aktor-idv-widget--id-verified .aktor-idv-icon {
    animation: aktor-idv-pulse 2s ease-in-out infinite;
}

@keyframes aktor-idv-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* ── Processing state ────────────────────────────────────────────────────── */

.aktor-idv-widget--processing {
    border-color: #bfdbfe;
    background: linear-gradient(160deg, #eff6ff 0%, #ffffff 60%);
}

.aktor-idv-widget--processing .aktor-idv-heading {
    color: #1d4ed8;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

.aktor-idv-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    border: 3px solid #dbeafe;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: aktor-idv-spin 0.8s linear infinite;
}

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

/* ── Retry / failed state ────────────────────────────────────────────────── */

.aktor-idv-widget--retry {
    border-color: #fecaca;
    background: linear-gradient(160deg, #fff5f5 0%, #ffffff 60%);
}

.aktor-idv-widget--retry .aktor-idv-heading {
    color: #b91c1c;
}

/* ── Login prompt state ──────────────────────────────────────────────────── */

.aktor-idv-widget--login {
    border-style: dashed;
}

.aktor-idv-widget--login .aktor-idv-msg a {
    color: #1d4ed8;
    font-weight: 600;
}

/* ── Status message overlay (JS-injected) ────────────────────────────────── */

.aktor-idv-status-msg {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    min-height: 18px;
    transition: opacity 0.2s ease;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 540px) {
    .aktor-idv-widget {
        margin: 24px 16px;
        padding: 28px 20px;
    }

    .aktor-idv-heading {
        font-size: 19px;
    }

    .aktor-idv-btn {
        max-width: 100%;
    }
}
