/* ════════════════════════════════════════════════════════════
   home.css — Página inicial VemFácil v2
   ════════════════════════════════════════════════════════════ */

/* ── Corpo da home ── */
.home-body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,87,87,.08) 0%, transparent 70%),
        #fff;
}

/* Logo */
.hero-logo {
    margin-bottom: 36px;
}

.hero-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Headline */
.hero-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.03em;
    line-height: 1.15;
    max-width: 640px;
    margin-bottom: 16px;
}

.hero-headline em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 40px;
}

/* ── Busca ── */
.hero-search {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,.09);
    transition: border-color .2s, box-shadow .2s;
}

.hero-search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 32px rgba(255,87,87,.15);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    min-width: 0;
}

.hero-search-input::placeholder { color: #adb5bd; }

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    height: 44px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}

.hero-search-btn:hover { background: var(--accent-hover); }

.hero-search-btn svg {
    width: 16px;
    height: 16px;
}

/* Tags populares */
.hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.hero-tags-label {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, color .15s, background .15s;
}

.hero-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* Filtro de cidade */
.hero-city-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.hero-city-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-main, #111827);
    cursor: pointer;
    min-width: 220px;
    transition: border-color .15s;
}

.hero-city-select:focus {
    outline: none;
    border-color: var(--accent, #f97316);
}

/* Tagline abaixo do hero */
.home-tagline {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted, #6b7280);
    padding: 0 16px 32px;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-tagline a {
    color: var(--accent, #f97316);
    text-decoration: none;
    font-weight: 500;
}

.home-tagline a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════════
   SEÇÃO DESTAQUES
   ════════════════════════════════════════════ */
.home-section {
    padding: 56px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.home-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.home-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}

.home-section-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.home-section-link:hover { text-decoration: underline; }

/* Grid de cards */
.vitrines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Card vitrine */
.vitrine-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.vitrine-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.vitrine-card-capa {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg);
}

.vitrine-card-capa-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vitrine-card-capa-placeholder svg {
    width: 36px;
    height: 36px;
    stroke: #cbd5e1;
}

.vitrine-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vitrine-card-nome {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vitrine-card-seg {
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Skeleton loader */
.vitrine-skeleton {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.vitrine-skeleton-capa {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, #f0f2f5 25%, #e8eaed 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.vitrine-skeleton-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vitrine-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e8eaed 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.vitrine-skeleton-line--short { width: 55%; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.home-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.home-empty svg {
    width: 48px;
    height: 48px;
    stroke: #cbd5e1;
    margin: 0 auto 16px;
}

.home-empty p { font-size: .95rem; }
.home-empty a { color: var(--accent); font-weight: 600; }

/* ── Footer ── */
.home-footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: var(--text-muted);
}

.home-footer-inner a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.home-footer-inner a:hover { color: var(--accent); }

.home-footer-links {
    display: flex;
    gap: 20px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .hero { padding: 60px 20px 48px; }
    .hero-logo img { height: 34px; }
    .hero-search-btn span { display: none; }
    .hero-search-btn { padding: 0 14px; }
    .home-section { padding: 36px 0; }
    .home-footer-inner { flex-direction: column; text-align: center; }
}
