/* ============================================================
 * Rank Season — TFT 段位賽季樣式
 * 載入：page-ranking-users.php / page-member.php
 * ============================================================ */

/* ---------- Hero 段位卡（排行榜頁） ---------- */
.ranku-hero__tier {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 18px;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tier-color, rgba(255, 255, 255, 0.15));
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.ranku-hero__tier-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ranku-hero__tier-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 6px var(--tier-color, rgba(255, 255, 255, 0.4)));
}
.ranku-hero__tier-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--tier-color, #fff);
  text-shadow: 0 0 12px var(--tier-color, transparent);
  letter-spacing: 0.5px;
}
.ranku-hero__tier-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.ranku-hero__tier-to-next { color: rgba(255, 255, 255, 0.55); }
.ranku-hero__tier-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.ranku-hero__tier-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tier-color, #5dade2), #fff);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---------- 排行列表段位 chip ---------- */
.ranku-row .ranku-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--tier-color, rgba(255, 255, 255, 0.15));
  color: var(--tier-color, #fff);
}

/* ---------- Hero eyebrow 賽季標籤 ---------- */
.chip.chip--violet {
  background: rgba(155, 89, 182, 0.12);
  border-color: rgba(155, 89, 182, 0.35);
  color: #d2a4ee;
}

/* ---------- 會員中心 hero 內迷你段位徽章 ---------- */
.mc-tier-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tier-color, rgba(255, 255, 255, 0.15));
  color: var(--tier-color, #fff);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s ease, transform .15s ease;
}
.mc-tier-mini:hover {
  transform: translateY(-1px);
}
.mc-tier-mini__icon { font-size: 16px; }
.mc-tier-mini__rank {
  margin-left: 4px;
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  font-size: 11px;
}

/* 0 分變體：降低存在感但仍顯示 */
.mc-tier-mini--zero { opacity: 0.65; }
.mc-tier-mini--zero:hover { opacity: 1; }

/* 生涯最高段位變體 */
.mc-tier-mini--peak {
  opacity: 0.7;
  cursor: help;
}

/* ---------- 會員中心 hero 賽季段位進度條 ---------- */
.mc-rank-bar {
  position: relative;
  display: block;
  margin-top: 10px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tier-color, rgba(255, 255, 255, 0.15));
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.mc-rank-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.mc-rank-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tier-color) 60%, transparent),
    var(--tier-color, #5dade2));
  transition: width .6s ease;
}
.mc-rank-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.mc-rank-max {
  margin-left: 6px;
  padding: 1px 6px;
  background: linear-gradient(135deg, #ffd700, #ff9500);
  color: #000;
  border-radius: 4px;
  font-size: 11px;
}

/* 0 分變體：虛線邊框、淡色填充 */
.mc-rank-bar--zero {
  opacity: 0.7;
  border-style: dashed;
}
.mc-rank-bar--zero .mc-rank-fill {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.15));
}
.mc-rank-bar--zero:hover { opacity: 1; }

/* ---------- RWD ---------- */
@media (max-width: 640px) {
  .ranku-hero__tier { min-width: 0; width: 100%; }
  .ranku-hero__tier-label { font-size: 18px; }
  .ranku-hero__tier-icon { font-size: 24px; }
  .mc-rank-bar { height: 32px; }
  .mc-rank-text { font-size: 12px; flex-wrap: wrap; }
}
