/* Seasonal Trophies & Hall of Records */

.trophies-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.trophies-header {
  text-align: center;
  margin-bottom: 2rem;
}

.trophies-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.trophies-subtitle {
  color: #9ca3af;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

/* Trophy Definition Grid */
.trophy-defs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.trophy-def-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #334155;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trophy-def-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.trophy-rarity-legendary { border-color: #f59e0b; }
.trophy-rarity-epic { border-color: #a855f7; }
.trophy-rarity-rare { border-color: #3b82f6; }
.trophy-rarity-uncommon { border-color: #22c55e; }
.trophy-rarity-common { border-color: #6b7280; }

.trophy-def-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.trophy-def-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.trophy-def-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.trophy-def-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.trophy-rarity-badge {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.trophy-points {
  color: #f59e0b;
  font-weight: 600;
}

/* Leaderboard */
.trophy-leaderboard-section {
  margin-bottom: 2rem;
}

.trophy-leaderboard-section h3 {
  margin-bottom: 1rem;
}

.trophy-lb-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trophy-lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.trophy-lb-rank {
  font-size: 1.2rem;
  min-width: 2rem;
  text-align: center;
}

.trophy-lb-name {
  font-weight: 600;
  flex: 1;
}

.trophy-lb-count {
  font-size: 0.9rem;
  color: #94a3b8;
}

.trophy-lb-points {
  font-weight: 700;
  color: #f59e0b;
  min-width: 60px;
  text-align: right;
}

.trophy-lb-rarity-bar {
  display: flex;
  gap: 3px;
}

.rarity-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #000;
}

/* Empty state */
.trophy-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}

.trophy-empty-sub {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Agent selector */
.trophy-agent-section {
  margin-bottom: 2rem;
}

.trophy-agent-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trophy-agent-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.trophy-agent-btn:hover {
  background: #475569;
}

/* Agent trophy case */
.trophy-agent-case h4 {
  margin-bottom: 0.75rem;
}

.trophy-showcase {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.trophy-showcase-item {
  cursor: default;
}

.trophy-earned-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trophy-earned-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #1e293b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid;
}

.trophy-earned-card.trophy-rarity-legendary { border-left-color: #f59e0b; }
.trophy-earned-card.trophy-rarity-epic { border-left-color: #a855f7; }
.trophy-earned-card.trophy-rarity-rare { border-left-color: #3b82f6; }
.trophy-earned-card.trophy-rarity-uncommon { border-left-color: #22c55e; }
.trophy-earned-card.trophy-rarity-common { border-left-color: #6b7280; }

.trophy-earned-emoji {
  font-size: 1.5rem;
}

.trophy-earned-info {
  flex: 1;
}

.trophy-earned-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.trophy-earned-season {
  font-size: 0.75rem;
  color: #64748b;
}

.trophy-earned-points {
  font-weight: 700;
  color: #f59e0b;
  font-size: 0.85rem;
}

.trophy-loading {
  text-align: center;
  color: #64748b;
  padding: 2rem;
}

.trophy-agent-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem;
  background: #1e293b;
  border-radius: 8px;
}

/* Light mode */
.light-mode .trophy-def-card,
.light-mode .trophy-lb-row,
.light-mode .trophy-earned-card,
.light-mode .trophy-agent-empty {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.light-mode .trophy-agent-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

.light-mode .trophy-agent-btn:hover {
  background: #cbd5e1;
}

.light-mode .trophies-subtitle,
.light-mode .trophy-def-desc,
.light-mode .trophy-lb-count,
.light-mode .trophy-earned-season {
  color: #64748b;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .trophy-defs-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .trophy-def-card {
    padding: 0.75rem;
  }
  
  .trophy-def-emoji {
    font-size: 2rem;
  }
  
  .trophy-lb-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .trophy-lb-rarity-bar {
    width: 100%;
    justify-content: flex-end;
  }
}
