/**
 * KumaLIVE - Discord-Grade Avatar Decorations & Profile Effects System
 * 100% Visual Parity with Discord Shop
 */

/* Avatar Container with Decoration Support */
.discord-avatar-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Avatar Decoration Overlay (Overhangs avatar by ~28% gracefully) */
.avatar-decoration-overlay {
  position: absolute;
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.avatar-decoration-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Discord Shop Bundle Cards */
.discord-shop-card {
  background: rgba(18, 24, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  position: relative;
}

.discord-shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Shop Card Hero Stage: Tilted Profile Card + Floating Decorated Avatar */
.discord-shop-stage {
  position: relative;
  height: 200px;
  background: radial-gradient(circle at center, #1e293b 0%, #0a0f1d 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Tilted Mini Profile Card in Background */
.discord-shop-mini-card {
  position: absolute;
  width: 120px;
  height: 145px;
  right: 28px;
  bottom: 12px;
  background: #182035;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(8deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.discord-shop-card:hover .discord-shop-mini-card {
  transform: rotate(12deg) scale(1.04);
}

.discord-shop-mini-banner {
  height: 48px;
  width: 100%;
  position: relative;
}

.discord-shop-mini-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-shop-mini-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Prominent Front Avatar in Shop Card */
.discord-shop-front-avatar {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
  height: 86px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.discord-shop-card:hover .discord-shop-front-avatar {
  transform: translateY(-50%) scale(1.08);
}

/* Profile Card Top Ornament Effect */
.profile-card-effect-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}

/* Micro-animations for Discord-grade decorations */
@keyframes deco-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes deco-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)); opacity: 0.95; }
  50% { filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.85)); opacity: 1; }
}

@keyframes deco-spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes deco-wing-flap {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50% { transform: scaleX(1.08) scaleY(0.95); }
}

.deco-animated-float {
  animation: deco-float 3.5s ease-in-out infinite;
}

.deco-animated-pulse {
  animation: deco-pulse 2.2s ease-in-out infinite;
}

.deco-animated-wings {
  animation: deco-wing-flap 2s ease-in-out infinite;
  transform-origin: center;
}
