/* assets/a2hs-prompt.css */
/* This is the corrected version that matches the JS file's classes */

/* --- 1. Default Floating Install Button --- */
.a2hswp-install-button-floating {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background-color: #007bff;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none; /* Hidden by default, shown by JS */
  animation: a2hswp-slide-up 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.a2hswp-install-button-floating:hover {
  background-color: #0056b3;
}

@keyframes a2hswp-slide-up {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* --- 2. iOS Instruction Modal --- */

.a2hswp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: a2hswp-fade-in 0.3s;
}

.a2hswp-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  color: #333;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  z-index: 10001;
  animation: a2hswp-slide-up-modal 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.a2hswp-modal-header {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-right: 30px; /* Space for close button */
}

.a2hswp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: #eee;
  border: none;
  color: #777;
  font-size: 24px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 500;
}

.a2hswp-modal-close:hover {
  background-color: #ddd;
  color: #333;
}

.a2hswp-modal-body p {
  font-size: 16px;
  margin: 0 0 16px;
}

.a2hswp-modal-body ol {
  padding-left: 20px;
  margin: 0;
}

.a2hswp-modal-body li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.a2hswp-modal-body li:last-child {
  margin-bottom: 0;
}

/* --- Animations --- */
@keyframes a2hswp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes a2hswp-slide-up-modal {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}