/*
 * GOLPOOGRO - Component: Achievement Badge Card
 * Luxury trophy room showcase cards with rarity lighting
 */

.achievements-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.achievement-trophy-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-cinematic);
  cursor: default;
}

.achievement-trophy-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rarity-accent);
}

.achievement-trophy-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--rarity-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25),
              0 0 18px var(--rarity-glow);
  background: var(--bg-glass-hover);
}

.trophy-badge-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.achievement-trophy-card:hover .trophy-badge-wrap {
  transform: scale(1.1) rotate(-4deg);
  border-color: var(--rarity-accent);
  box-shadow: 0 0 15px var(--rarity-glow);
}

.trophy-badge-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--rarity-accent);
}

.badge-rarity-crown {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--rarity-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.badge-rarity-crown svg {
  width: 8px;
  height: 8px;
  color: white;
}

.trophy-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trophy-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trophy-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.trophy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.7rem;
}

.trophy-rarity-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--rarity-bg);
  color: var(--rarity-accent);
}

.trophy-date {
  color: var(--text-muted);
}

/* Trophy Lock Filter Status */
.trophy-locked {
  filter: grayscale(0.85);
  opacity: 0.55;
  border-style: dashed;
}

.trophy-locked::after {
  background: var(--text-muted);
}

.trophy-locked:hover {
  filter: grayscale(0.5);
  opacity: 0.75;
  border-color: var(--text-muted);
  box-shadow: none;
}

/* Define Rarity Color Tokens with CSS properties dynamically injected by style tags */
.rarity-legendary {
  --rarity-accent: #f59e0b; /* Gold */
  --rarity-glow: rgba(245, 158, 11, 0.15);
  --rarity-bg: rgba(245, 158, 11, 0.1);
}

.rarity-epic {
  --rarity-accent: #a855f7; /* Purple */
  --rarity-glow: rgba(168, 85, 247, 0.15);
  --rarity-bg: rgba(168, 85, 247, 0.1);
}

.rarity-rare {
  --rarity-accent: #3b82f6; /* Blue */
  --rarity-glow: rgba(59, 130, 246, 0.15);
  --rarity-bg: rgba(59, 130, 246, 0.1);
}

.rarity-common {
  --rarity-accent: #94a3b8; /* Slate */
  --rarity-glow: rgba(148, 163, 184, 0.05);
  --rarity-bg: rgba(148, 163, 184, 0.08);
}
