/* keywordmaster.click — 모바일 v3 스킨 (2026-11-06)
   search_mobile_v3.php 전용. 기능 마크업은 그대로 두고 상단 히어로·칩·카드만 추가한다. */

.v3m-hero {
  position: relative; margin: 0 0 2px; min-height: 148px; overflow: hidden;
  display: flex; align-items: flex-end; background: #0b1220;
}
.v3m-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3m-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,13,28,.25) 0%, rgba(8,13,28,.82) 72%, rgba(8,13,28,.94) 100%);
}
.v3m-hero-body { position: relative; z-index: 2; padding: 14px 14px 13px; }
.v3m-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(99,102,241,.9); color: #fff; font-size: 10.5px; font-weight: 800; margin-bottom: 7px;
}
.v3m-title { margin: 0; color: #fff; font-size: 20px; font-weight: 900; line-height: 1.34; letter-spacing: -.03em; }
.v3m-title b { color: #a5b4fc; font-weight: 900; }

/* 예시 칩 */
.v3m-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.v3m-chips::-webkit-scrollbar { display: none; }
.v3m-chip {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--app-border, #d7dde8); background: var(--app-surface, #fff);
  color: var(--app-text, #1e293b);
}
.v3m-chip:active { background: #eef2ff; border-color: #818cf8; color: #4338ca; }

/* 필터 시트 프리셋 */
.v3m-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.v3m-preset {
  padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--app-border, #d7dde8); background: var(--app-surface, #fff); color: var(--app-text, #1e293b);
}
.v3m-preset.ghost { border-style: dashed; opacity: .8; }
.v3m-preset:active { background: #eef2ff; border-color: #818cf8; color: #4338ca; }

/* 바로 시작 카드 */
.v3m-personas { padding: 16px 12px 4px; }
.v3m-sec-title { font-size: 14px; font-weight: 800; color: var(--app-text, #1e293b); margin: 0 0 9px; }
.v3m-persona-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.v3m-persona {
  display: flex; flex-direction: column; text-align: left; padding: 0 0 10px; overflow: hidden;
  border: 1px solid var(--app-border, #d7dde8); border-radius: 14px;
  background: var(--app-surface, #fff); color: var(--app-text, #1e293b);
}
.v3m-persona img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; margin-bottom: 8px; }
.v3m-persona-name { font-size: 13.5px; font-weight: 800; padding: 0 11px; }
.v3m-persona-desc { font-size: 11.5px; color: var(--app-text-muted, #64748b); padding: 2px 11px 0; }
.v3m-persona:active { border-color: #818cf8; }

/* 버전 전환 */
.v3m-verbar {
  margin: 16px 12px 22px; padding: 10px 12px; border-radius: 12px; text-align: center;
  border: 1px solid var(--app-border, #d7dde8); background: var(--app-surface, #fff);
  color: var(--app-text-muted, #64748b); font-size: 12px;
}
.v3m-verbar b { color: var(--app-text, #1e293b); }
.v3m-verbar a { color: #6366f1; font-weight: 700; text-decoration: none; }

/* 검색바를 조금 더 크게 */
#keywordInput { height: 52px !important; font-size: 17px !important; border-radius: 14px !important; }
.km-btn-primary { height: 52px !important; border-radius: 14px !important; font-size: 16px !important; }

/* ===== v3.1 (2026-11-07) 모바일 히어로: 영상처럼 넘어가는 배경 ===== */
.v3m-hero { min-height: 250px; background: #050816; isolation: isolate; }
.v3m-hero::after { z-index: 1; background: linear-gradient(180deg, rgba(5,8,22,.2) 0%, rgba(5,8,22,.55) 50%, rgba(5,8,22,.95) 100%); }
.v3m-slides { position: absolute; inset: 0; z-index: 0; }
.v3m-slides i { position: absolute; inset: -6%; background-size: cover; background-position: center; opacity: 0; animation: v3mSlide 24s infinite; }
.v3m-slides i:nth-child(2) { animation-delay: 6s; } .v3m-slides i:nth-child(3) { animation-delay: 12s; } .v3m-slides i:nth-child(4) { animation-delay: 18s; }
@keyframes v3mSlide { 0% { opacity: 0; transform: scale(1.02); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1.16) translate(-2%,-1%); } 100% { opacity: 0; } }
.v3m-aurora { position: absolute; inset: -30%; z-index: 1; opacity: .5; mix-blend-mode: screen; filter: blur(24px);
  background: radial-gradient(40% 35% at 20% 30%, rgba(99,102,241,.8), transparent 70%), radial-gradient(40% 35% at 85% 70%, rgba(34,211,238,.5), transparent 70%);
  animation: v3mAur 14s ease-in-out infinite alternate; }
@keyframes v3mAur { to { transform: rotate(10deg) scale(1.1); } }
.v3m-hero-body { z-index: 2; padding: 20px 16px 18px; }
.v3m-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.v3m-live { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.v3m-title { font-size: 26px; line-height: 1.25; }
.v3m-title b { background: linear-gradient(90deg,#a5b4fc,#67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v3m-sub { margin: 8px 0 0; font-size: 13px; color: rgba(226,232,240,.85); }
@media (prefers-reduced-motion: reduce) { .v3m-slides i, .v3m-aurora { animation: none; } .v3m-slides i:first-child { opacity: 1; } }

/* 목적 카드 → 질문 패널 */
.v3m-sec-title small { font-size: 11.5px; font-weight: 600; color: var(--app-text-muted, #64748b); margin-left: 4px; }
.v3m-persona.on { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.v3m-goal { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid #c7d2fe; background: var(--app-surface, #fff); box-shadow: 0 10px 30px rgba(79,70,229,.12); }
.v3m-goal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; color: var(--app-text, #1e293b); }
.v3m-goal-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #eef2ff; color: #4338ca; font-size: 18px; }
.v3m-gopts { display: flex; flex-wrap: wrap; gap: 6px; }
.v3m-gopt { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--app-border, #d7dde8); background: var(--app-surface, #fff); color: var(--app-text, #1e293b); font-size: 13px; font-weight: 700; }
.v3m-gopt.on { background: #6366f1; border-color: #6366f1; color: #fff; }
.v3m-goal-in { width: 100%; height: 46px; margin-top: 10px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--app-border, #d7dde8); font-size: 15px; background: var(--app-surface, #fff); color: var(--app-text, #1e293b); box-sizing: border-box; }
.v3m-goal-d { margin: 8px 2px 10px; font-size: 12px; color: #059669; font-weight: 600; }
.v3m-goal-go { width: 100%; height: 50px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#6366f1,#2563eb); color: #fff; font-size: 16px; font-weight: 800; }
