﻿/* EventDetails hub tab "Result" (?tab=result) - podium of a finished event (Views/Tournament/EventResultV2.cshtml).
   Theme tokens only (theme-v2.css); the three medal colours are component tokens below, the same in both themes. */

.er-page {
    --er-gold: #f5c542;
    --er-silver: #b8c2cc;
    --er-bronze: #cd7f32;
    color: var(--color-text-primary);
}

.er-body { padding: 20px 16px 40px; margin: 0 auto; max-width: 1100px; }
.er-title { font-family: var(--font-family-heading); font-size: 20px; font-weight: 700; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.er-title i { color: var(--er-gold); }

/* Empty state: finished by date but the final is not decided */
.er-empty { padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.er-empty__icon { font-size: 28px; color: var(--color-text-muted); }
.er-empty__text { margin: 0; color: var(--color-text-secondary); }

/* Podium: wide screens 2 | 1 | 3 (3) with the champion raised; DOM order stays 1, 2, 3, 3 */
.er-podium { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; gap: 16px; flex-wrap: wrap; }
.er-place { flex: 1 1 220px; max-width: 280px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border-top: 4px solid var(--er-bronze); }
.er-place--1 { order: 2; border-top-color: var(--er-gold); padding-top: 32px; padding-bottom: 32px; box-shadow: var(--shadow-md); }
.er-place--2 { order: 1; border-top-color: var(--er-silver); }
.er-place--3 { order: 3; }

.er-place__medal {
    width: 44px; height: 44px; border-radius: var(--radius-circle);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-family-heading); font-size: 20px; font-weight: 700;
    color: #1a1f2e; background: var(--er-bronze);
}
.er-place--1 .er-place__medal { background: var(--er-gold); width: 56px; height: 56px; font-size: 26px; }
.er-place--2 .er-place__medal { background: var(--er-silver); }

.er-place__label { font-weight: 700; font-size: var(--font-size-lg); }
.er-place--1 .er-place__label { font-size: var(--font-size-xl); }
.er-place__code { font-size: var(--font-size-sm); color: var(--color-text-muted); }

.er-place__players { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.er-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.er-player__avatar { width: 36px; height: 36px; border-radius: var(--radius-circle); object-fit: cover; flex: 0 0 auto; border: 1px solid var(--color-border); }
.er-player__name { overflow-wrap: anywhere; text-align: left; color: var(--color-text-secondary); }

/* Phones: one column in rank order 1 -> 2 -> 3 */
@media (max-width: 767px) {
    .er-podium { flex-direction: column; align-items: stretch; }
    .er-place { max-width: none; flex-basis: auto; }
    .er-place--1, .er-place--2, .er-place--3 { order: 0; }
    .er-place--1 { padding-top: 20px; padding-bottom: 20px; }
}
