/* =========================================================================
 * Dosya    : themes/default/assets/css/sidebars/sidebar_site_quiz_home.css
 * Eski yol : css/modules/quiz/aside.css
 * Taşındı  : 2026-10-19 · T3.4 (K1 yerleşim kuralı: <tip>/<tip>_<kapsam>_<modül>)
 * Kapsam   : Quiz ana sayfası sağ sütun kartları (devam, katılımcılar)
 * ========================================================================= */

/* ==========================================================================
   ACIZANE QUIZ - HOME ASIDE
   Sorumluluk: Sağ sütun kartları — Devam Eden Yarışma (gerçek aktif oturum,
   ilerleme çubuğu) ve En Aktif Katılımcılar (sıralama altyapısı yok → boş
   durum). Masaüstünde sağ sütun, ≤1180px'te istatistiklerin altında.
   ========================================================================== */

.quiz-home__aside {
  display: grid;
  align-content: start;
  gap: var(--qh-gap);
}

.quiz-home__side-card {
  padding: clamp(16px, 1.6vw, 22px);
  border: 1px solid var(--qh-border);
  border-radius: var(--qh-radius);
  background: var(--qh-surface);
  box-shadow: var(--qh-shadow);
  scroll-margin-top: 16px;
}

.quiz-home__side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-home__side-head h2 {
  margin: 0;
  color: var(--qh-ink);
  font-size: 17px;
  font-weight: 800;
}

.quiz-home__side-icon {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e8eef8;
  color: var(--qh-navy-700);
}

.quiz-home__side-icon--gold {
  background: #fdf1d6;
  color: var(--qh-gold-deep);
}

.quiz-home__side-icon .quiz-home__icon {
  width: 19px;
  height: 19px;
}

/* Active session indicator. */
.quiz-home__side-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-inline: 4px;
  border-radius: 50%;
  background: var(--qh-gold);
  box-shadow: 0 0 0 4px rgb(242 184 75 / 22%);
}

.quiz-home__side-empty {
  margin: 0;
  color: var(--qh-muted);
  font-size: 14px;
  line-height: 1.55;
}

.quiz-home__side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 6px;
  color: var(--qh-navy-700);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

/* ---> Devam eden yarışma */

.quiz-home__resume {
  border-color: rgb(242 184 75 / 55%);
  background:
    linear-gradient(180deg, #fff8e8, var(--qh-surface) 46%);
}

.quiz-home__resume--empty {
  border-color: var(--qh-border);
  background: var(--qh-surface);
}

.quiz-home__resume-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quiz-home__resume-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--qh-border);
  border-radius: 14px;
  background: #ffffff;
}

.quiz-home__resume-title {
  color: var(--qh-ink);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quiz-home__resume-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--qh-muted);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.quiz-home__progress {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece6d8;
}

.quiz-home__progress-bar {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--qh-gold-deep), var(--qh-gold));
}

.quiz-home__resume-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 12px;
  background: var(--qh-navy-800);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease;
}

@media (hover: hover) {
  .quiz-home__resume-action:hover {
    background: var(--qh-navy-700);
  }
}

.quiz-home__resume-action:focus-visible,
.quiz-home__side-link:focus-visible {
  outline: 3px solid var(--qh-gold);
  outline-offset: 2px;
}

/* ---> Tablet: two cards side by side under the stats */

@media (max-width: 1180px) and (min-width: 641px) {
  .quiz-home__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-home__resume-action {
    transition: none;
  }
}
