/* ================================================================
   home.css — Estilos exclusivos da página inicial (index.php)
   ================================================================ */

/* ── Layout geral da home ───────────────────────────────────────── */
.page-home body,
body.page-home { background: #fff; }

.home-main { display: flex; flex-direction: column; }

/* ── Hero ───────────────────────────────────────────────────────── */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h) - 180px);
    padding: 60px 20px 40px;
    text-align: center;
}

/* Logo central */
.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.home-logo-icon { width: 56px; height: 56px; }
.home-logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--text);
}

/* Tagline */
.home-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ── Caixa de busca ─────────────────────────────────────────────── */
.home-search-form { width: 100%; max-width: 580px; }

.home-search-wrap {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 40px;
    padding: 6px 8px 6px 18px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: box-shadow .2s, border-color .2s;
}
.home-search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(249,115,22,.15);
}

.home-search-icon { width: 20px; height: 20px; flex-shrink: 0; }

.home-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    min-width: 0;
    appearance: none;
}
.home-search-input::placeholder { color: var(--text-light); }
.home-search-input::-webkit-search-cancel-button { display: none; }

.home-search-loc {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition), background var(--transition);
}
.home-search-loc svg { width: 18px; height: 18px; }
.home-search-loc:hover { color: var(--accent); background: var(--accent-dim); }

.home-search-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 22px;
    height: 38px;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}
.home-search-btn:hover { background: var(--accent-hover); }

/* ── Sugestões ──────────────────────────────────────────────────── */
.home-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}
.home-suggestions-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.home-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.home-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ── Destaques ──────────────────────────────────────────────────── */
.home-highlights {
    padding: 40px 20px 60px;
    background: var(--bg);
}
.home-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}
.home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
/* Skeletons */
.hl-skeleton {
    height: 200px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
}
/* Empty state */
.hl-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}
.hl-empty svg { width: 48px; height: 48px; opacity: .4; }
.hl-empty a { color: var(--accent); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────── */
.home-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    font-size: .8rem;
    color: var(--text-muted);
}
.home-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.home-footer a { color: var(--text-muted); font-weight: 600; }
.home-footer a:hover { color: var(--accent); }
.home-footer nav { display: flex; gap: 16px; }

@media (max-width: 480px) {
    .home-logo-text { font-size: 1.6rem; }
    .home-hero { min-height: auto; padding: 40px 16px 32px; }
    .home-search-btn { padding: 0 14px; font-size: .82rem; }
    .home-footer .container { flex-direction: column; text-align: center; }
}
