/**
 * In-App Browser Download Modal Styles
 */

#inapp-download-modal .modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #6c757d;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

#inapp-download-modal .modal-close-x:hover {
  background: #f0f0f0;
  color: #333;
}

#inapp-download-modal .modal-close-x:active {
  background: #e0e0e0;
}

#inapp-download-modal .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

#inapp-download-modal .modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 9999;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#inapp-download-modal .modal-header {
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#inapp-download-modal .modal-icon {
  font-size: 64px;
  margin: 0;
  animation: bounce 0.6s ease-out;
}

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

#inapp-download-modal .modal-title {
  margin: 0;
  color: #1a202c;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.3;
}

#inapp-download-modal .modal-description {
  color: #4a5568;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

#inapp-download-modal .url-display {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  color: #2d3748;
  max-height: 70px;
  overflow-y: auto;
  text-align: center;
  font-weight: 500;
}

#inapp-download-modal .button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

#inapp-download-modal .btn-copy-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#inapp-download-modal .btn-copy-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

#inapp-download-modal .btn-copy-link:active {
  transform: translateY(0);
}

#inapp-download-modal .btn-copy-link.copied {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

#inapp-download-modal .btn-close {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#inapp-download-modal .btn-close:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

#inapp-download-modal .modal-tip {
  margin: 20px 0 0 0;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #718096;
  text-align: center;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid #667eea;
  line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #inapp-download-modal .modal-content {
    padding: 24px 20px;
  }

  #inapp-download-modal .modal-icon {
    font-size: 48px;
  }

  #inapp-download-modal .modal-title {
    font-size: 1.25rem;
  }

  #inapp-download-modal .modal-description {
    font-size: 0.95rem;
  }

  #inapp-download-modal .url-display {
    font-size: 0.75rem;
    padding: 10px;
  }
}
