/* 11/08 대표: 디자인 추가 1~8의 보이는 모양(scripts/ui-fx.js와 짝). 색·유리는 glass2.css 토큰을 씀. */

/* 1 스크롤 등장: 위로 16px · 0.6초 · 한 번만 */
.fx-rv { transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1) !important; }
.fx-rv:not(.fx-in) { opacity: 0; transform: translateY(16px); }

/* 2 썸네일 미리 재생 */
[data-preview] { position: relative; }
[data-preview] video.fx-pv { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; animation: fx-fade .3s ease both; }
.fx-pv-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx-pv-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--c-text, #1D1D1F); font-size: 12.5px; font-weight: 700; }
.fx-pv-tag i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: fx-blink 1.2s ease-in-out infinite; }
.fx-pv-bar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.fx-pv-bar i { display: block; width: 0; height: 100%; background: #FAFAFA; transition: width .25s linear; }
.fx-pv-snd { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--c-text, #1D1D1F); cursor: pointer; pointer-events: auto; }
.fx-pv-snd svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .fx-pv-snd { width: 44px; height: 44px; } }
.pf-card:has(.is-pv) .pf-mini, .pf-card:has(.is-pv) .pf-new { visibility: hidden; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-blink { 50% { opacity: .35; } }

/* 3 불러오는 동안 자리 표시: 옅은 판 위로 빛이 천천히 */
.pf-grid.is-busy:has(.pf-skel) { opacity: 1; }
.pf-skel { list-style: none; pointer-events: none; }
.pf-skel__th, .pf-skel__l { display: block; border-radius: 16px; background: linear-gradient(100deg, #e9f0f0 30%, #f7fafa 50%, #e9f0f0 70%) 0 0 / 300% 100%; animation: fx-shim 1.6s ease-in-out infinite; }
.pf-skel__th { aspect-ratio: 9 / 13; }
.pf-skel__l { height: 13px; margin-top: 12px; width: 78%; border-radius: 7px; } .pf-skel__l.is-s { width: 46%; margin-top: 8px; }
.cs-skel { padding: 14px; border-radius: 24px; background: var(--glass-sheen), var(--glass-bg); box-shadow: var(--glass-edge), var(--glass-shadow); }
.cs-skel .pf-skel__th { aspect-ratio: 16 / 10; }
.m-skel { background: linear-gradient(100deg, #e9f0f0 30%, #f7fafa 50%, #e9f0f0 70%) 0 0 / 300% 100% !important; animation: fx-shim 1.6s ease-in-out infinite !important; border-radius: 16px !important; }
@keyframes fx-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 4 빈 화면: 선 그림 하나 + 다음 할 일 단추 하나 */
.m-empty__ic.is-line { width: 84px; height: 84px; border-radius: 50%; font-size: 0; background: var(--c-soft, #E8F4F3) !important; box-shadow: none !important; color: var(--c-point, #208888); animation: none !important; }
.m-empty__ic.is-line svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-empty:has(.is-line) p { font-size: 16px; color: var(--c-text-2, #6E6E73); }

/* 5 누름 손맛 */
.m-btn:active, .iq-btn:active, .dd-bt:active { transform: translateY(1px); }
.fav.is-pop svg, .fav.is-pop { animation: fx-pop .32s cubic-bezier(.3, 1.6, .5, 1); }
input[type="checkbox"].fx-tick { animation: fx-pop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fx-pop { 40% { transform: scale(1.25); } }

/* 6 짧은 알림: 화면 아래 가운데 유리 알약, 겹치면 위로 쌓임 */
.fx-toasts { position: fixed; z-index: 120; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
body.rq-page .fx-toasts { bottom: calc(104px + env(safe-area-inset-bottom)); }
.fx-toast { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--c-text, #1D1D1F); pointer-events: auto;
  background: var(--glass-sheen), var(--glass-float-bg); -webkit-backdrop-filter: var(--glass-float-blur); backdrop-filter: var(--glass-float-blur); box-shadow: var(--glass-edge), var(--glass-float);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .22s, transform .28s cubic-bezier(.16, 1, .3, 1); }
.fx-toast.is-on { opacity: 1; transform: none; }
.fx-toast__ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-point, #208888); color: #fff; font-weight: 800; font-size: 14px; }
.fx-toast__ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx-toast.is-err .fx-toast__ic { background: #c2410c; }
.fx-toast__act { margin-left: 6px; border: 0; background: none; color: var(--c-point, #208888); font: inherit; font-weight: 700; cursor: pointer; min-height: 36px; }

/* 7 의뢰 올리기 성공 */
.rq-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px 30px !important; border: 0 !important; border-radius: 24px !important;
  background: var(--glass-sheen), var(--glass-bg) !important; box-shadow: var(--glass-edge), var(--glass-shadow) !important; }
.rq-done__ring { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--c-soft, #E8F4F3); color: var(--c-point, #208888); }
.rq-done__ring svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: fx-draw .55s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.rq-done #done-title { font-size: 26px; letter-spacing: -.02em; }
.rq-done__lead { margin: 0; max-width: 30em; color: var(--c-text-2, #6E6E73); font-size: 16px; line-height: 1.55; }
.rq-done #done-sum { margin: 6px 0 0; font-size: 14px; color: var(--c-text-2, #6E6E73); }
#done .m-acts { justify-content: center; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fx-rv, .fx-rv:not(.fx-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pf-skel__th, .pf-skel__l, .m-skel, .fx-pv-tag i { animation: none !important; }
  .rq-done__ring svg { animation: none; stroke-dashoffset: 0; }
  .fav.is-pop svg, .fav.is-pop, input[type="checkbox"].fx-tick { animation: none; }
  .fx-toast { transition: none; }
}

/* 11/09 대표: 수정 횟수 옆 작은 설명(의뢰서·제안서·빠른 제안) */
.rq-revnote { position: relative; display: block; padding-left: 22px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--c-text-2, #6E6E73); }
.rq-revnote i { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: var(--c-soft, #E8F4F3); color: var(--c-point, #208888); }
.rq-revnote b { color: var(--c-text, #1D1D1F); font-weight: 700; }
.d-rvpop__sub { margin: 4px 0 10px; font-size: 13.5px; color: #3d463f; }

/* 11/09 대표: 의뢰서 업종 아래 '예시 영상 3개' */
.rq-like { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--c-inner, #F5F8F8); animation: fx-fade .3s ease both; }
.rq-like__h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 14px; }
.rq-like__more { font-size: 13px; font-weight: 600; color: var(--c-point, #208888); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.rq-like__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rq-like__list li { animation: fx-up .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes fx-up { from { opacity: 0; transform: translateY(10px); } }
.rq-like__it { display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.rq-like__it:focus-visible { outline: 2px solid var(--c-point, #208888); outline-offset: 3px; }
.rq-like__th { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #e6eeee; }
.rq-like__th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.rq-like__it:hover .rq-like__th img { transform: scale(1.05); }
.rq-like__play { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(255, 255, 255, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%231B3A3D'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: opacity .2s; }
.rq-like__th .fx-pv ~ .rq-like__play, .rq-like__th.is-pv .rq-like__play { opacity: 0; }
.rq-like__tx { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.rq-like__tx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-like__tx span { font-size: 12px; color: var(--c-text-2, #6E6E73); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .rq-like, .rq-like__list li { animation: none; } }
/* 11/09 가상 고객 시험: 휴대폰·아이패드 미리보기의 [크게 보기](소리 단추 아래, 같은 모양) — 마우스 화면은 기존 밀기 단추 */
.fx-pv-big { display: none; }
@media (hover: none) {
  .fx-pv-big { position: absolute; right: 10px; top: 60px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--c-text, #1D1D1F); cursor: pointer; pointer-events: auto; }
  .fx-pv-big svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}
