/* =========================================================================
 * hub.css — the tool-directory landing page.
 *
 * The hub was already server-rendered HTML with a hand-written <style> block
 * (app.ts:156), so this is that stylesheet moved to a file rather than a
 * translation. It deliberately does NOT use the Tailwind subset: the page has its
 * own semantic classes and there is no reason to churn them.
 *
 * Only the body background lives in searchcheck.css (as .bg-scanner-b) — the hub
 * shares the darker gradient with the favicon and pagespeed pages.
 * ========================================================================= */

.hub a { text-decoration: none; color: inherit; }

.hub-header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.logo-text span { color: #009844; }
.logo-tagline { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 2px; font-weight: 400; }

.hub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.hub .badge {
  display: inline-block;
  background: rgba(0, 152, 68, .18);
  border: 1px solid rgba(0, 152, 68, .4);
  color: #4cd87a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hub-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 700px;
  margin: 0 0 16px;
}
.hub-title span { color: #009844; }

.hub .subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, .65);
  text-align: center;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ------------------------------------------------------------------ cards -- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
}

@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
}

@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1280px; }
}

.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, background .2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 152, 68, .45);
  background: rgba(255, 255, 255, .08);
}

.card-icon { font-size: 40px; margin-bottom: 20px; line-height: 1; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.3px; }

.card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #4cd87a;
  background: rgba(0, 152, 68, .15);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 28px;
}

/* ------------------------------------------------- mobile grid/list toggle --
 * Hidden above 768px, where the grid is already comfortable. The chosen mode is
 * remembered in localStorage.
 */

.view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  padding: 5px;
}

@media (min-width: 768px) { .view-toggle { display: none; } }

.toggle-opt {
  padding: 7px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .18s, color .18s;
  letter-spacing: .02em;
}

.toggle-opt.active { background: rgba(0, 152, 68, .25); color: #4cd87a; }

.cards.list-mode { display: flex; flex-direction: column; gap: 10px; }
.cards.list-mode .card {
  flex-direction: row;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  gap: 14px;
}
.cards.list-mode .card:hover { transform: none; }
.cards.list-mode .card-icon { font-size: 26px; margin-bottom: 0; flex-shrink: 0; line-height: 1; }
.cards.list-mode .card-label { display: none; }
.cards.list-mode .card-title { font-size: 15px; font-weight: 700; margin-bottom: 0; flex: 1; }
.cards.list-mode .card-desc { display: none; }
.cards.list-mode .btn { padding: 9px 16px; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
.cards.list-mode .btn-arrow { font-size: 14px; }

/* ----------------------------------------------------------------- button -- */

.hub .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #009844;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  transition: background .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}

.hub .btn:hover { background: #007a37; box-shadow: 0 4px 20px rgba(0, 152, 68, .35); }
.btn-arrow { font-size: 16px; }

/* --------------------------------------------------------------- features -- */

.features { margin-top: 64px; display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.feature { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.feature-dot { width: 6px; height: 6px; background: #009844; border-radius: 50%; flex-shrink: 0; }

/* ----------------------------------------------------------------- footer -- */

.hub-footer {
  padding: 28px 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-footer p { font-size: 13px; color: rgba(255, 255, 255, .4); margin: 0; }
.hub-footer a { color: rgba(255, 255, 255, .55); transition: color .15s; }
.hub-footer a:hover { color: #009844; }
