/*
==============================================
PLEY — POPUP CSS
Contiene: download-popup, popup-overlay,
store-options, y animaciones del popup.
==============================================
*/

/* ============================================
   DOWNLOAD APP POPUP
   ============================================ */
.download-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1000;
  background: rgba(26, 9, 64, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(221, 0, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 25px 50px rgba(221, 0, 255, 0.3);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 2, 32, 0.8);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.download-popup-content {
  text-align: center;
  color: white;
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popup:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.download-popup h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #dd00ff, #aa00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-popup p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ============================================
   STORE OPTIONS
   ============================================ */
.store-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.store-option {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.download-popup.active .store-option {
  animation: slideInUp 0.6s ease forwards;
}

.download-popup.active .store-option:nth-child(1) { animation-delay: 0.1s; }
.download-popup.active .store-option:nth-child(2) { animation-delay: 0.2s; }

.store-option:hover {
  background: rgba(221, 0, 255, 0.1);
  border-color: rgba(221, 0, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(221, 0, 255, 0.2);
}

.store-option .material-icons {
  font-size: 2.5rem;
  margin-right: 1rem;
  color: #ffffff;
}

.store-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.device-type {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   QR SECTION
   ============================================ */
.qr-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.qr-section p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 12px;
  margin: 0 auto;
  opacity: 0;
}

.download-popup.active .qr-code {
  animation: fadeIn 0.8s ease 0.4s forwards;
}

.qr-code .material-icons {
  font-size: 3rem;
  color: #333;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .download-popup {
    width: 95%;
    padding: 1.5rem;
  }
  
  .download-popup h3 {
    font-size: 1.5rem;
  }
  
  .store-option {
    padding: 0.8rem 1rem;
  }
  
  .store-option .material-icons {
    font-size: 2rem;
    margin-right: 0.8rem;
  }
}
