/* 크리티컬 대표홈페이지 — search 화면 스타일 (원본 Vue 컴포넌트 scoped 스타일을 전역으로 옮김) */

/* ── views/search/modules/SearchHero.vue ── */
.shero {
  padding-top: var(--header-h);
}
.shero__inner {
  position: relative;
  padding: 110px var(--gutter) 90px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(237, 28, 46, 0.06), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}
.shero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.05em;
}
.shero__title em {
  font-style: normal;
  color: var(--brand);
}
.shero__form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 820px;
  height: 78px;
  margin: 48px auto 0;
  padding: 0 7px 0 34px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 18px 50px rgba(237, 28, 46, 0.12);
}
.shero__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 60px;
}
.shero__input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.shero__input::placeholder {
  color: #9a9da3;
  font-weight: 400;
}
.shero__input::-webkit-search-cancel-button {
  display: none;
}
/* 시각 28px, 터치 영역 44px */
.shero__clear {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
}
.shero__clear i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8e8ea;
  color: var(--ink-2);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.shero__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: 123px;
  height: 60px;
  border: 0;
  border-radius: var(--radius-pill);
  /* 브랜드 레드 단색에 가까운 은은한 그라데이션 */
  background: linear-gradient(135deg, #d81a2b 0%, var(--brand) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(237, 28, 46, 0.3);
  transition: filter 0.3s;
}
.shero__submit:hover {
  filter: brightness(1.08);
}

.shero__suggest {
  padding: 80px var(--gutter) 40px;
  text-align: center;
}
.shero__suggest-tit {
  font-size: 15px;
  color: var(--mute);
}
.shero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.shero__chip {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.shero__chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 768px) {
  .shero__inner {
    padding: 56px var(--gutter) 44px;
  }
  .shero__title {
    font-size: 27px;
  }
  .shero__form {
    height: 60px;
    margin-top: 28px;
    padding: 0 5px 0 20px;
    gap: 4px;
  }
  .shero__field {
    height: 48px;
  }
  .shero__input {
    font-size: 16px;
  }
  .shero__submit {
    width: auto;
    height: 48px;
    padding: 0 18px;
    font-size: 16px;
    gap: 6px;
  }
  .shero__suggest {
    padding: 48px var(--gutter) 24px;
  }
  .shero__chip {
    height: 44px;
    padding: 0 16px;
  }
}

/* ── views/search/modules/SearchSummary.vue ── */
.ssum__count {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.ssum__count em {
  font-style: normal;
  color: var(--brand);
}
.ssum__guide {
  margin-top: 12px;
  font-size: 16px;
  color: var(--mute);
}
.ssum__panels {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  margin-top: 40px;
}
.ssum__card {
  padding: 32px;
  border: 1px solid #f3d5d8;
  border-radius: var(--radius-eng);
  background: #fff;
}
.ssum__card-tit {
  font-size: 17px;
  font-weight: 800;
}
.ssum__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.ssum__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #a3a6ab;
  transition: color 0.3s;
}
.ssum__steps li.is-done,
.ssum__steps li.is-now {
  color: var(--ink-2);
}
.ssum__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #e2e3e5;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.is-done .ssum__dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.is-now .ssum__dot {
  border-color: var(--brand);
  color: var(--brand);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(237, 28, 46, 0.15);
  }
}
.ssum__track {
  height: 6px;
  margin-top: 24px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  overflow: hidden;
}
.ssum__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: left;
  transition: transform 0.32s linear;
}
.ssum__detail {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ssum__ai {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #fff 55%, #fff6f7 100%);
}
.ssum__ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ssum__ai-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
}
.ssum__ai-txt {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.ssum__ai-txt p + p {
  margin-top: 12px;
}
.ssum__ai-txt strong {
  color: var(--ink);
}
.ssum__skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.ssum__skeleton i {
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #f2f2f3 25%, #fbe9eb 50%, #f2f2f3 75%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.ssum__skeleton i:nth-child(2) {
  width: 86%;
}
.ssum__skeleton i:nth-child(3) {
  width: 64%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.ssum__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.ssum__refs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #f3d5d8;
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.ssum__refs a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.ssum__note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--mute);
}

@media (max-width: 1024px) {
  .ssum__panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .ssum__count {
    font-size: 22px;
  }
  .ssum__guide {
    margin-top: 8px;
    font-size: 14px;
  }
  .ssum__panels {
    gap: 14px;
    margin-top: 24px;
  }
  .ssum__card {
    padding: 22px 20px;
    border-radius: var(--radius-eng);
  }
  .ssum__steps {
    gap: 10px;
    margin-top: 16px;
  }
  .ssum__ai-txt {
    font-size: 15px;
    line-height: 1.75;
  }
  .ssum__refs a {
    min-height: 44px;
  }
}

/* ── views/search/modules/SearchList.vue ── */
.slist {
  margin-top: 56px;
}
.slist__tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}
.slist__tabs ul {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.slist__tab {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.slist__tab span {
  font-weight: 500;
  opacity: 0.8;
}
.slist__tab.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.slist__sec {
  margin-top: 48px;
}
.slist__sec-tit {
  padding-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}
.slist__sec-tit span {
  color: var(--brand);
}
.slist__list li + li {
  border-top: 1px solid var(--line);
}
.slist__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 8px;
  transition: background 0.2s;
}
.slist__item:hover {
  background: #fcf7f7;
}
.slist__item-tit {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
.slist__item-tit em {
  font-style: normal;
  color: var(--brand);
}
.slist__item-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mute);
}
.slist__item-desc em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 62%, #fddde1 62%);
}
.slist__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.slist__sim {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}
.slist__path {
  font-size: 14px;
  color: var(--mute);
}
.slist__empty {
  padding: 80px 0 20px;
  text-align: center;
  font-size: 16px;
  color: var(--mute);
}
.slist__empty-tit {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.slist__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.slist__chip {
  display: inline-grid;
  place-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink);
}
.slist__chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 768px) {
  .slist {
    margin-top: 36px;
  }
  .slist__tabs ul {
    padding: 10px 0;
  }
  .slist__tab {
    padding: 0 16px;
    font-size: 14px;
  }
  .slist__sec {
    margin-top: 32px;
  }
  .slist__sec-tit {
    padding-bottom: 12px;
    font-size: 20px;
  }
  .slist__item {
    gap: 10px;
    padding: 22px 0;
  }
  .slist__item-tit {
    font-size: 18px;
  }
  .slist__item-desc {
    font-size: 15px;
  }
  .slist__empty {
    padding: 56px 0 10px;
    font-size: 15px;
  }
}

/* ── views/search/index.vue ── */
.search-page {
  padding-bottom: 140px;
}
.search-page__result {
  margin-top: 40px;
}
@media (max-width: 768px) {
  .search-page {
    padding-bottom: 96px;
  }
  .search-page__result {
    margin-top: 20px;
  }
}
