/* =============================================================
   WC Registration Checker — Frontend Styles
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.wrc-wrapper {
    max-width: 620px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #0f172a;
}

/* ── Search Card ─────────────────────────────────────────── */
.wrc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px 32px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
    border: 1px solid #e8ecf2;
}

.wrc-title {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.wrc-subtitle {
    margin: 0 0 24px;
    font-size: 0.94rem;
    color: #64748b;
    line-height: 1.55;
}

/* ── Input ───────────────────────────────────────────────── */
.wrc-input-row {
    margin-bottom: 12px;
}

#wrc-input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    font-family: inherit;
}

#wrc-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

#wrc-input::placeholder {
    color: #94a3b8;
}

/* ── Button ──────────────────────────────────────────────── */
#wrc-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

#wrc-btn:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

#wrc-btn:active:not(:disabled) {
    transform: scale(0.985);
}

#wrc-btn:disabled {
    background: #93c5fd;
    box-shadow: none;
    cursor: not-allowed;
}

/* ── Results Container ───────────────────────────────────── */
#wrc-results {
    margin-top: 24px;
    display: none;
}

/* ── Loading State ───────────────────────────────────────── */
.wrc-loading {
    text-align: center;
    padding: 28px 0;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wrc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: wrc-spin 0.65s linear infinite;
    flex-shrink: 0;
}

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

/* ── Multiple Found Note ─────────────────────────────────── */
.wrc-multi-note {
    font-size: 0.84rem;
    color: #0369a1;
    text-align: center;
    margin: 0 0 14px;
    padding: 8px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

/* ── Result Card ─────────────────────────────────────────── */
.wrc-result-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 14px;
}

.wrc-result-card:last-child {
    margin-bottom: 0;
}

.wrc-result-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 15px 22px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrc-result-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.22);
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.wrc-result-table {
    width: 100%;
    border-collapse: collapse;
}

.wrc-result-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.wrc-result-table tr:last-child {
    border-bottom: none;
}

.wrc-result-table th {
    width: 36%;
    padding: 11px 22px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.065em;
    background: #f8fafc;
    white-space: nowrap;
    vertical-align: middle;
}

.wrc-result-table td {
    padding: 11px 22px;
    font-size: 0.94rem;
    color: #0f172a;
    font-weight: 500;
    vertical-align: middle;
    word-break: break-word;
}

/* ── Not Found ───────────────────────────────────────────── */
.wrc-not-found {
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #fde8e8;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.wrc-nf-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.wrc-not-found p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ── Validation / Error ──────────────────────────────────── */
.wrc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 540px) {
    .wrc-card {
        padding: 24px 20px 22px;
        border-radius: 12px;
    }

    .wrc-title {
        font-size: 1.2rem;
    }

    .wrc-result-table th,
    .wrc-result-table td {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .wrc-result-header {
        padding: 13px 16px;
        font-size: 0.93rem;
    }
}
