/* uk/assets/home.css — homepage-only styles (no duplication with global CSS) */

/* Intro hero overrides */
.home-hero.card {
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 16px;
}

.home-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-hero p {
  margin: 0;
  font-size: 15px;
  opacity: .9;
}

/* Search bar */
.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.home-search input[type="search"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
}

.home-search input[type="search"]::placeholder {
  color: #718096;
}

.home-search input[type="search"]:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.home-search button[type="submit"] {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #0b1220;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  transition: transform .02s ease-in-out;
}

.home-search button[type="submit"]:active {
  transform: translateY(1px);
}

/* Section title */
.section-title {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

/* Home cards grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.home-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  transition: transform .08s ease, box-shadow .08s ease;
  text-decoration: none;
}

.home-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.home-card h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  line-height: 1.3;
}

.home-card p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Ad slot */
.ad-slot {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
}

/* Footer callout */
.footer-cta {
  margin: 22px 0;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.footer-cta .muted a {
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .home-hero h1 {
    font-size: 24px;
  }
  .home-search {
    grid-template-columns: 1fr;
  }
  .home-search button[type="submit"] {
    width: 100%;
  }
}