/* ========== PRESTIGE COSMETICS ========== */

.prestige-cosmetics-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(255, 215, 0, 0.1));
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(168, 85, 247, 0.3);
}

.prestige-cosmetics-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 15px;
  text-align: center;
  font-style: italic;
}

.prestige-cosmetic-category {
  margin-bottom: 25px;
}

.prestige-cosmetic-title {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.prestige-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.prestige-cosmetic-item {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prestige-cosmetic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.prestige-cosmetic-item:hover::before {
  opacity: 1;
}

.prestige-cosmetic-item.unlocked {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.prestige-cosmetic-item.unlocked:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.prestige-cosmetic-item.active {
  border-color: var(--accent-green);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.5);
}

.prestige-cosmetic-item.active::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
}

.prestige-cosmetic-item.locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.prestige-cosmetic-item.locked:hover {
  transform: none;
  box-shadow: none;
}

.prestige-cosmetic-swatch {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.prestige-cosmetic-icon,
.prestige-cosmetic-emoji {
  font-size: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.prestige-cosmetic-name {
  color: var(--text-primary);
  font-size: 0.75rem;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
}

.prestige-cosmetic-bonus {
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.prestige-cosmetic-req {
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.2;
}

/* Prestige cosmetic tier glows */
.prestige-cosmetic-item.unlocked[data-tier="bronze"] {
  border-color: #cd7f32;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.prestige-cosmetic-item.unlocked[data-tier="silver"] {
  border-color: #c0c0c0;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.prestige-cosmetic-item.unlocked[data-tier="gold"] {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.prestige-cosmetic-item.unlocked[data-tier="platinum"] {
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.prestige-cosmetic-item.unlocked[data-tier="transcend"] {
  border-color: #8b00ff;
  box-shadow: 0 0 20px rgba(139, 0, 255, 0.6);
  animation: pulse-transcend 2s infinite;
}

.prestige-cosmetic-item.unlocked[data-tier="ascend"] {
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  animation: pulse-ascend 2s infinite;
}

.prestige-cosmetic-item.unlocked[data-tier="rebirth"] {
  border-color: #ff006e;
  box-shadow: 0 0 25px rgba(255, 0, 110, 0.7);
  animation: pulse-rebirth 1.5s infinite;
}

@keyframes pulse-transcend {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 0, 255, 0.6); }
  50% { box-shadow: 0 0 30px rgba(139, 0, 255, 0.9); }
}

@keyframes pulse-ascend {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.9); }
}

@keyframes pulse-rebirth {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 0, 110, 0.7); }
  50% { box-shadow: 0 0 35px rgba(255, 0, 110, 1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .prestige-cosmetic-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }

  .prestige-cosmetic-item {
    padding: 8px;
  }

  .prestige-cosmetic-swatch {
    width: 40px;
    height: 40px;
  }

  .prestige-cosmetic-icon,
  .prestige-cosmetic-emoji {
    font-size: 1.8rem;
  }

  .prestige-cosmetic-name {
    font-size: 0.65rem;
  }

  .prestige-cosmetic-bonus,
  .prestige-cosmetic-req {
    font-size: 0.6rem;
  }
}
