/* =========================
   Search page
========================= */

.searchBox{
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.searchBox input[type="search"]{
  width: min(720px, 100%);
  height: 44px;
  padding: 0 14px;

  /* ✅ token-driven search input */
  border: 1px solid var(--search-border);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: var(--search-bg);
  color: var(--search-text);
}

.searchBox input[type="search"]::placeholder{
  color: var(--muted);
}

.searchBox input[type="search"]:focus{
  border-color: var(--text);
}

/* Results layout */
.results{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Each result as a card */
.searchCard{
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--bg);

  overflow: hidden; /* voelt “netter” als card */
}

/* Title should pop (like your home cards) */
.searchTitle{
  display: inline-block;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;

  font-size: 18px; /* ✅ duidelijker */
}

@media (min-width: 900px){
  .searchTitle{
    font-size: 20px; /* desktop iets groter */
  }
}

.searchTitle:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Meta row (pill + dot + readtime) */
.searchMeta{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;

  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Category link in meta should look like pill everywhere */
.searchMeta .pill{
  /* pill styling komt uit global.css */
}

/* Links in meta (als je category klikbaar is) */
.searchMeta a{
  color: inherit;
  text-decoration: none;
}

.searchMeta a:hover{
  color: var(--text);
}

/* Description */
.searchDesc{
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.5;
  opacity: 0.85;

  overflow: visible;
  word-break: normal;
  white-space: normal;
}