/* Study-streak card (ADR 0018), slot #1 of the dashboard "For you" panel. Quiet motivation:
   one flame, one number, one ring. Uses the app tokens with plain fallbacks. */

.streak-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem .85rem;
    margin-bottom: .85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    background: var(--bs-tertiary-bg);
}

.streak-card.is-live {
    background: linear-gradient(90deg, rgba(255, 138, 0, .1), rgba(255, 138, 0, .02));
    border-color: rgba(255, 138, 0, .28);
}

.streak-flame {
    font-size: 1.5rem;
    line-height: 1;
    filter: grayscale(1);
    opacity: .5;
}

.streak-card.is-live .streak-flame {
    filter: none;
    opacity: 1;
}

.streak-body {
    flex: 1 1 auto;
    min-width: 0;
}

.streak-count {
    margin: 0 0 .15rem;
    font-size: .95rem;
    color: var(--bs-heading-color);
}

.streak-count strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.streak-meter {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.streak-ring-track {
    stroke: var(--bs-border-color);
}

.streak-ring-fill {
    stroke: var(--mx-action, #ff8a00);
    transition: stroke-dasharray .5s ease;
}

.streak-progress {
    font-size: .8rem;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

.streak-done {
    color: var(--mx-teal-ink, #0f9c7c);
    font-weight: 600;
}

.streak-goal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .3rem;
}

.streak-goal-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
}

.streak-goal-opts {
    display: inline-flex;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
}

.streak-goal-opt {
    border: 0;
    background: transparent;
    padding: .2rem .5rem;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    color: var(--bs-secondary-color);
    cursor: pointer;
}

.streak-goal-opt + .streak-goal-opt {
    border-left: 1px solid var(--bs-border-color);
}

.streak-goal-opt.is-on {
    background: var(--mx-action, #ff8a00);
    color: var(--mx-nav-on-action, #1A1206);   /* dark ink on orange like every orange button; white was 2.5:1 */
    font-weight: 600;
}

.streak-goal-opt:disabled {
    cursor: default;
    opacity: .6;
}

.streak-nudge {
    margin: -.35rem 0 .85rem;
    font-size: .85rem;
    color: var(--bs-heading-color);
}

@media (prefers-reduced-motion: reduce) {
    .streak-ring-fill {
        transition: none;
    }
}
