/* =====================================================
   AI Resume Scanner v2.0 — scanner.css
   Covers: CTA button on job posts + scanner page
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════
   CTA BUTTON — injected at bottom of ljn_job posts
   ══════════════════════════════════════════════════ */

.ars-cta-block {
    margin: 40px 0 24px;
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    border: 1.5px solid #ffe0cc;
    border-radius: 16px;
    clear: both;
}

.ars-check-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 36px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(232, 93, 4, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    border: none;
    line-height: 1.2;
}

.ars-check-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(232, 93, 4, 0.42) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.ars-check-btn:visited {
    color: #fff !important;
}

.ars-cta-sub {
    margin: 12px 0 0 !important;
    font-size: 13px !important;
    color: #888 !important;
    font-family: 'Poppins', sans-serif;
}

/* ══════════════════════════════════════════════════
   SCANNER PAGE — [ai_resume_scanner] shortcode
   ══════════════════════════════════════════════════ */

.ars-wrap {
    font-family: 'Poppins', sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 64px;
    color: #1a1f36;
}

/* Header */
.ars-header {
    text-align: center;
    margin-bottom: 36px;
}

.ars-ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e85d04, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.ars-header h1 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #e85d04, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ars-header-sub {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.ars-header-sub strong {
    color: #1a1f36;
    display: block;
    font-size: 16px;
    margin-top: 4px;
}

/* Form fields */
.ars-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 22px;
}

.ars-field label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ars-hint {
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.ars-field input[type="text"],
.ars-field input[type="tel"],
.ars-field textarea {
    border: 1.5px solid #e0e7ff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: 'Poppins', sans-serif !important;
    color: #1a1f36 !important;
    background: #fafbff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical;
}

.ars-field input:focus,
.ars-field textarea:focus {
    outline: none !important;
    border-color: #e85d04 !important;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12) !important;
}

.ars-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .ars-two-col { grid-template-columns: 1fr; }
}

/* Drop zone */
.ars-dropzone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: border-color 0.2s, background 0.2s;
}

.ars-dropzone:hover {
    border-color: #e85d04;
    background: #fff8f5;
}

.ars-dropzone.ars-drag-over {
    border-color: #e85d04;
    background: #fff0e6;
}

.ars-dropzone.ars-has-file {
    border-color: #16a34a;
    background: #f0fdf4;
    border-style: solid;
}

.ars-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ars-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ars-drop-icon { font-size: 34px; }

#ars-file-label {
    font-size: 15px;
    color: #4b5563;
}

.ars-dropzone small {
    font-size: 12px;
    color: #9ca3af;
}

/* Submit button */
#ars-submit {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, #e85d04 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 8px 28px rgba(232, 93, 4, 0.32);
    transition: transform 0.18s, opacity 0.18s;
}

#ars-submit:hover:not(:disabled) {
    transform: translateY(-2px);
}

#ars-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ars-privacy {
    text-align: center;
    font-size: 12px !important;
    color: #9ca3af !important;
    margin: 10px 0 0 !important;
}

/* ── Result view ──────────────────────────────── */

.ars-result-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ars-result-job {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
}

/* Ring */
.ars-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.ars-ring-wrap svg {
    width: 160px;
    height: 160px;
}

.ars-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#ars-score-num {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.ars-pct {
    font-size: 20px;
    font-weight: 700;
}

.ars-ring-text small {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Verdict */
.ars-verdict-pill {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 26px;
    border-radius: 30px;
    text-align: center;
}

.ars-verdict-pill.v-excellent { background: #dcfce7; color: #15803d; }
.ars-verdict-pill.v-good      { background: #dbeafe; color: #1d4ed8; }
.ars-verdict-pill.v-partial   { background: #fef9c3; color: #a16207; }
.ars-verdict-pill.v-low       { background: #fee2e2; color: #b91c1c; }

/* Cards */
.ars-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 540px) {
    .ars-cards { grid-template-columns: 1fr; }
}

.ars-card {
    border-radius: 14px;
    padding: 18px 20px;
}

.ars-card.ars-full {
    grid-column: 1 / -1;
}

.ars-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.ars-card.ars-green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ars-card.ars-green h3 { color: #15803d; }

.ars-card.ars-red    { background: #fff5f5; border: 1px solid #fecaca; }
.ars-card.ars-red h3 { color: #b91c1c; }

.ars-card.ars-blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.ars-card.ars-blue h3 { color: #1d4ed8; }

.ars-card ul { margin: 0; padding-left: 18px; }
.ars-card li { font-size: 14px; margin-bottom: 5px; color: #374151; }
.ars-card p  { font-size: 14px; color: #374151; line-height: 1.65; margin: 0; }

/* Result footer */
.ars-result-footer {
    text-align: center;
    background: #f8fafc;
    border-radius: 14px;
    padding: 22px 20px;
}

.ars-result-footer p {
    color: #374151;
    margin: 0 0 14px;
    font-size: 15px;
}

.ars-rescan-btn {
    border: 2px solid #e85d04;
    background: transparent;
    color: #e85d04;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.ars-rescan-btn:hover {
    background: #fff8f5;
}

/* ── Required asterisk ────────────────────────── */
.ars-required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 3px;
}

/* ── Field error state ────────────────────────── */
.ars-field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
}

.ars-field--error label {
    color: #dc2626;
}

.ars-input--error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.ars-dropzone--error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
}

/* ── Global error box ─────────────────────────── */
.ars-global-error {
    background: #fff5f5;
    border: 1.5px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ars-global-error::before {
    content: '⚠️';
    flex-shrink: 0;
}

/* Error view */
.ars-error-view {
    text-align: center;
    padding: 36px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 14px;
}

.ars-error-view p {
    color: #b91c1c;
    font-size: 15px;
    margin: 12px 0 20px;
}

.ars-error-view button {
    background: #b91c1c;
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
