/* JUMP — 앱/마커 다운로드 행 (히어로 바로 아래)
 * ---------------------------------------------------------------------------
 * 와그작 앱 · 와그작 마커(인쇄용 PDF) · 와그작 점프 세 갈래 진입점.
 *
 * 동작 규약 (js/pages/jump-app-row.js):
 *   - 정적 href = App Store. JS 가 안드로이드에서만 Play Store 로 바꾼다.
 *     → 스크립트가 죽어도 링크는 살아 있다.
 *   - 마커는 PDF 새 탭. OS 분기 없음.
 *
 * 배치: PC 3열 가로 / 768px 이하 세로 스택(아이콘 좌 · 글 우).
 * 색은 jump.css 의 --wj-* 토큰을 그대로 쓴다(이 페이지는 다크 코스믹 배경).
 */

.wj-app-row {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ── 섹션 머리 ────────────────────────────────────────────────────────── */

.wj-app-row__header {
  max-width: 840px;
  margin: 0 auto 28px;
  text-align: center;
}

.wj-app-row__title {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px;
  word-break: keep-all;
}

.wj-app-row__desc {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  word-break: keep-all;
}

.wj-app-row__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wj-gap, 24px);
  max-width: 840px;
  margin: 0 auto;
}

/* ── 카드 ─────────────────────────────────────────────────────────────── */

.wj-app-row__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--wj-border-glass, rgba(255, 255, 255, 0.1));
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wj-app-row__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: #fff;
  text-decoration: none;
}

.wj-app-row__item:active {
  transform: translateY(-1px);
}

.wj-app-row__item:focus-visible {
  outline: 2px solid var(--wj-accent-gold, #ffc700);
  outline-offset: 3px;
}

/* jump.css 의 전역 a::before 장식이 카드 안에서 튀어나오는 것을 막는다 */
.wj-app-row__item::before {
  display: none;
}

/* ── 아이콘 ───────────────────────────────────────────────────────────── */

.wj-app-row__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.wj-app-row__icon img,
.wj-app-row__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 마커 타일 — 앱 아이콘 두 개와 같은 무게로 보이도록 밝은 배경 */
.wj-app-row__icon--marker {
  background: linear-gradient(135deg, #fff6e0 0%, #ffe9f2 100%);
}

/* ── 글 ───────────────────────────────────────────────────────────────── */

.wj-app-row__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.wj-app-row__name {
  font-family: var(--font-display), sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  word-break: keep-all;
}

.wj-app-row__sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  word-break: keep-all;
}

/* ── 모바일: 세로 스택 · 아이콘 좌 / 글 우 ────────────────────────────── */

@media (max-width: 768px) {
  .wj-app-row {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .wj-app-row__header {
    margin-bottom: 20px;
    max-width: 420px;
  }

  .wj-app-row__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 420px;
  }

  .wj-app-row__item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
  }

  .wj-app-row__item:hover {
    transform: none;
  }

  .wj-app-row__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .wj-app-row__text {
    align-items: flex-start;
  }

  .wj-app-row__name,
  .wj-app-row__sub {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wj-app-row__item {
    transition: none;
  }

  .wj-app-row__item:hover,
  .wj-app-row__item:active {
    transform: none;
  }
}
