@charset "utf-8";

/* search page (search/index.html) — builds on tokens and header/footer in style.css */
.search-page { padding-top: var(--header-h); }

/* search bar */
.result-search { padding: 110px 0 72px; background: linear-gradient(180deg, var(--paper) 0%, #fff 100%); text-align: center; }
.result-search-inner { width: min(var(--inner), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.result-search-tit { font-size: 52px; font-weight: 800; line-height: 1.25; letter-spacing: -.045em; }
.result-search-tit em { color: var(--brand); }
.result-search-form { display: flex; align-items: center; gap: 8px; width: min(820px, 100%); margin: 40px auto 0; padding: 7px; border: 2px solid transparent; border-radius: 999px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand) 100%) border-box; box-shadow: 0 20px 50px rgba(26, 134, 218, .18), 0 0 0 8px rgba(26, 134, 218, .05); transition: box-shadow .3s var(--ease); }
.result-search-form:focus-within { box-shadow: 0 24px 60px rgba(26, 134, 218, .26), 0 0 0 8px rgba(26, 134, 218, .12); }
.result-search-field { position: relative; flex: 1; min-width: 0; }
.result-search-field input { width: 100%; height: 60px; padding: 0 52px 0 28px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.result-search-field input::placeholder { color: #8a929c; font-weight: 400; }
.result-search-field input:focus { outline: 0; }
.result-search-field input::-webkit-search-cancel-button { display: none; }
.btn-search-clear { position: absolute; right: 14px; top: 50%; display: none; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #e6e9ed; }
.btn-search-clear.is-show { display: block; }
.btn-search-clear::before, .btn-search-clear::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--mute); transform: rotate(45deg); }
.btn-search-clear::after { transform: rotate(-45deg); }
.btn-search-clear:hover { background: var(--line-2); }
.btn-search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 60px; padding: 0 32px; border-radius: 999px; background: linear-gradient(100deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 10px 24px rgba(26, 134, 218, .32); transition: background .25s var(--ease); }
.btn-search-submit:hover { background: var(--brand-deep); }
.btn-search-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* results */
.result-wrap { padding: 72px 0 160px; }
.result-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.result-count { font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: -.03em; }
.result-count em { color: var(--brand); }
.result-guide { margin-top: 12px; font-size: 16px; color: var(--mute); letter-spacing: -.02em; }

/* AI box */
.result-ai { position: relative; padding: 28px 32px 26px; border: 1px solid #d6e7f6; border-radius: var(--radius); background: linear-gradient(135deg, #f4f9fe 0%, #eef7fb 100%); overflow: hidden; }
.result-ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.result-ai-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%) center / cover; position: relative; }
.result-ai-ico::after { content: ""; position: absolute; inset: 6px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1Q12 12 23 12Q12 12 12 23Q12 12 1 12Q12 12 12 1Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1Q12 12 23 12Q12 12 12 23Q12 12 1 12Q12 12 12 1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.result-ai-txt { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); letter-spacing: -.02em; }
.result-ai-txt p + p,
.result-ai-txt .result-ai-list { margin-top: 0.75em; }
.result-ai-txt strong { font-weight: 700; color: var(--ink); }
.result-ai-list { margin: 0; padding-left: 1.15em; }
.result-ai-list li + li { margin-top: 0.25em; }
.result-ai-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-ai-refs a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid #d6e7f6; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: border-color .25s var(--ease), color .25s var(--ease); }
.result-ai-refs a:hover { border-color: var(--brand); color: var(--brand); }
.result-ai-note { margin-top: 16px; font-size: 13px; color: var(--mute); }

/* AI thinking state */
.result-thinking::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .6) 50%, transparent 80%); transform: translateX(-100%); animation: srThinkShine 1.8s ease-in-out infinite; pointer-events: none; }
.result-thinking-tit { display: inline-flex; align-items: baseline; gap: 2px; }
.result-thinking-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.result-thinking-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); animation: srThinkDot 1.2s infinite ease-in-out; }
.result-thinking-dots i:nth-child(2) { animation-delay: .15s; }
.result-thinking-dots i:nth-child(3) { animation-delay: .3s; }
.result-thinking-steps { display: flex; flex-direction: column; gap: 8px; }
.result-thinking-steps li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: #9a9fa6; opacity: .5; transition: color .3s, opacity .3s; }
.result-thinking-steps li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border: 2px solid #d5d8dc; border-radius: 50%; box-sizing: border-box; }
.result-thinking-steps li.is-active { color: var(--ink); opacity: 1; }
.result-thinking-steps li.is-active::before { border-color: var(--brand); border-right-color: transparent; animation: srThinkSpin .8s linear infinite; }
.result-thinking-steps li.is-done { color: var(--mute); opacity: 1; }
.result-thinking-steps li.is-done::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.result-ai-txt.is-typing { white-space: pre-line; }
.result-typing-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--brand); vertical-align: text-bottom; animation: srCaretBlink .8s steps(1) infinite; }
.is-pending { opacity: 0; transform: translateY(12px); pointer-events: none; }
.is-revealed { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@keyframes srThinkShine { to { transform: translateX(100%); } }
@keyframes srThinkDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes srThinkSpin { to { transform: rotate(360deg); } }
@keyframes srCaretBlink { 50% { opacity: 0; } }

/* category tabs */
.result-tabs { position: sticky; top: var(--header-h); z-index: 20; margin-top: 64px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.result-tabs ul { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.result-tabs ul::-webkit-scrollbar { display: none; }
.result-tabs a { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.result-tabs a:hover { border-color: var(--ink); }
.result-tabs .active a { border-color: var(--ink); background: var(--ink); color: #fff; }
.result-tab-count { font-weight: 500; opacity: .7; }

/* sections & items */
.result-section { padding-top: 64px; scroll-margin-top: calc(var(--header-h) + 74px); }
.result-section-tit { padding-bottom: 18px; border-bottom: 2px solid var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.result-section-tit span { color: var(--brand); }
.result-list > li + li { border-top: 1px solid var(--line); }
.result-item { display: flex; gap: 24px; padding: 28px 8px; }
.result-item-body { display: block; min-width: 0; }
.result-item-tit { display: block; font-size: 20px; font-weight: 700; line-height: 1.45; letter-spacing: -.03em; transition: color .25s var(--ease); }
.result-item-tit em { color: var(--brand); }
.result-item:hover .result-item-tit { color: var(--brand); }
.result-item-award { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #fff3d6; color: #a86b0b; font-size: 12px; font-weight: 700; vertical-align: 3px; }
.result-item-desc { display: -webkit-box; margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--mute); letter-spacing: -.02em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.result-item-desc em { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, rgba(109, 205, 229, .38) 0); }
.result-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 14px; }
.result-item-sim { padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.result-item-path { color: var(--mute); }
.result-item-path span + span::before { content: "›"; margin: 0 7px; color: var(--line-2); }
.result-item-extra { display: none; }

/* portfolio grid */
.result-list--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; padding-top: 32px; }
.result-list--grid > li + li { border-top: 0; }
.result-item--thumb { flex-direction: column; gap: 18px; padding: 0; }
.result-item-img { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.result-item-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.result-item--thumb:hover .result-item-img img { transform: scale(1.04); }
.result-item--thumb .result-item-tit { font-size: 18px; }
.result-item--thumb .result-item-desc { font-size: 14px; -webkit-line-clamp: 1; }
.result-item--thumb .result-item-meta { margin-top: 10px; font-size: 13px; }

/* 블로그·채용 등 게시판: 대표 이미지 한 장, 옆에는 페이지 결과와 같은 제목·요약 */
.result-item--side { align-items: flex-start; }
.result-item--side .result-item-img { flex: none; width: 220px; }
.result-item--side .result-item-img img { object-position: center; }
.result-item--side .result-item-body { flex: 1; }
.result-item--side:hover .result-item-img img { transform: scale(1.04); }

.result-more { margin-top: 32px; text-align: center; }
.btn-result-more { display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 34px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 16px; font-weight: 600; transition: border-color .25s var(--ease), background .25s var(--ease); }
.btn-result-more::after { content: ""; width: 8px; height: 8px; margin: -4px 0 0 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.btn-result-more:hover { border-color: var(--ink); }
.btn-result-more span { color: var(--brand); }

/* empty / popular */
.result-empty { margin-top: 56px; padding: 64px 40px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.result-empty-tit { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.result-empty-tips { margin-top: 16px; font-size: 16px; line-height: 1.8; color: var(--mute); }
.result-empty .btn { margin-top: 36px; }
.result-popular { margin-top: 32px; text-align: center; }
.result-popular p { font-size: 15px; font-weight: 600; color: var(--mute); }
.result-popular ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.result-popular a { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; transition: border-color .25s var(--ease), color .25s var(--ease); }
.result-popular a:hover { border-color: var(--brand); color: var(--brand); }
.result-noscript { text-align: center; color: var(--mute); }

@media (max-width: 1280px) {
  .result-head { grid-template-columns: 1fr; gap: 32px; }
  .result-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .result-search { padding: 56px 0 40px; }
  .result-search-tit { font-size: 28px; }
  .result-search-form { margin-top: 24px; padding: 5px; gap: 6px; }
  .result-search-field input { height: 50px; padding: 0 44px 0 18px; font-size: 15px; }
  .btn-search-clear { right: 10px; width: 24px; height: 24px; margin-top: -12px; }
  .btn-search-submit { width: 50px; height: 50px; padding: 0; }
  .btn-search-submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .result-wrap { padding: 40px 0 100px; }
  .result-count { font-size: 22px; }
  .result-guide { font-size: 14px; }
  .result-ai { padding: 22px 20px; }
  .result-ai-txt { font-size: 15px; }
  .result-tabs { margin-top: 40px; }
  .result-tabs ul { padding: 10px 0; }
  .result-tabs a { height: 38px; padding: 0 14px; font-size: 14px; }
  .result-section { padding-top: 44px; scroll-margin-top: calc(var(--header-h) + 60px); }
  .result-section-tit { padding-bottom: 14px; font-size: 20px; }
  .result-item { padding: 22px 0; }
  .result-item-tit { font-size: 17px; }
  .result-item-desc { font-size: 14px; }
  .result-item-meta { font-size: 12px; }
  .result-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; padding-top: 24px; }
  .result-item--thumb { gap: 12px; padding: 0; }
  .result-item--thumb .result-item-tit { font-size: 15px; }
  .result-item--side { gap: 14px; }
  .result-item--side .result-item-img { width: 112px; }
  .result-empty { padding: 44px 20px; }
  .result-empty-tit { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .result-thinking::after, .result-thinking-dots i, .result-thinking-steps li.is-active::before, .result-progress-steps li.is-active .result-progress-dot, .result-typing-caret { animation: none; }
  .is-pending { opacity: 1; transform: none; }
}

.result-progress-steps { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.result-progress-steps li { display: flex; align-items: center; gap: 10px; min-height: 34px; color: #9a9fa6; }
.result-progress-dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid #d5d8dc; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 700; line-height: 1; box-sizing: border-box; }
.result-progress-label { font-size: 15px; line-height: 1.4; }
.result-progress-steps li.is-active { color: var(--ink); font-weight: 700; }
.result-progress-steps li.is-active .result-progress-dot { border-color: var(--brand); border-right-color: transparent; color: var(--brand); animation: srThinkSpin .8s linear infinite; }
.result-progress-steps li.is-done { color: var(--ink-2); font-weight: 500; }
.result-progress-steps li.is-done .result-progress-dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.result-progress-track { height: 6px; margin-top: 14px; border-radius: 999px; background: #e3eef6; overflow: hidden; }
.result-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transition: width .5s ease; }
.result-progress-detail { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.result-head { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
.result-head-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: stretch; }
.result-progress-card { display: flex; flex-direction: column; height: 100%; padding: 28px 32px 26px; border: 1px solid #d6e7f6; border-radius: var(--radius); background: #fff; box-sizing: border-box; }
.result-head-panels > .result-ai { height: 100%; box-sizing: border-box; }
.result-progress-card .result-ai-head { margin-bottom: 16px; }
.result-progress-card .result-progress-steps { flex: 1; }
.result-progress-card .result-progress-steps li:not(.is-active):not(.is-done) { display: none; }
.result-progress-card .result-progress-detail { margin-top: auto; padding-top: 12px; }
@media (max-width: 1280px) {
  .result-head-panels { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .result-progress-card { padding: 22px 20px; }
}
