/* ========== WorkoutResultsPage.kt ========== */

/* Full viewport height flex column so the scroll container can grow and shrink correctly. */
.workout-results-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.workout-results-scroll {
    flex: 1;
    overflow-y: auto;
}

.workout-results-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 16px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    box-sizing: border-box;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.workout-results-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Tinted circle gives the icon visual weight — the same treatment fitness apps
   (Peloton, Nike Training) use for their completion moment. */
.workout-results-icon-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(0, 106, 142, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.workout-results-title {
    font-size: 28px;
    font-weight: 800;
    color: #2e2c28;
    margin: 0;
    letter-spacing: -0.01em;
}

.workout-results-subtitle {
    font-size: 16px;
    color: rgba(46, 44, 40, 0.55);
    margin: 0;
}

/* ── Difficulty rating ────────────────────────────────────────────────────── */

.workout-results-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.workout-results-question {
    font-size: 16px;
    font-weight: 700;
    color: #2e2c28;
    margin: 0 0 2px;
    text-align: center;
}

/* Difficulty choice button — self-contained styles, intentionally NOT reusing primary-button
   or outlined-button so the selection state is visually distinct from action buttons.
   Mirrors Compose's PrimaryButton(isSelected): surfaceVariant (#E0E0E0) when idle, primary
   tint when chosen. Using a tinted border approach (rather than a filled gradient) keeps
   the selected chip clearly different from the "Finish Workout" action button below it. */
.workout-difficulty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    background: #e0e0e0;
    color: rgba(46, 44, 40, 0.75);
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.workout-difficulty-btn:hover {
    background: #d4d4d4;
}

/* Selected: tinted teal background + solid teal border + teal text.
   Clearly "chosen" without looking like the primary action button. */
.workout-difficulty-btn-selected {
    background: rgba(0, 106, 142, 0.1);
    border-color: #006a8e;
    color: #006a8e;
    font-weight: 700;
}

.workout-difficulty-btn-selected:hover {
    background: rgba(0, 106, 142, 0.16);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

/* Footer lives outside the scroll container inside the flex-column page shell.
   On desktop: centres the button below the scrollable content.
   On mobile: because the scroll takes flex:1, the footer naturally sits at the
   bottom of the 100vh shell — sticky CTA with no position:fixed or z-index needed.
   Button keeps its natural 280px width; justify-content:center does the centering. */
.workout-results-footer {
    display: flex;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 599px) {
    .workout-results-content {
        padding: 28px 16px 32px;
        gap: 28px;
    }

    .workout-results-title {
        font-size: 24px;
    }

    .workout-difficulty-btn {
        max-width: 100%;
    }

    /* On mobile the footer gets a surface + border to read as a docked action bar.
       Button stays at its natural 280px so it's clearly centred, not edge-to-edge. */
    .workout-results-footer {
        border-top: 1px solid rgba(46, 44, 40, 0.08);
        background: #ffffff;
        padding: 14px 24px 30px;
    }
}
