/* ========================================================
   PWA 手機桌面安裝專用獨立樣式表
   檔案路徑: static/modules/pwa_install/pwa_install.css
   ======================================================== */

.pwa-install-container {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 12px 0;
  box-sizing: border-box;
}

.btn-pwa-install {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45), 0 0 16px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  outline: none;
  box-sizing: border-box;
  animation: pwa-banner-glow 2.5s infinite alternate ease-in-out;
}

@keyframes pwa-banner-glow {
  0% {
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.4), 0 0 12px rgba(251, 191, 36, 0.25);
  }
  100% {
    box-shadow: 0 6px 26px rgba(220, 38, 38, 0.65), 0 0 22px rgba(251, 191, 36, 0.6);
  }
}

.btn-pwa-install:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-pwa-install:active {
  transform: scale(0.98);
  filter: brightness(0.92);
}

.pwa-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(251, 191, 36, 0.5);
  border: 1.5px solid rgba(251, 191, 36, 0.8);
}

.pwa-btn-texts {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-btn-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}

.pwa-btn-sub {
  display: none !important;
}

.pwa-btn-arrow {
  display: none !important;
}

/* 已安裝模式下的精巧狀態條 */
.pwa-installed-pill {
  width: 100%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #6ee7b7;
  margin: 6px 0 12px 0;
  box-sizing: border-box;
}

/* iOS 安裝步驟指引彈窗 */
.ios-modal-card {
  max-width: 440px;
  width: 92%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.8px solid #f59e0b;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.ios-guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px 0;
  text-align: left;
}

.ios-guide-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.5);
  border: 1.5px solid #fbbf24;
}

.ios-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}

.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e1b4b;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.ios-step-text strong {
  color: #fbbf24;
}

/* 手機版適配 */
@media (max-width: 480px) {
  .btn-pwa-install {
    padding: 10px 12px;
  }
  .pwa-btn-icon {
    width: 40px;
    height: 40px;
  }
  .pwa-btn-title {
    font-size: 0.96rem;
  }
  .pwa-btn-sub {
    font-size: 0.7rem;
  }
  .pwa-btn-arrow {
    font-size: 0.75rem;
    padding: 5px 9px;
  }
}
