/* ==========================================================================
   CareerOS - Fluid Micro-Animations & Dynamic Processing Visualizations
   Theme: Arctic Aurora & Electric Violet
   ========================================================================== */

/* ==========================================
   Multi-Step Loading & Processing Animation
   ========================================== */
.analysis-progress-card {
    background: linear-gradient(135deg, #13151c, #191c25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin: 20px 0;
    /* Tonal elevation only — no violet neon halo */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-pct {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    /* Clean deterministic transition — no carnival shimmer sweep */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* shimmerGlow neutralized — clean, no carnival sweep */
@keyframes shimmerGlow {
    from {} to {}
}

.progress-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    color: var(--text-muted);
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.process-step-row.active {
    color: #ffffff;
    font-weight: 700;
}

.process-step-row.completed {
    color: var(--accent-mint);
    font-weight: 600;
}

.step-icon-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.process-step-row.active .step-icon-badge {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    /* Clean focus ring — no cartoon bounce pulse */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* pulseStep neutralized — cartoon bounce removed */
@keyframes pulseStep {
    from {} to {}
}

.process-step-row.completed .step-icon-badge {
    background: var(--accent-mint);
    border-color: var(--accent-mint);
    color: #090c15;
    font-weight: 900;
}

/* ==========================================
   Modern ATS Score Visualizations
   ========================================== */
.score-circle-svg-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-circle-svg {
    transform: rotate(-90deg);
    width: 68px;
    height: 68px;
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 6;
}

.score-circle-progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 175.9; /* 2 * PI * 28 */
    stroke-dashoffset: 175.9;
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-circle-progress.high { stroke: var(--accent-mint); }
.score-circle-progress.med { stroke: var(--primary-light); }
.score-circle-progress.low { stroke: var(--accent-rose); }

.score-text-inner {
    position: absolute;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* Matched & Missing Chips */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    margin: 3px 4px 3px 0;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.keyword-tag.matched {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--accent-mint);
}

.keyword-tag.missing {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

/* ==========================================
   Saved Resumes & History Table
   ========================================== */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.history-table th {
    text-align: left;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: middle;
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
}

.score-badge.high {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: var(--accent-mint);
}

.score-badge.med {
    background: rgba(124, 92, 252, 0.18);
    border: 1px solid rgba(124, 92, 252, 0.45);
    color: var(--primary-light);
}

.score-badge.low {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fb7185;
}

/* ==========================================
   Accessibility: Prefers Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
