/* =============================================================================
 * FWO Player Portal - Hall of Fame / Ranking Styles
 * Modern dark fantasy theme matching style.css and boss.css
 * ========================================================================== */

.hof-container {
  max-width: 1120px;
  margin: 1.25rem auto 3.5rem auto;
  padding: 0 1.25rem;
}

/* Top Bar: Back navigation & live sync status */
.hof-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hof-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hof-back-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
  transform: translateX(-2px);
}

.hof-back-arrow {
  font-size: 1rem;
  line-height: 1;
}

.hof-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 600;
}

.hof-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: hofPulse 2s infinite ease-in-out;
}

@keyframes hofPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Hero Section */
.hof-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.25rem auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.hof-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #eab308;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.hof-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #ffd700 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hof-hero-subtitle {
  font-weight: 600;
  font-size: 1.35rem;
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
}

.hof-hero-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
}

.hof-hero-desc strong {
  color: #f1f5f9;
}

/* Category Tabs */
.hof-tabs-container {
  margin-bottom: 2rem;
}

.hof-tabs-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hof-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hof-tab-btn .tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.hof-tab-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hof-tab-btn.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(180, 83, 9, 0.18));
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

/* Current category banner */
.hof-banner {
  background: linear-gradient(135deg, rgba(28, 26, 44, 0.92), rgba(16, 15, 26, 0.96));
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.hof-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hof-banner-icon {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 14px rgba(234, 179, 8, 0.45));
}

.hof-banner-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #eab308;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hof-banner-text h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: -0.3px;
}

.hof-banner-text p {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.hof-banner-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
}

.hof-banner-count .count-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}

.hof-banner-count .count-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Podium Cards for Top 3 (Compact & Proportional) */
.hof-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.85rem;
  max-width: 800px;
  margin: 0 auto 2.25rem auto;
}

.podium-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 24, 38, 0.92), rgba(15, 14, 23, 0.96));
  border-radius: 14px;
  padding: 1.1rem 0.9rem 1rem 0.9rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.podium-card:hover {
  transform: translateY(-3px);
}

.podium-rank-1 {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(180deg, rgba(38, 32, 18, 0.95), rgba(18, 16, 24, 0.98));
  box-shadow: 0 10px 28px rgba(234, 179, 8, 0.22);
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
  order: 2;
}

.podium-rank-2 {
  border-color: rgba(203, 213, 225, 0.3);
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.1);
  order: 1;
}

.podium-rank-3 {
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.1);
  order: 3;
}

.podium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.podium-rank-1 .podium-badge {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}
.podium-rank-2 .podium-badge {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}
.podium-rank-3 .podium-badge {
  background: linear-gradient(135deg, #d97706, #78350f);
}

.podium-rank-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.podium-rank-1 .podium-rank-label {
  color: #ffd700;
}
.podium-rank-2 .podium-rank-label {
  color: #cbd5e1;
}
.podium-rank-3 .podium-rank-label {
  color: #f59e0b;
}

.podium-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-rank-1 .podium-name {
  font-size: 1.25rem;
  color: #fff;
}

.podium-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 0.2rem;
}

.podium-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 680px) {
  .hof-podium {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .podium-rank-1 { order: 1; }
  .podium-rank-2 { order: 2; }
  .podium-rank-3 { order: 3; }
}

/* Table for Rank 4+ */
.hof-table-wrap {
  background: rgba(18, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hof-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hof-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hof-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  color: #e2e8f0;
}

.hof-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.hof-rank-col {
  width: 70px;
  font-weight: 800;
  color: #64748b;
}

.hof-char-name {
  font-weight: 700;
  color: #fff;
}

.hof-val-col {
  font-weight: 700;
  color: #ffd700;
  text-align: right;
}

.hof-sub-col {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: right;
}

/* Empty State */
.hof-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(18, 18, 28, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.hof-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hof-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.hof-empty-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
}

/* Video epilog kemenangan */
.comic-banner.comic-video{display:block;width:100%;padding:0;background:none;object-fit:cover}
@media(prefers-reduced-motion:reduce){.comic-banner.comic-video{display:none}}
