/* ============================================================
   INSTA AD — Instagram Reels 스타일 광고 영상 쇼케이스
   ============================================================ */
#insta-ad {
  position: relative;
  padding: clamp(5rem, 12vh, 10rem) 0;
  background: var(--bg);
  overflow: hidden;
}

/* 배경 글로우 (IG 그라데이션) */
#insta-ad::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(225, 48, 108, 0.08) 0%,
    rgba(131, 58, 180, 0.05) 40%,
    transparent 70%);
  transform: translateY(-50%);
  filter: blur(60px);
  pointer-events: none;
}

.insta-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .insta-wrap { flex-direction: row; align-items: center; }
}

/* 왼쪽 텍스트 */
.insta-text { flex: 1; text-align: center; }
@media (min-width: 960px) {
  .insta-text { text-align: left; max-width: 440px; }
}

.insta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}
.insta-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
}

.insta-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.insta-desc {
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}

.insta-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FD1D1D 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
}
.insta-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.35);
}
.insta-cta svg { width: 16px; height: 16px; }

/* 오른쪽 아이폰 목업 */
.insta-phone-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* IG 그라데이션 외곽선 (스토리 링 스타일) */
.insta-phone {
  position: relative;
  padding: 3px;
  border-radius: 42px;
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 35%, #FD1D1D 70%, #FCB045 100%);
  box-shadow:
    0 30px 80px rgba(225, 48, 108, 0.15),
    0 50px 120px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}
.insta-phone:hover { transform: rotate(0deg) translateY(-6px); }

/* 실제 폰 프레임 (검은 베젤) */
.insta-phone-frame {
  width: clamp(260px, 22vw, 340px);
  aspect-ratio: 9 / 19;
  background: #0a0a0a;
  border-radius: 40px;
  padding: 14px;
  position: relative;
}

/* 노치 */
.insta-phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.insta-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.insta-phone-screen video,
.insta-phone-screen img.insta-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Instagram Reels UI 오버레이 === */

/* 상단 진행바 */
.insta-ui-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
  z-index: 5;
}
.insta-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.insta-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.insta-progress-bar.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: insta-progress 8s linear infinite;
}
@keyframes insta-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.insta-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.72rem;
}
.insta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
  padding: 1.5px;
  position: relative;
}
.insta-avatar::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: #111 url('../maeum_white.png') center/60% no-repeat;
}
.insta-handle { font-weight: 500; letter-spacing: 0.01em; }
.insta-verified {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.insta-sponsored {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

/* 우측 액션 버튼 */
.insta-actions {
  position: absolute;
  right: 10px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 5;
}
.insta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
}
.insta-action svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
.insta-action.liked svg {
  fill: #ff2d55;
  color: #ff2d55;
  animation: insta-heart 2s ease-in-out infinite;
}
@keyframes insta-heart {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.2); }
  20%      { transform: scale(1); }
}

/* 하단 캡션 + 음악 */
.insta-ui-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: #fff;
  z-index: 5;
}
.insta-caption {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 0.5rem;
  max-width: 75%;
}
.insta-caption-handle {
  font-weight: 600;
  margin-right: 4px;
}
.insta-music {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  opacity: 0.9;
  overflow: hidden;
  white-space: nowrap;
}
.insta-music svg { width: 12px; height: 12px; flex-shrink: 0; }
.insta-music-marquee {
  display: inline-block;
  animation: insta-music-scroll 10s linear infinite;
}
@keyframes insta-music-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .insta-phone-frame { width: clamp(230px, 70vw, 280px); }
  .insta-actions { bottom: 80px; gap: 0.7rem; }
  .insta-action svg { width: 20px; height: 20px; }
}
