/* =====================================================
   pwa.css — PWA 홈 화면 설치 버튼
   Expense Tracker v0.2.5
   ===================================================== */

/* ─── 공통 래퍼 ─── */
.pwa-install-wrap {
  width: 100%;
  display: none;        /* JS가 조건에 따라 show */
}
.pwa-install-wrap.show {
  display: block;
}

/* ══════════════════════════════
   AUTH 화면 설치 카드 (다크 테마)
══════════════════════════════ */
.auth-pwa-wrap {
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
}

.auth-pwa-card {
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.18s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.auth-pwa-card:active { transform: scale(0.97); opacity: 0.85; }

.auth-pwa-card .pwa-app-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.auth-pwa-card .pwa-text { flex: 1; min-width: 0; }
.auth-pwa-card .pwa-title {
  font-size: 14px; font-weight: 800;
  color: #ffffff; margin-bottom: 3px;
}
.auth-pwa-card .pwa-sub {
  font-size: 11px; color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

.auth-pwa-card .pwa-cta-badge {
  flex-shrink: 0;
  background: #ffffff;
  color: #111111;
  font-size: 12px; font-weight: 800;
  padding: 7px 14px;
  border-radius: 20px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* ══════════════════════════════
   APP 화면 설치 카드 (라이트 테마)
══════════════════════════════ */
.app-pwa-wrap {
  margin-bottom: 16px;
}

.app-pwa-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.app-pwa-card:active { transform: scale(0.97); }

.app-pwa-card .pwa-app-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.app-pwa-card .pwa-text { flex: 1; min-width: 0; }
.app-pwa-card .pwa-title {
  font-size: 15px; font-weight: 800;
  color: var(--c-text); margin-bottom: 4px;
}
.app-pwa-card .pwa-sub {
  font-size: 12px; color: var(--c-text2);
  line-height: 1.4;
}
.app-pwa-card .pwa-badges {
  display: flex; gap: 5px; margin-top: 6px;
}
.pwa-os-badge {
  font-size: 10px; font-weight: 700;
  background: var(--c-surface2);
  color: var(--c-text2);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 2px 7px;
}

.app-pwa-cta {
  flex-shrink: 0;
}
.app-pwa-cta-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
}
.app-pwa-cta-icon {
  width: 44px; height: 44px;
  background: var(--c-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.app-pwa-cta-label {
  font-size: 10px; font-weight: 700;
  color: var(--c-text2);
}

/* ══════════════════════════════
   iOS 설치 안내 모달
══════════════════════════════ */
#iosInstallModal .modal-box {
  max-width: 340px;
}

.ios-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ios-modal-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}
.ios-modal-title {
  font-size: 17px; font-weight: 900;
  color: var(--c-text);
  line-height: 1.3;
}
.ios-modal-subtitle {
  font-size: 12px; color: var(--c-text2); margin-top: 2px;
}

.ios-steps { margin-bottom: 20px; }
.ios-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}
.ios-step:last-child { border-bottom: none; }

.ios-step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ios-step-content { flex: 1; }
.ios-step-main {
  font-size: 14px; font-weight: 700;
  color: var(--c-text); margin-bottom: 2px;
}
.ios-step-desc {
  font-size: 12px; color: var(--c-text2);
  line-height: 1.4;
}
.ios-step-emoji { font-size: 16px; }

.ios-note {
  font-size: 11px; color: var(--c-text3);
  text-align: center;
  padding: 10px;
  background: var(--c-surface2);
  border-radius: 10px;
  margin-bottom: 16px;
}
