/* Site search results page */

.search-hero {
  padding: 100px 5% 28px;
  background: var(--bg, #fafbfd);
  text-align: center;
}

.search-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.search-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--navy, #0f1f5c);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.search-box-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--border, #e2e7f0);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(15, 31, 92, 0.08);
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--blue, #1a6fbf);
  box-shadow: 0 8px 28px rgba(26, 111, 191, 0.15);
}

.search-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted, #5b6680);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text, #1c2340);
  background: transparent;
}

.search-box input::placeholder {
  color: #a3adc2;
}

.search-clear-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--border, #e2e7f0);
  color: var(--muted, #5b6680);
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.search-clear-btn:hover {
  background: var(--blue, #1a6fbf);
  color: #fff;
}

.search-hint {
  font-size: 12px;
  color: var(--muted, #5b6680);
  margin-top: 12px;
}

.search-hint b {
  color: var(--navy, #0f1f5c);
  font-weight: 700;
}

.search-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5% 70px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ftab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #5b6680);
  padding: 9px 17px;
  border-radius: 50px;
  border: 1.5px solid var(--border, #e2e7f0);
  background: #fff;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
}

.ftab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ftab:hover {
  border-color: var(--blue, #1a6fbf);
  color: var(--blue, #1a6fbf);
}

.ftab.active {
  background: linear-gradient(135deg, #1a2e6b 0%, #1a6fbf 50%, #00b8c8 100%);
  border-color: transparent;
  color: #fff;
}

.ftab .cnt {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 600;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.results-count {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy, #0f1f5c);
}

.results-count span {
  color: var(--blue, #1a6fbf);
}

.results-count em {
  font-style: normal;
  color: var(--muted, #5b6680);
  font-weight: 600;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border, #e2e7f0);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(15, 31, 92, 0.06);
  transition: all 0.2s;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 31, 92, 0.12);
  border-color: var(--blue, #1a6fbf);
}

.result-thumb,
.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.result-body {
  flex: 1;
  min-width: 0;
}

.result-type-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.result-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy, #0f1f5c);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color 0.18s;
}

.result-card:hover .result-title {
  color: var(--blue, #1a6fbf);
}

.result-excerpt {
  font-size: 12.5px;
  color: var(--muted, #5b6680);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted, #5b6680);
  font-weight: 600;
}

.result-arrow {
  font-size: 16px;
  color: var(--muted, #5b6680);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.result-card:hover .result-arrow {
  transform: translateX(4px);
  color: var(--blue, #1a6fbf);
}

mark {
  background: rgba(245, 158, 11, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.type-blog .result-icon,
.type-blog .result-type-badge {
  background: rgba(26, 111, 191, 0.1);
  color: #1a6fbf;
}

.type-tool .result-icon,
.type-tool .result-type-badge {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
}

.type-game .result-icon,
.type-game .result-type-badge {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.type-calculator .result-icon,
.type-calculator .result-type-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.type-history .result-icon,
.type-history .result-type-badge {
  background: rgba(200, 150, 62, 0.14);
  color: #c8963e;
}

.type-quote .result-icon,
.type-quote .result-type-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.type-fact .result-icon,
.type-fact .result-type-badge {
  background: rgba(0, 184, 200, 0.1);
  color: #00b8c8;
}

.type-poll .result-icon,
.type-poll .result-type-badge {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
}

.type-countdown .result-icon,
.type-countdown .result-type-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.type-trivia .result-icon,
.type-trivia .result-type-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.type-nameday .result-icon,
.type-nameday .result-type-badge {
  background: rgba(26, 111, 191, 0.1);
  color: #1a6fbf;
}

.state-block {
  text-align: center;
  padding: 80px 20px;
}

.state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg, #fafbfd);
  border: 1.5px solid var(--border, #e2e7f0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.state-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted, #5b6680);
  fill: none;
  stroke-width: 1.6;
}

.state-block h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy, #0f1f5c);
  margin-bottom: 8px;
}

.state-block p {
  font-size: 13.5px;
  color: var(--muted, #5b6680);
  max-width: 360px;
  margin: 0 auto;
}

.popular-searches {
  margin-top: 22px;
}

.popular-searches-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #5b6680);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-align: center;
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pchip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy, #0f1f5c);
  background: #fff;
  border: 1.5px solid var(--border, #e2e7f0);
  padding: 7px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.pchip:hover {
  border-color: var(--blue, #1a6fbf);
  color: var(--blue, #1a6fbf);
  background: rgba(26, 111, 191, 0.04);
}

@media (max-width: 700px) {
  .result-card {
    padding: 14px;
  }

  .result-thumb,
  .result-icon {
    width: 42px;
    height: 42px;
  }

  .result-excerpt {
    display: none;
  }
}
