/* Public site — home page (index.php). Shared styles: assets/css/site.css */

.home-hero { text-align: center; max-width: 760px; margin: clamp(24px, 8vh, 80px) auto 36px; }
.home-hero .page-title { margin-inline: auto; max-width: 20ch; line-height: 1.2; }
.home-hero .page-subtitle { margin-inline: auto; }

.home-search { position: relative; margin-top: 26px; display: flex; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 40px rgba(23, 23, 23, 0.08); transition: box-shadow .2s, border-color .2s; }
.home-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 40px rgba(23, 23, 23, 0.08); }
.home-search i { align-self: center; margin-inline-start: 14px; color: var(--muted); }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 8px 4px; }
.home-search button { border: 0; border-radius: 999px; padding: 0 24px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
.home-search button:hover { background: var(--color-primary-hover); }

.home-popular { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); }
.home-popular a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; transition: all .15s; }
.home-popular a:hover { border-color: var(--accent); color: var(--accent); }

.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.home-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--color-primary) 30%, transparent); box-shadow: 0 16px 36px rgba(23, 23, 23, 0.08); }
.home-card i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; }
.home-card strong { font-size: 1rem; }
.home-card span { color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .home-cards { grid-template-columns: 1fr; }
    .home-search { border-radius: 18px; flex-wrap: wrap; }
    .home-search i { display: none; }
    .home-search input { padding: 10px 12px; }
    .home-search button { width: 100%; padding: 12px; }
}
