/* ─── AeroTrack Help Centre — Search Page Styles ─── */
/* Used only by index.html (the home / search page)     */

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 48px 0 32px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.hero .tagline {
  font-size: 1rem;
  color: var(--muted-fg);
}

/* ─── Search Box ─── */
.search-box {
  position: relative;
  max-width: 560px;
  margin: 24px auto 0;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 0.9375rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-fg);
  pointer-events: none;
  font-size: 1rem;
}
.search-box .shortcut-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  color: var(--muted-fg);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

/* ─── Module Grid ─── */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.module-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.module-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.module-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.module-card .badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.module-card ul {
  list-style: none;
  padding: 0;
}
.module-card li {
  font-size: 0.8125rem;
  padding: 3px 0;
}
.module-card li a {
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.module-card li a::before {
  content: "\2192";
  color: var(--primary);
  font-size: 0.75rem;
}
.module-card li a:hover { color: var(--primary); }

/* ─── Search Results ─── */
.search-results {
  display: none;
  margin-bottom: 40px;
}
.search-results.active { display: block; }
.search-results h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--muted-fg);
}
.result-list { list-style: none; padding: 0; }
.result-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.result-item:hover { border-color: var(--primary); }
.result-item a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}
.result-item a:hover { color: var(--primary); text-decoration: none; }
.result-item .result-module {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 2px;
}
.no-results {
  text-align: center;
  padding: 32px;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

/* ─── Footer ─── */
.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
