/**
 * Download App Popup Styles
 *
 * @package Transtoyou
 * @subpackage Popups
 */

/* Download App Popup Styles */
.download-app-popup {
  transition: opacity 0.3s ease;
  z-index: 99999;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.download-app-popup.show {
  opacity: 1;
}

.close-popup .fas.fa-times {
  font-family: "Font Awesome 6 Free";
}

.download-app-popup .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  backdrop-filter: blur(4px);
}

.download-app-popup .popup-content {
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  position: relative;
  margin: 20px auto !important;
  overflow-y: auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border-radius: 30px;
  background-color: var(--tty-bg-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-app-popup .popup-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-radius: 30px 30px 0 0;
}

.download-app-popup .fa-brands.fa-google-play {
  padding-right: 7px;
}

.download-app-popup .popup-header h3 {
  margin: 0;
  font-size: 24px;
}

.download-app-popup .popup-header h3 i {
  font-size: 30px;
}


.download-app-popup .popup-body {
  padding: 10px 25px 50px 25px;
}

/* App Download Content Styles */
.app-download-content {
  display: flex;
  gap: 30px;
}

.app-info {
  flex: 1;
}

.app-info h4 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 20px;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.app-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  margin: 0px;
}

.app-features li:last-child {
  border-bottom: none;
}

.app-features li i {
margin-right: 15px;
  color: #e5924c;
  font-size: 20px;
  display: flex;
  align-items: center;
  width: 18px;
}

.app-qr-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-animation-wrapper {
  position: relative;
  width: 230px;
  height: 230px;
  margin-bottom: 20px;
  background: white;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.app-qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-animation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.qr-scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: rgba(242, 151, 31, 0.73);
  box-shadow: 0 0 8px 1px rgba(242, 151, 31, 0.61);
  top: -5%;
  animation: scanAnimation 2.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes scanQR {
  0% {
    top: 0;
    opacity: 0.7;
  }
  50% {
    top: calc(100% - 2px);
    opacity: 1;
  }
  50.1% {
    opacity: 0;
  }
  50.2% {
    top: 0;
    opacity: 0;
  }
  52% {
    opacity: 0.7;
  }
  100% {
    top: 0;
    opacity: 0.7;
  }
}

[data-theme="dark"] .qr-animation-wrapper {
  filter: brightness(0.8) contrast(1.1);
}

[data-theme="dark"] .app-store-button i {
  background: #1e2a2e;
}

[data-theme="dark"] .close-popup {
  color: #121212;
  background:#006e6e !important;
}

[data-theme="dark"] .fa-solid.fa-chevron-down {
  background:#006e6e;
  color: #d68a49 !important;
}

.scan-instructions {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--tty-text-secondary);
  font-weight: 500;
}

.app-store-buttons {
  display: flex;
  gap: 15px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #005f5f;
  color: white;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.app-store-button:hover {
  background: #004c4c;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.app-store-button i {
  color: #f2971f;
  background: #fff;
  border-radius: 50%;
  padding: 9px 10px;
  margin: -5px -14px -5px 10px;
  box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.2);
  width: 36px;
  height: 36px;
}


/* Media queries for responsiveness */
@media (max-width: 768px) {
  .app-download-content {
    flex-direction: column;
  }
  
  .app-qr-container {
    margin-top: 30px;
  }

  .app-store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 200px;
  }

  .app-store-button {
    width: 100%;
    justify-content: center;
  }
}

/* Animation classes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-item {
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Verbeterde scrollbar styling */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}