/* ==========================================================================
   YANO STARS — INTERIOR PAGE SHELL
   Shared layout for content pages (submit, vote, top10, profiles, static).
   Accounts for the fixed nav via top padding.
   ========================================================================== */

.page { padding-top: 7rem; padding-bottom: var(--sp-2xl); min-height: 70vh; }
.page__narrow { max-width: 960px; }
.page__head { margin-bottom: var(--sp-lg); text-align: center; }
.page__title { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 5rem); line-height: 0.95; margin-top: 0.5rem; }
.page__lead { max-width: 60ch; margin: 1rem auto 0; color: var(--text-secondary); }

/* --------------------------- Empty state --------------------------- */
.empty-state { text-align: center; padding: 3.5rem 2rem; }
.empty-state img { margin: 0 auto 1.4rem; opacity: 0.8; }
.empty-state h2 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 0.8rem; }
.empty-state p { max-width: 46ch; margin: 0 auto 1.6rem; }

/* --------------------------- Submit page --------------------------- */
.submit-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .submit-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.submit-form { padding: 2rem; }
.submit-challenge-banner {
  background: rgba(255,193,7,0.06); border: 1px solid var(--border-gold);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin-bottom: 1.8rem;
}
.submit-challenge-banner h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 0.2rem 0; }

.submit-rules { padding: 2rem; }
.submit-rules h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.2rem; }
.steps { display: flex; flex-direction: column; gap: 1rem; }
.steps li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.92rem; color: var(--text-secondary); }
.steps span {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-fire); color: var(--y-black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 0.9rem;
}
.submit-rules__prize { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border-subtle); }
.submit-rules__prize p:last-child { font-family: var(--font-heading); font-size: 1.3rem; }

.submit-status { text-align: center; padding: 3rem 2rem; }
.submit-status .chip { margin-bottom: 1rem; }
.submit-status h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.8rem; }
.submit-status p { max-width: 48ch; margin: 0 auto 0.6rem; }
.submit-status__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* --------------------------- Top 10 / Podium --------------------------- */
.podium {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  align-items: end; max-width: 760px; margin: 0 auto var(--sp-lg); padding-top: 2rem;
}
.podium__slot { text-align: center; }
/* Non-clipping positioning context so the rank ball can overhang the edge */
.podium__avatar-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto 1rem; }
.podium__avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--y-black-raised);
  border: 3px solid var(--border-subtle);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.podium__avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder star marks (transparent PNG) sit INSIDE the ring, not cropped */
.podium__avatar img[src*="logo-icon"] { object-fit: contain; padding: 20%; }
/* Rank ball straddling the top-right edge of the ring (like the winner element) */
.podium__medal {
  position: absolute; top: 4px; right: 4px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1rem; color: var(--y-black);
  background: var(--y-grey); z-index: 3;
  border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.podium__slot--1 .podium__avatar-wrap { width: 160px; height: 160px; }
.podium__slot--1 .podium__avatar { border-color: var(--y-gold); box-shadow: var(--glow-gold-md); }
.podium__slot--1 .podium__medal { background: var(--grad-fire); width: 42px; height: 42px; box-shadow: var(--glow-gold-sm); font-size: 1.1rem; }
.podium__slot--1 { transform: translateY(-1.4rem); }
.podium__slot--2 .podium__avatar { border-color: #d8d8d8; }
.podium__slot--2 .podium__medal { background: #d8d8d8; }
.podium__slot--3 .podium__avatar { border-color: #cd7f32; }
.podium__slot--3 .podium__medal { background: #cd7f32; }
.podium__name { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.05; margin-bottom: 0.15rem; }
.podium__name:hover { color: var(--y-gold); }
.podium__province { font-size: 0.72rem; color: var(--text-muted); }
.podium__score { font-family: var(--font-display); font-size: 1.6rem; color: var(--y-gold); margin-top: 0.3rem; }
.podium__score span { font-size: 0.7rem; color: var(--text-muted); }

.top10-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 720px; margin: 0 auto; }
.top10-list__row { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; }
.top10-list__rank { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-muted); width: 1.8rem; text-align: center; }
.top10-list__avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.top10-list__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.top10-list__name { font-family: var(--font-heading); font-size: 0.98rem; }
.top10-list__name:hover { color: var(--y-gold); }
.top10-list__province { font-size: 0.72rem; color: var(--text-muted); }
.top10-list__score { font-family: var(--font-display); font-size: 1.3rem; color: var(--y-gold); }
.top10-list__score small { font-size: 0.6rem; color: var(--text-muted); }

.top10-cta { text-align: center; margin-top: var(--sp-lg); display: flex; flex-direction: column; align-items: center; gap: 1rem; }

@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr; max-width: 320px; }
  .podium__slot--1 { transform: none; order: -1; }
}
