/* Home — layout compacto e moderno */
.home {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.home-hero {
    padding: 20px 0 8px;
}

.home-hero h1 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.home-hero__lead {
    font-size: 14px;
    color: #5c6370;
    margin: 0 0 12px;
    max-width: 520px;
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1a0dab;
    background: #eef2ff;
    border: 1px solid #d8e0ff;
    border-radius: 999px;
    padding: 5px 12px;
}

.home-stat-pill i {
    font-size: 11px;
    opacity: 0.85;
}

a.home-stat-pill {
    text-decoration: none;
}

a.home-stat-pill:hover {
    background: #dde4ff;
    border-color: #b8c4ff;
}

.home-section {
    margin-top: 24px;
}

.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section__head h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: -0.01em;
}

.home-section__head p {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0 0;
}

.home-section__link {
    font-size: 12px;
    font-weight: 600;
    color: #1a0dab;
    text-decoration: none;
    white-space: nowrap;
}

.home-section__link:hover {
    text-decoration: underline;
}

/* Estados — chips compactos */
.home-uf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.home-uf-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 10px 6px;
    min-height: 56px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-uf-chip:hover {
    border-color: #1a0dab;
    box-shadow: 0 2px 8px rgba(26, 13, 171, 0.1);
    transform: translateY(-1px);
}

.home-uf-chip__sigla {
    font-size: 15px;
    font-weight: 800;
    color: #1a0dab;
    line-height: 1;
}

.home-uf-chip__nome {
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Guias — scroll horizontal compacto */
.home-guias-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-guias-scroll::-webkit-scrollbar {
    height: 4px;
}

.home-guias-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.home-guia-card {
    flex: 0 0 min(260px, 78vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s;
}

.home-guia-card:hover {
    border-color: #c7d2fe;
}

.home-guia-card h3 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.35;
}

.home-guia-card h3 a {
    color: #1a0dab;
    text-decoration: none;
}

.home-guia-card h3 a:hover {
    text-decoration: underline;
}

.home-guia-card__meta {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.home-guia-card__meta i {
    width: 12px;
    color: #9ca3af;
}

/* Empresas recentes — lista densa */
.home-recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    overflow: hidden;
}

.home-recent-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.12s;
}

.home-recent-item:last-child {
    border-bottom: none;
}

.home-recent-item:hover {
    background: #f8f9ff;
}

.home-recent-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-recent-item__meta {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    text-align: right;
}

.home-recent-item__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #1a0dab;
    background: #eef2ff;
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-ads {
    margin: 16px 0;
}

/* Dark mode */
body.dark-mode .home-hero h1 {
    color: #f3f4f6;
}

body.dark-mode .home-hero__lead,
body.dark-mode .home-section__head p,
body.dark-mode .home-guia-card__meta,
body.dark-mode .home-recent-item__meta,
body.dark-mode .home-uf-chip__nome {
    color: #9ca3af;
}

body.dark-mode .home-stat-pill {
    background: #1e2a4a;
    border-color: #2d3a5c;
    color: #93b4ff;
}

body.dark-mode .home-uf-chip,
body.dark-mode .home-guia-card,
body.dark-mode .home-recent-list {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .home-uf-chip:hover,
body.dark-mode .home-guia-card:hover {
    border-color: #4da3ff;
}

body.dark-mode .home-recent-item {
    border-color: #2a2a2a;
}

body.dark-mode .home-recent-item:hover {
    background: #252525;
}

body.dark-mode .home-recent-item__name,
body.dark-mode .home-section__head h2 {
    color: #f3f4f6;
}

body.dark-mode .home-recent-item__cat {
    background: #1e2a4a;
    color: #93b4ff;
}

@media (max-width: 768px) {
    .home {
        padding: 12px 12px 24px;
    }

    .home-uf-grid {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
        gap: 6px;
    }

    .home-uf-chip {
        min-height: 48px;
        padding: 8px 4px;
    }

    .home-recent-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .home-recent-item__meta {
        text-align: left;
    }
}
