/* Searchable tool directory on /tools/ */
.seo-landing-controls {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-landing-search-wrap {
  position: relative;
}

.seo-landing-search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--t3);
  pointer-events: none;
}

#seoLandingSearch {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--bdr);
  background: var(--bg2);
  color: var(--t1);
  font: inherit;
  font-size: 0.92rem;
}

#seoLandingSearch:focus {
  outline: none;
  border-color: rgba(250, 106, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(250, 106, 42, 0.12);
}

.seo-landing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.seo-filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--t2);
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.seo-filter-chip:hover,
.seo-filter-chip.active {
  border-color: rgba(250, 106, 42, 0.45);
  background: rgba(250, 106, 42, 0.1);
  color: var(--t1);
}

.seo-view-toggle {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.seo-view-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--t2);
  font-size: 0.76rem;
  cursor: pointer;
}

.seo-view-btn.active {
  border-color: rgba(250, 106, 42, 0.45);
  background: rgba(250, 106, 42, 0.1);
  color: var(--t1);
}

#seoLandingGrid {
  max-width: 1100px;
  margin: 0 auto;
}

#seoLandingGrid.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
  border: none;
  background: transparent;
  border-radius: 0;
}

#seoLandingGrid.view-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg2);
}

#seoLandingGrid.view-grid .seo-landing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bdr);
  border-radius: 12px;
  background: var(--bg2);
}

#seoLandingGrid.view-grid .seo-landing-card:hover {
  border-color: rgba(250, 106, 42, 0.45);
}

#seoLandingGrid.view-grid .seo-card-arrow {
  display: none;
}

#seoLandingGrid.view-list .seo-landing-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--bdr);
  transition: background 0.12s;
}

.seo-landing-card:last-child {
  border-bottom: none;
}

.seo-landing-card:hover {
  background: rgba(250, 106, 42, 0.06);
}

.seo-landing-card strong {
  color: var(--t1);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.seo-landing-card .seo-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 0.2rem;
}

.seo-landing-card .seo-card-slug {
  color: var(--t3);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.seo-landing-card .seo-card-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--t2);
}

.seo-landing-card .seo-card-arrow {
  color: var(--t3);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.12s, transform 0.12s;
}

.seo-landing-card:hover .seo-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .seo-landing-card {
    grid-template-columns: 1fr;
  }
  .seo-landing-card .seo-card-arrow {
    display: none;
  }
}
