/**
 * 🚀 In-App Browser Escape Stylesheet (inapp-escape.css)
 * 카카오톡 등 인앱 브라우저 감지 시 외부 브라우저(Safari/Chrome) 전환 및 홈 화면 설치 유도 가이드
 * 300줄 레고 블록 원칙 준수 (~140줄)
 */

.inapp-escape-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 28, 24, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  box-sizing: border-box;
  color: #FFFFFF;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: inappFadeIn 0.3s ease-out forwards;
}

@keyframes inappFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 상단 지시 힌트 (안드로이드 우측 상단 더보기 점세개) */
.inapp-top-hint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  animation: inappBounceTop 1.5s infinite ease-in-out;
}

.inapp-top-hint span {
  font-size: 14px;
  font-weight: 700;
  color: #A3D9C9;
  background: rgba(45, 106, 79, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(163, 217, 201, 0.3);
}

.inapp-arrow-top {
  width: 28px;
  height: 28px;
  color: #F3C68F;
}

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

/* 중앙 안내 본문 카드 */
.inapp-content-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.inapp-emblem-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #2D6A4F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inapp-emblem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inapp-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.inapp-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #D1D5DB;
  margin-bottom: 20px;
  word-break: keep-all;
}

.inapp-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inapp-btn-primary {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(135deg, #2D6A4F, #3E6553);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
  transition: transform 0.15s ease;
}

.inapp-btn-primary:active {
  transform: scale(0.98);
}

.inapp-btn-secondary {
  width: 100%;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
}

.inapp-close-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: underline;
  cursor: pointer;
}

/* 하단 지시 힌트 (iOS 사파리 우측/중앙 하단 공유 및 더보기) */
.inapp-bottom-hint {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  animation: inappBounceBottom 1.5s infinite ease-in-out;
}

.inapp-bottom-hint span {
  font-size: 14px;
  font-weight: 700;
  color: #F3C68F;
  background: rgba(217, 119, 87, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(243, 198, 143, 0.3);
}

.inapp-arrow-bottom {
  width: 28px;
  height: 28px;
  color: #F3C68F;
}

@keyframes inappBounceBottom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
