/* ── Illumina Arts Fest - PWA Mobile Install Toaster (Clean Modern Design) ── */

.illumina-pwa-toast {
  position: fixed;
  bottom: 16px;
  left: 14px;
  right: 14px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 999999;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  padding: 10px 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.illumina-pwa-toast.illumina-pwa-toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-toast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-toast-leading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pwa-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.pwa-toast-text {
  min-width: 0;
  flex: 1;
}

.pwa-toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-toast-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 450;
}

.pwa-toast-trailing {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.28);
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.pwa-btn-install:hover {
  background: #4338ca;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.38);
  transform: translateY(-0.5px);
}

.pwa-btn-install:active {
  transform: translateY(0);
  background: #3730a3;
}

.pwa-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pwa-toast-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* iOS Safari Guide (accordion expands smoothly on tap) */
.pwa-ios-guide {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: none;
  animation: pwaFadeIn 0.2s ease;
}

.pwa-ios-guide.pwa-ios-guide--open {
  display: block;
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
}

.pwa-ios-step:last-child {
  margin-bottom: 0;
}

.pwa-ios-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.pwa-ios-icon {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 2px;
  color: #0284c7;
}

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

/* Responsive adjustment for extra narrow devices (<= 340px) */
@media (max-width: 340px) {
  .illumina-pwa-toast {
    left: 8px;
    right: 8px;
    padding: 8px 10px;
  }
  .pwa-toast-icon {
    width: 36px;
    height: 36px;
  }
  .pwa-btn-install {
    padding: 6px 12px;
    font-size: 12px;
  }
}
