/* ================================================
   MotoXpress v3.5.2 - San Juan Edition
   SISTEMA DE NOTIFICACIONES PREMIUM - VALORACIONES
   ================================================ */

/* Overlay de Notificación */
.rating-notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483646; /* Justo debajo del driver-interface */
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rating-notification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Card de Notificación */
.rating-notification-card {
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 32px;
  padding: 40px 30px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rating-notification-overlay.active .rating-notification-card {
  transform: scale(1);
}

/* Icono de Valoración */
.rating-notification-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Título */
.rating-notification-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mensaje */
.rating-notification-message {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Estrellas Display */
.rating-stars-display {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 2rem;
}

.rating-stars-display .star {
  display: inline-block;
  animation: starPop 0.4s ease-out backwards;
}

.rating-stars-display .star:nth-child(1) {
  animation-delay: 0.1s;
}
.rating-stars-display .star:nth-child(2) {
  animation-delay: 0.2s;
}
.rating-stars-display .star:nth-child(3) {
  animation-delay: 0.3s;
}
.rating-stars-display .star:nth-child(4) {
  animation-delay: 0.4s;
}
.rating-stars-display .star:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes starPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Botón de Cerrar */
.rating-notification-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rating-notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* ================================================
   EFECTOS VISUALES POR NIVEL
   ================================================ */

/* NIVEL ALTO (5 Estrellas) - Confeti Dorado */
.rating-notification-overlay.level-high .rating-notification-card {
  border: 2px solid #ffd700;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(255, 215, 0, 0.4),
    0 0 0 1px rgba(255, 215, 0, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.9),
      0 0 40px rgba(255, 215, 0, 0.4),
      0 0 0 1px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.9),
      0 0 60px rgba(255, 215, 0, 0.6),
      0 0 0 2px rgba(255, 215, 0, 0.5);
  }
}

.rating-notification-overlay.level-high .rating-notification-icon {
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

/* NIVEL MEDIO (3-4 Estrellas) - Onda de Luz */
.rating-notification-overlay.level-medium .rating-notification-card {
  border: 2px solid rgba(46, 204, 113, 0.5);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(46, 204, 113, 0.3);
}

.rating-notification-overlay.level-medium .rating-notification-icon {
  filter: drop-shadow(0 0 15px rgba(46, 204, 113, 0.6));
}

/* NIVEL BAJO (1-2 Estrellas) - Destello Ámbar */
.rating-notification-overlay.level-low .rating-notification-card {
  border: 2px solid rgba(255, 152, 0, 0.3);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 152, 0, 0.2);
}

.rating-notification-overlay.level-low .rating-notification-icon {
  filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.4));
}

/* ================================================
   ANIMACIÓN DE PARTÍCULAS FLOTANTES (NIVEL MEDIO)
   ================================================ */

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 32px;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 8px;
  height: 8px;
  background: rgba(46, 204, 113, 0.6);
  border-radius: 50%;
  animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-400px) scale(0);
    opacity: 0;
  }
}

/* ================================================
   BORDE BRILLANTE (NIVEL BAJO)
   ================================================ */

.rating-notification-overlay.level-low::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(255, 152, 0, 0.3);
  border-radius: 8px;
  animation: borderPulse 1.5s ease-in-out 2;
  pointer-events: none;
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 480px) {
  .rating-notification-card {
    padding: 30px 20px;
  }

  .rating-notification-icon {
    font-size: 3rem;
  }

  .rating-notification-title {
    font-size: 1.2rem;
  }

  .rating-notification-message {
    font-size: 0.9rem;
  }

  .rating-stars-display {
    font-size: 1.5rem;
  }
}
