/* =============================================================
   EVENTS.CSS — Leaderboard Podium, Achievements Grid, Event FX
   ============================================================= */

/* ============================================================
   TOP 3 PODIUM LEADERBOARD CARDS (Matching Reference Image)
   ============================================================ */
#tab-leaderboard {
  padding: 28px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 28px;
}

.leaderboard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.leaderboard-header p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Top 3 Podium Container */
.podium-container {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  .podium-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.podium-card {
  background: linear-gradient(180deg, #161622, #0d0d14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Background Rays Effect */
.podium-card::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* 1st Place Highlights */
.podium-card.first-place {
  border: 1.5px solid rgba(245, 166, 35, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 166, 35, 0.15);
  transform: translateY(-8px);
}

.podium-card.second-place {
  border: 1.5px solid rgba(148, 163, 184, 0.3);
}

.podium-card.third-place {
  border: 1.5px solid rgba(217, 119, 6, 0.3);
}

/* Rank Header Badge */
.podium-rank-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.first-place .podium-rank-badge {
  background: #f59e0b;
  color: #000;
}

.second-place .podium-rank-badge {
  background: #94a3b8;
  color: #000;
}

.third-place .podium-rank-badge {
  background: #d97706;
  color: #fff;
}

/* Crown Icon */
.podium-crown {
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.first-place .podium-crown { color: var(--gold-bright); }
.second-place .podium-crown { color: #cbd5e1; }
.third-place .podium-crown { color: #f59e0b; }

/* Circular Glowing Avatar */
.podium-avatar-wrap {
  width: 72px;
  height: 72px;
  position: relative;
  margin-bottom: 14px;
}

.first-place .podium-avatar-wrap {
  width: 84px;
  height: 84px;
}

.podium-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid;
  padding: 3px;
  background: rgba(0, 0, 0, 0.4);
}

.first-place .podium-avatar-ring {
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.second-place .podium-avatar-ring {
  border-color: #94a3b8;
}

.third-place .podium-avatar-ring {
  border-color: #d97706;
}

.podium-pfp {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Username */
.podium-username {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

/* Total Wagered / Harvested Pill */
.podium-wagered-box {
  background: rgba(10, 14, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.podium-wagered-val {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}

/* Big Trophy Score */
.podium-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
}

.first-place .podium-score-row { color: var(--gold-bright); font-size: 1.55rem; }
.second-place .podium-score-row { color: #cbd5e1; }
.third-place .podium-score-row { color: #f59e0b; }

/* ============================================================
   LEADERBOARD TABLE (Ranks #4 - #50)
   ============================================================ */
.leaderboard-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-empty-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 100%;
}

.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 180px 140px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.lb-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.lb-row.player-row {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), var(--bg-card));
}

.lb-rank-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lb-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-pfp-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  object-fit: cover;
}

.lb-name-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
}

.lb-tier-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lb-score-val {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-align: right;
}

/* ============================================================
   ACHIEVEMENTS PANEL
   ============================================================ */
#tab-achievements {
  padding: 28px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.achievement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.achievement-card.unlocked {
  border-color: rgba(245, 166, 35, 0.35);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), var(--bg-surface));
}

.achievement-card.locked {
  opacity: 0.45;
}

.ach-icon-box {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 48px;
  text-align: center;
}

.ach-body {
  flex: 1;
}

.ach-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.ach-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   SETTINGS PANEL
   ============================================================ */
#tab-settings {
  padding: 28px 24px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.settings-card h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.setting-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item-row:last-child { border-bottom: none; }

.setting-label-box {
  display: flex;
  flex-direction: column;
}

.setting-main-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.setting-sub-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   NEIN PARTY BANNER & IRON BARS
   ============================================================ */
.event-banner {
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  padding: 18px 36px;
  border-radius: 0 0 16px 16px;
  min-width: 360px;
  text-align: center;
  transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.event-banner.active { top: 68px; }

.event-banner.nein-party {
  background: linear-gradient(135deg, #2e1065, #581c87);
  border: 2px solid #c084fc;
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.5);
}

.event-banner.jew-rebel {
  background: linear-gradient(135deg, #064e3b, #047857);
  border: 2px solid #34d399;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.5);
}

.event-banner.ho-ho-holocaust {
  background: linear-gradient(135deg, #0369a1, #b91c1c);
  border: 2px solid #7dd3fc;
  box-shadow: 0 10px 45px rgba(56, 189, 248, 0.6), 0 0 25px rgba(239, 68, 68, 0.4);
}

#event-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

#event-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e9d5ff;
  margin-top: 4px;
}

.event-timer-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

#event-timer-bar {
  height: 100%;
  background: #fff;
  width: 100%;
}

/* Iron Bars */
#iron-bars {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  display: none;
  align-items: stretch;
  justify-content: center;
  gap: 50px;
}

#iron-bars.active { display: flex; }

.iron-bar {
  width: 12px;
  background: linear-gradient(180deg, #64748b, #334155, #64748b);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

#iron-bars.active .iron-bar { transform: scaleY(1); }
#iron-bars.shatter .iron-bar { animation: bar-shatter 0.5s ease-out forwards; }

@keyframes bar-shatter {
  0%   { transform: scaleY(1) rotate(0); opacity: 1; }
  100% { transform: scaleY(0) rotate(15deg) translateY(100vh); opacity: 0; }
}
