/**
 * Cart Reminder Popup Styles - Vui Cuoi Len
 * Styles cho popup nhac nho gio hang bo do
 */

/* ========================
   REMINDER MODAL BASE
   ======================== */
.reminder-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.reminder-modal.active {
  opacity: 1;
  visibility: visible;
}

.reminder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

/* ========================
   REMINDER CONTENT
   ======================== */
.reminder-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.reminder-modal.active .reminder-content {
  transform: scale(1) translateY(0);
}

/* Close Button */
.reminder-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reminder-close:hover {
  background: #ff6b6b;
  color: white;
}

.reminder-close i {
  width: 18px;
  height: 18px;
}

/* ========================
   FIRST REMINDER (Wait Time)
   ======================== */
.reminder-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #FFAEC9 0%, #FF69B4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.reminder-icon i {
  width: 40px;
  height: 40px;
  color: white;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.reminder-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.reminder-time {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FF69B4;
  margin-bottom: 15px;
}

.reminder-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Action Buttons */
.reminder-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-reminder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-reminder i {
  width: 18px;
  height: 18px;
}

.btn-zalo {
  background: #0068FF;
  color: white;
}

.btn-zalo:hover {
  background: #0050cc;
  transform: translateY(-2px);
}

.btn-call {
  background: #2ECC71;
  color: white;
}

.btn-call:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

/* View Cart Button */
.btn-view-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #FF69B4;
  color: #FF69B4;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-cart:hover {
  background: #FF69B4;
  color: white;
}

.btn-view-cart i {
  width: 18px;
  height: 18px;
}

/* ========================
   SECOND REMINDER (Promo)
   ======================== */
.reminder-promo .reminder-content,
.promo-content {
  background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%);
  padding: 35px 25px;
}

.promo-intro {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF69B4 0%, #E91E8C 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.promo-badge i {
  width: 16px;
  height: 16px;
}

.promo-value {
  font-size: 3rem;
  font-weight: 800;
  color: #FF69B4;
  line-height: 1.2;
  margin-bottom: 10px;
}

.promo-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 100px;
  overflow-y: auto;
}

/* Promo Code Box */
.promo-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
  border: 2px dashed #FF69B4;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

.promo-code-box span {
  font-size: 0.9rem;
  color: #666;
}

.promo-code-box code {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FF69B4;
  letter-spacing: 2px;
}

.promo-code-box button {
  width: 35px;
  height: 35px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.promo-code-box button:hover {
  background: #FF69B4;
  color: white;
}

.promo-code-box button i {
  width: 16px;
  height: 16px;
}

/* Apply Promo Button */
.btn-apply-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #FF69B4 0%, #E91E8C 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.btn-apply-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.btn-apply-promo i {
  width: 20px;
  height: 20px;
}

/* Later Button */
.btn-later {
  background: none;
  border: none;
  color: #999;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s ease;
}

.btn-later:hover {
  color: #666;
  text-decoration: underline;
}

/* ========================
   MOBILE RESPONSIVE
   ======================== */
@media (max-width: 480px) {
  .reminder-content {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .reminder-icon {
    width: 60px;
    height: 60px;
  }

  .reminder-icon i {
    width: 30px;
    height: 30px;
  }

  .reminder-content h3 {
    font-size: 1.3rem;
  }

  .reminder-time {
    font-size: 2rem;
  }

  .reminder-actions {
    flex-direction: column;
  }

  .btn-reminder {
    width: 100%;
    justify-content: center;
  }

  .promo-value {
    font-size: 2.5rem;
  }

  .promo-code-box {
    flex-wrap: wrap;
    gap: 8px;
  }

  .promo-code-box code {
    font-size: 1.1rem;
  }

  .btn-apply-promo {
    font-size: 1rem;
    padding: 14px 24px;
  }
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.reminder-modal.active .promo-badge {
  animation: bounceIn 0.5s ease 0.2s both;
}

.reminder-modal.active .promo-value {
  animation: bounceIn 0.5s ease 0.3s both;
}

/* ========================
   CONFETTI EFFECT (Optional)
   ======================== */
.reminder-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, #FF69B4 2px, transparent 2px),
    radial-gradient(circle, #FFD700 2px, transparent 2px),
    radial-gradient(circle, #87CEEB 2px, transparent 2px);
  background-size: 50px 50px, 70px 70px, 60px 60px;
  background-position: 0 0, 25px 25px, 50px 10px;
  opacity: 0.1;
  pointer-events: none;
}
