/* ═══════════════════════════════════════════════════════════
   V3 — Heating Up Styles
   Ranked event cards with vote momentum, ported from V2
   ═══════════════════════════════════════════════════════════ */

/* ─── List container ───────────────────────────────────── */
.hu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 80px 16px 100px;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Card ─────────────────────────────────────────────── */
.hu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
  position: relative;
}

.hu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

/* ─── Blurred background image (visible on expand) ─────── */
.hu-card .hu-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.3) brightness(.35);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  transform: scale(1.15);
}

.hu-card.expanded .hu-bg {
  opacity: 1;
}

/* ─── Thumbnail ────────────────────────────────────────── */
.hu-card .hu-thumb {
  width: 110px;
  min-height: 90px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  position: relative;
  z-index: 1;
}

/* ─── Rank number ──────────────────────────────────────── */
.hu-rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ─── Info area ────────────────────────────────────────── */
.hu-card .hu-info {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hu-card .hu-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hu-card .hu-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hu-card.expanded .hu-meta {
  color: #bbb;
}

/* ─── Vote progress bar ────────────────────────────────── */
.hu-card .hu-bar {
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  margin-top: 4px;
}

.hu-card .hu-bar div {
  height: 100%;
}

/* ─── Voter chips ──────────────────────────────────────── */
.hu-card .hu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.hu-card .hu-chips .chip {
  font-size: 10px;
  padding: 2px 6px;
}

/* ─── Podium treatments (top 3) ────────────────────────── */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 200, 60, .15), 0 0 40px rgba(255, 180, 40, .08), inset 0 1px 0 rgba(255, 220, 100, .1);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 200, 60, .3), 0 0 60px rgba(255, 180, 40, .15), inset 0 1px 0 rgba(255, 220, 100, .15);
  }
}

.hu-card.rank-1 {
  border-color: rgba(255, 195, 40, .35);
  background: linear-gradient(135deg, rgba(255, 200, 60, .08) 0%, var(--surface) 40%, var(--surface) 60%, rgba(255, 180, 40, .05) 100%);
  animation: goldPulse 3s ease-in-out infinite;
}

.hu-card.rank-1 .hu-rank {
  color: #ffc830;
  text-shadow: 0 0 12px rgba(255, 200, 60, .5);
  font-size: 26px;
}

.hu-card.rank-1 .hu-title {
  color: #ffe08a;
}

.hu-card.rank-2 {
  border-color: rgba(192, 192, 210, .2);
}

.hu-card.rank-2 .hu-rank {
  color: #c0c0d2;
  font-size: 24px;
}

.hu-card.rank-3 {
  border-color: rgba(205, 140, 80, .18);
}

.hu-card.rank-3 .hu-rank {
  color: #cd8c50;
  font-size: 23px;
}

/* ─── Expand-in-place ──────────────────────────────────── */
.hu-card .hu-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2, .8, .2, 1), padding .35s ease;
  padding: 0 14px;
}

.hu-card.expanded .hu-expand {
  max-height: 600px;
  padding: 10px 14px 14px;
}

.hu-card.expanded {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 156, 255, .15);
}

.hu-card .hu-expand .hu-desc {
  font-size: 13px;
  color: #dde1ec;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hu-card .hu-expand .hu-detail {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 6px;
}

.hu-card .hu-expand .hu-link a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.hu-card .hu-expand .hu-link a:hover {
  text-decoration: underline;
}

/* ─── Vote buttons inside expanded card ────────────────── */
.hu-card .hu-expand .hu-votes {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.hu-card .hu-expand .hu-votes .vbtn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
  backdrop-filter: blur(6px);
}

.hu-card .hu-expand .hu-votes .vbtn:hover {
  background: rgba(255, 255, 255, .1);
}

.hu-card .hu-expand .hu-votes .vbtn.active {
  border-color: var(--accent);
  background: rgba(124, 156, 255, .2);
}

/* ─── Mobile adjustments ───────────────────────────────── */
@media (max-width: 760px) {
  .hu-list {
    padding-top: 70px;
    padding-bottom: 120px;
    gap: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hu-card {
    border-radius: 16px;
  }

  .hu-rank {
    width: 36px;
    font-size: 18px;
  }

  .hu-card .hu-info {
    padding: 14px 14px 14px 0;
  }

  .hu-card .hu-title {
    font-size: 15px;
  }

  .hu-card .hu-meta {
    font-size: 12px;
    margin-top: 3px;
  }

  .hu-card .hu-bar {
    margin-top: 8px;
    height: 5px;
    border-radius: 3px;
  }
}
