/* ============================================================
   Spektakel Engine – Banner & Leaderboard Styles
   ============================================================ */

/* Spektakel Banner Card */
.spektakel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 31, 0.9));
  border: 2px solid #00A8FF;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spektakel-banner:hover {
  border-color: #00D4FF;
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
  transform: translateY(-2px);
}

.spektakel-banner.live {
  border-color: #FF2D55;
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.4);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 45, 85, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 45, 85, 0.6); }
}

/* Left section: Title & Status */
.spektakel-banner__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 80px;
}

.spektakel-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spektakel-banner__status {
  font-size: 9px;
  color: #9CA3AF;
  font-weight: 600;
}

.spektakel-banner__status.live {
  color: #FF2D55;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spektakel-banner__live-dot {
  width: 6px;
  height: 6px;
  background: #FF2D55;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Center section: Faction score bar */
.spektakel-banner__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.spektakel-banner__factions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  color: #FFFFFF;
}

.spektakel-banner__faction {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.spektakel-banner__faction-emoji {
  font-size: 14px;
}

/* Split bar */
.spektakel-banner__bar {
  width: 100%;
  height: 6px;
  background: rgba(26, 26, 46, 0.9);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.spektakel-banner__bar-faction-a {
  background: linear-gradient(90deg, #00A8FF, #0066FF);
  height: 100%;
  transition: width 0.3s ease;
}

.spektakel-banner__bar-faction-b {
  background: linear-gradient(90deg, #FF6B9D, #FF4080);
  height: 100%;
  flex: 1;
  transition: flex 0.3s ease;
}

/* Right section: CTA */
.spektakel-banner__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 70px;
  text-align: right;
}

.spektakel-banner__cta {
  font-size: 9px;
  font-weight: 700;
  color: #00A8FF;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spektakel-banner__arrow {
  font-size: 16px;
  color: #00A8FF;
  transition: transform 0.2s ease;
}

.spektakel-banner:hover .spektakel-banner__arrow {
  transform: translateX(4px);
}

/* ============================================================
   Gaming Week / Leaderboard Page
   ============================================================ */

.gaming-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gaming-header {
  margin-bottom: 30px;
}

.gaming-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gaming-subtitle {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0;
}

/* Countdown Box */
.countdown-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 102, 255, 0.1));
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 12px;
  text-align: center;
}

.countdown-number {
  font-size: 28px;
  font-weight: 700;
  color: #00A8FF;
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Faction standings */
.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.faction-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 31, 0.9));
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 16px;
  text-align: center;
}

.faction-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.faction-name {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.faction-score {
  font-size: 24px;
  font-weight: 700;
  color: #00A8FF;
  margin: 8px 0 4px;
}

.faction-members {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}

/* Leaderboard table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.leaderboard-table thead {
  border-bottom: 2px solid rgba(0, 168, 255, 0.3);
}

.leaderboard-table th {
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(0, 168, 255, 0.1);
  transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(0, 168, 255, 0.05);
}

.leaderboard-table td {
  padding: 16px 12px;
  font-size: 14px;
  color: #E8E8F0;
}

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

.rank-badge.gold {
  background: #FFD700;
  color: #000;
}

.rank-badge.silver {
  background: #C0C0C0;
  color: #000;
}

.rank-badge.bronze {
  background: #CD7F32;
  color: #FFF;
}

.rank-badge.gray {
  background: rgba(150, 150, 168, 0.3);
  color: #9CA3AF;
}

/* Username with faction */
.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-faction-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 168, 255, 0.2);
  border-radius: 4px;
  font-size: 10px;
  color: #00A8FF;
  font-weight: 600;
}

.leaderboard-score {
  font-weight: 700;
  color: #00A8FF;
  font-size: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .spektakel-banner {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .spektakel-banner__center {
    width: 100%;
  }

  .countdown-box {
    grid-template-columns: repeat(4, 1fr);
  }

  .countdown-unit {
    padding: 12px 8px;
  }

  .countdown-number {
    font-size: 20px;
  }

  .standings-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-table {
    font-size: 12px;
  }

  .leaderboard-table td,
  .leaderboard-table th {
    padding: 8px;
  }
}
