/**
 * Premium Badge - Insignia Premium Animada
 * Ultra-moderna, profesional y llamativa
 */

/* ================================
   PREMIUM BADGE - PRINCIPAL
   ================================ */
.premium-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 
    0 4px 15px rgba(240, 147, 251, 0.4),
    0 0 20px rgba(245, 87, 108, 0.3);
  animation: premiumPulse 3s ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: default;
}

.premium-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #f093fb, #f5576c, #4facfe, #f093fb);
  background-size: 300% 300%;
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  animation: premiumBorderFlow 4s linear infinite;
  transition: opacity 0.3s ease;
}

.premium-badge:hover::before {
  opacity: 1;
}

.premium-badge:hover {
  transform: scale(1.05);
  box-shadow: 
    0 6px 25px rgba(240, 147, 251, 0.6),
    0 0 30px rgba(245, 87, 108, 0.5);
}

/* Icono estrella dentro del badge */
.premium-badge__icon {
  width: 16px;
  height: 16px;
  color: #ffffff !important;
  fill: #ffffff !important;
  animation: premiumRotate 4s linear infinite;
}

.premium-badge__text {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes premiumPulse {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(240, 147, 251, 0.4),
      0 0 20px rgba(245, 87, 108, 0.3);
  }
  50% {
    box-shadow: 
      0 6px 25px rgba(240, 147, 251, 0.6),
      0 0 35px rgba(245, 87, 108, 0.5);
  }
}

@keyframes premiumBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes premiumRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes premiumShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ================================
   VARIANTE: BADGE PARA TARJETAS
   ================================ */
.premium-badge--card {
  top: 8px;
  left: 8px;
  padding: 6px 12px;
  font-size: 0.65rem;
  border-radius: 6px;
}

.premium-badge--card .premium-badge__icon {
  width: 12px;
  height: 12px;
}

/* ================================
   VARIANTE: BADGE PARA VITRINA PLUS
   ================================ */
.premium-badge--vitrina {
  position: relative;
  top: 0;
  left: 0;
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 12px;
  display: inline-flex;
}

.premium-badge--vitrina .premium-badge__icon {
  width: 20px;
  height: 20px;
}

/* ================================
   VARIANTE: BADGE GRANDE (HERO)
   ================================ */
.premium-badge--hero {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  font-size: 0.9rem;
  border-radius: 16px;
}

.premium-badge--hero .premium-badge__icon {
  width: 24px;
  height: 24px;
}

/* ================================
   EFECTO SHINE (Brillo que cruza)
   ================================ */
.premium-badge--shine {
  overflow: hidden;
  position: relative;
}

.premium-badge--shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: premiumShine 3s ease-in-out infinite;
}

/* ================================
   VARIANTE: BADGE DORADO (VIP)
   ================================ */
.premium-badge--gold {
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
  color: #ffffff !important;
  box-shadow: 
    0 4px 15px rgba(249, 212, 35, 0.4),
    0 0 20px rgba(255, 78, 80, 0.3);
}

.premium-badge--gold:hover {
  box-shadow: 
    0 6px 25px rgba(249, 212, 35, 0.6),
    0 0 30px rgba(255, 78, 80, 0.5);
}

/* ================================
   VARIANTE: BADGE DIAMANTE (ELITE)
   ================================ */
.premium-badge--diamond {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #ffffff !important;
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.4),
    0 0 20px rgba(240, 147, 251, 0.3);
}

.premium-badge--diamond::before {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
}

/* ================================
   BADGE CON PARTÍCULAS (EXTRA)
   ================================ */
.premium-badge--particles {
  position: relative;
}

.premium-badge--particles::before,
.premium-badge--particles::after {
  content: '✨';
  position: absolute;
  font-size: 12px;
  opacity: 0;
  animation: particleFloat 2s ease-in-out infinite;
}

.premium-badge--particles::before {
  top: -10px;
  left: -10px;
  animation-delay: 0s;
}

.premium-badge--particles::after {
  bottom: -10px;
  right: -10px;
  animation-delay: 1s;
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0px);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .premium-badge {
    padding: 6px 12px;
    font-size: 0.65rem;
  }
  
  .premium-badge__icon {
    width: 14px;
    height: 14px;
  }
  
  .premium-badge--hero {
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ================================
   BADGE EN LISTA/GRID DE NEGOCIOS
   ================================ */
.business-card {
  position: relative;
}

.business-card .premium-badge {
  top: 12px;
  left: 12px;
}

/* ================================
   TOOLTIP PREMIUM (Opcional)
   ================================ */
.premium-badge[data-tooltip] {
  position: relative;
}

.premium-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.premium-badge[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================
   VARIANTE: BADGE MINIMALISTA
   ================================ */
.premium-badge--minimal {
  background: rgba(240, 147, 251, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(240, 147, 251, 0.5);
  color: #f093fb;
  box-shadow: none;
  animation: none;
}

.premium-badge--minimal:hover {
  background: rgba(240, 147, 251, 0.25);
  border-color: rgba(240, 147, 251, 0.8);
}

/* ================================
   EFECTO NEÓN
   ================================ */
.premium-badge--neon {
  background: transparent;
  border: 2px solid #f093fb;
  color: #f093fb;
  text-shadow: 
    0 0 5px #f093fb,
    0 0 10px #f093fb,
    0 0 20px #f093fb;
  box-shadow: 
    0 0 10px rgba(240, 147, 251, 0.5),
    inset 0 0 10px rgba(240, 147, 251, 0.2);
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 
      0 0 5px #f093fb,
      0 0 10px #f093fb,
      0 0 20px #f093fb;
    box-shadow: 
      0 0 10px rgba(240, 147, 251, 0.5),
      inset 0 0 10px rgba(240, 147, 251, 0.2);
  }
  50% {
    text-shadow: 
      0 0 10px #f093fb,
      0 0 20px #f093fb,
      0 0 40px #f093fb;
    box-shadow: 
      0 0 20px rgba(240, 147, 251, 0.8),
      inset 0 0 20px rgba(240, 147, 251, 0.4);
  }
}
