/*
 * Progress Components (XP bars, rings, etc.)
 */

/* ── XP Bar ────────────────────────────────────── */
.wishly-xp-bar {
    position: relative;
    height: 8px;
    background: var(--w-bg-tertiary);
    border-radius: var(--w-radius-full);
    overflow: hidden;
}

.wishly-xp-bar--lg {
    height: 12px;
}

.wishly-xp-bar__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--w-gradient-primary);
    border-radius: var(--w-radius-full);
    transition: width var(--w-duration-slow) var(--w-ease-out);
    animation: wishly-progress-fill var(--w-duration-slow) var(--w-ease-out);
}

.wishly-xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: var(--w-radius-full);
}

.wishly-xp-bar__label {
    position: absolute;
    right: var(--w-space-2);
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 700;
    color: var(--w-text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: none;
}

.wishly-xp-bar--lg .wishly-xp-bar__label {
    display: block;
}

/* ── Progress Ring ─────────────────────────────── */
.wishly-progress-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wishly-progress-ring__svg {
    transform: rotate(-90deg);
}

.wishly-progress-ring__track {
    fill: none;
    stroke: var(--w-bg-tertiary);
}

.wishly-progress-ring__fill {
    fill: none;
    stroke: var(--w-accent);
    stroke-linecap: round;
    transition: stroke-dashoffset var(--w-duration-slow) var(--w-ease-out);
}

.wishly-progress-ring__label {
    position: absolute;
    font-size: var(--w-text-sm);
    font-weight: 700;
    color: var(--w-text-primary);
}

/* ── Stat Card ─────────────────────────────────── */
.wishly-stat {
    display: flex;
    flex-direction: column;
    gap: var(--w-space-1);
}

.wishly-stat__value {
    font-size: var(--w-text-3xl);
    font-weight: 800;
    letter-spacing: var(--w-tracking-tight);
    color: var(--w-text-primary);
}

.wishly-stat__label {
    font-size: var(--w-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--w-tracking-wider);
    color: var(--w-text-secondary);
}

.wishly-stat__change {
    font-size: var(--w-text-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--w-space-1);
}

.wishly-stat__change--up { color: var(--w-success); }
.wishly-stat__change--down { color: var(--w-error); }

/* ── Streak indicator ──────────────────────────── */
.wishly-streak {
    display: flex;
    align-items: center;
    gap: var(--w-space-3);
}

.wishly-streak__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--w-space-1);
}

.wishly-streak__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--w-border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--w-text-xs);
    transition: all var(--w-transition-fast);
}

.wishly-streak__dot--completed {
    background: var(--w-accent);
    border-color: var(--w-accent);
    color: #fff;
}

.wishly-streak__dot--today {
    border-color: var(--w-accent);
    animation: wishly-pulse-glow 2s ease-in-out infinite;
}

.wishly-streak__label {
    font-size: 10px;
    color: var(--w-text-secondary);
    font-weight: 500;
}
