/* ═══════════════════════════════════════════════
   TEKLOFTS — SEARCH RESULTS PAGE (search.css)
   Prefix: tksearch-
   ═══════════════════════════════════════════════ */

.tksearch-main {
  padding-top: calc(66px + 28px);
  min-height: 80vh;
}

/* ── Hero ── */
.tksearch-hero {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(13,148,136,.09) 0%, transparent 55%),
    var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  padding: 3.5rem 0 2.5rem;
}
.tksearch-hero__inner { position: relative; z-index: 2; }

.tksearch-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1.1;
  margin: .6rem 0 .5rem; color: var(--clr-text);
}
.tksearch-hero__query {
  color: var(--clr-teal);
}
.tksearch-hero__count {
  font-size: .875rem; color: var(--clr-text-3);
  font-family: var(--font-mono); letter-spacing: .05em;
  margin-bottom: 1.5rem;
}

/* Search form */
.tksearch-form-wrap { max-width: 620px; }
.tksearch-form__inner {
  display: flex; align-items: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--r-lg);
  padding: .35rem .35rem .35rem 1rem;
  gap: .75rem;
  transition: border-color .2s, box-shadow .2s;
}
.tksearch-form__inner:focus-within {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.tksearch-form__icon {
  color: var(--clr-text-3); flex-shrink: 0;
}
.tksearch-form__input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--clr-text); font-family: var(--font-body);
  font-size: .95rem; padding: .4rem 0;
}
.tksearch-form__input::placeholder { color: var(--clr-text-3); }
.tksearch-form__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.35rem;
  background: var(--grad-brand); color: #fff;
  border: none; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(249,115,22,.3);
  transition: box-shadow .2s, transform .2s var(--ease-out);
}
.tksearch-form__btn:hover {
  box-shadow: 0 5px 20px rgba(249,115,22,.45);
  transform: translateY(-1px);
}

/* ── Body ── */
.tksearch-body { padding-block: 3rem 6rem; }

.tksearch-section { margin-bottom: 3.5rem; }

.tksearch-section__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.tksearch-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--clr-text);
  display: flex; align-items: center; gap: .65rem;
}
.tksearch-section__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 .5rem;
  background: rgba(13,148,136,.12); color: var(--clr-teal);
  border-radius: 9999px; font-size: .72rem; font-weight: 700;
  font-family: var(--font-mono);
}
.tksearch-section__more {
  font-size: .82rem; color: var(--clr-teal); font-weight: 500;
  transition: opacity .2s; white-space: nowrap;
}
.tksearch-section__more:hover { opacity: .75; }

/* Pages results list */
.tksearch-pages {
  display: flex; flex-direction: column; gap: .5rem;
}
.tksearch-page-item {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--clr-bg-2); border: 1px solid var(--clr-border);
  border-radius: var(--r-md); padding: 1.1rem 1.35rem;
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s var(--ease-out);
}
.tksearch-page-item:hover {
  border-color: var(--clr-teal); transform: translateX(4px);
}
.tksearch-page-item__type {
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--clr-teal); background: rgba(13,148,136,.1);
  padding: .2rem .55rem; border-radius: 9999px;
  white-space: nowrap; flex-shrink: 0;
}
.tksearch-page-item__body { flex: 1; min-width: 0; }
.tksearch-page-item__title {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--clr-text); margin-bottom: .2rem;
}
.tksearch-page-item__excerpt {
  font-size: .82rem; color: var(--clr-text-2);
  line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tksearch-page-item > svg { color: var(--clr-text-3); flex-shrink: 0; }
.tksearch-page-item:hover > svg { color: var(--clr-teal); }

/* ── Empty state ── */
.tksearch-empty {
  text-align: center; padding: 5rem 2rem;
}
.tksearch-empty__icon { font-size: 4rem; margin-bottom: 1.25rem; opacity: .5; }
.tksearch-empty h2 {
  font-family: var(--font-display); font-size: 1.75rem;
  font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem;
}
.tksearch-empty p { font-size: .95rem; color: var(--clr-text-2); max-width: 420px; margin-inline: auto; line-height: 1.7; }
.tksearch-empty__actions {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tksearch-form__btn { padding: .6rem 1rem; }
  .tksearch-hero__title { font-size: 1.5rem; }
}
