/* ==========================================================================
   Protium Tools — homepage (dark gateway theme). Inherits protium-ui.css
   ========================================================================== */
.home { flex: 1; }
.home-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

/* hero */
.home-hero { padding: 48px 0 28px; }
.home-hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: 36px;
  letter-spacing: -0.02em; color: var(--text);
}
.home-hero p { margin-top: 8px; color: var(--text-muted); font-size: 15.5px; max-width: 60ch; }

.home-search { position: relative; margin-top: 22px; max-width: 560px; }
.home-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); }
.home-search input { padding-left: 40px; height: 44px; }

/* category */
.home-cat { margin-top: 36px; }
.home-cat-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.home-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* card */
.home-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; text-decoration: none; color: inherit;
  transition: border-color var(--t), background var(--t), transform var(--t);
  position: relative; min-height: 132px;
}
.home-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.home-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.home-card h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.home-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.home-card .arrow { color: var(--text-faint); transition: color var(--t), transform var(--t); }
.home-card:hover .arrow { color: var(--accent); transform: translateX(2px); }
.home-card .arrow svg { width: 18px; height: 18px; }

/* featured (Code Genie) */
.home-card.feature {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--border-strong);
}
.home-card.feature h3 { font-size: 19px; }
.home-card.feature .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.home-empty { color: var(--text-faint); font-size: 14px; padding: 24px 0; display: none; }
.home-empty.is-show { display: block; }

@media (max-width: 600px) { .home-hero h1 { font-size: 28px; } }
