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

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--surface-bg);
}

.progress-ring-fill {
    fill: none;
    stroke: var(--accent-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-label {
    position: absolute;
    font-size: var(--xs);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    line-height: 1;
}

.progress-ring-label.gold {
    color: var(--accent-gold);
}

.progress-ring-label.complete {
    color: var(--success);
}

/* Horizontal progress bar (legacy, keep for forms etc.) */
.progress-bar-wrap,
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--surface-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar,
.progress-fill,
.progress-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.gold .progress-fill,
.progress-bar-fill.gold {
    background: var(--accent-gold);
}

/* Chapter progress (inline bar) */
.chapter-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chapter-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.chapter-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.chapter-progress-label {
    font-size: var(--caption);
    color: var(--text-muted);
    flex-shrink: 0;
}
