:root { 
    --primary: #0056cf; 
    --bg: #f8f9fa; 
    --link: #1a0dab; 
    --wpp: #25d366; 
    --estrela: #ffc107; 
    --border-light: #ddd;
}

body { font-family: 'Segoe UI', sans-serif; background: var(--bg); margin: 0; padding-top: 100px; color: #333; }

/* --- TOPO E BUSCA --- */
.topo { position: fixed; top: 0; width: 100%; background: var(--primary); padding: 15px 0; display: flex; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 1000; }
.header-content { width: 95%; max-width: 1100px; display: flex; align-items: center; gap: 20px; position: relative; }
.logo-img { width: 100px; height: auto; filter: brightness(0) invert(1); cursor: pointer; }

/* Container da busca para suportar o Autocomplete */
.search-wrapper { flex-grow: 1; position: relative; max-width: 650px; }
input#busca { 
    width: 100%; padding: 12px 20px; border-radius: 25px; 
    border: 1px solid #add8e6; outline: none; font-size: 16px; 
    background: white; box-sizing: border-box;
}

/* Lista de Sugestões Autocomplete (estilo Google) */
.autocomplete-items {
    position: absolute; border: 1px solid var(--border-light);
    border-top: none; z-index: 99; top: 100%; left: 15px; right: 15px;
    background-color: #fff; border-radius: 0 0 15px 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.autocomplete-items div { padding: 10px 20px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f1f1f1; }
.autocomplete-items div:hover { background-color: #e9e9e9; }
.autocomplete-items div:last-child { border-radius: 0 0 15px 15px; }

/* --- LAYOUT PRINCIPAL --- */
.container { display: flex; max-width: 1100px; margin: 0 auto; gap: 25px; padding: 0 15px; }

/* Sidebar */
.sidebar { 
    width: 260px; flex-shrink: 0; position: sticky; top: 100px; 
    height: fit-content; background: #fff; padding: 20px; 
    border-radius: 12px; border: 1px solid var(--border-light); 
    max-height: 80vh; overflow-y: auto; 
}
.sidebar h3 { font-size: 16px; margin-top: 0; color: #555; }
.btn-filtro { 
    display: flex; align-items: center; gap: 8px; width: 100%; 
    text-align: left; padding: 10px; margin: 4px 0; border: none; 
    background: none; border-radius: 6px; cursor: pointer; 
    color: #444; font-size: 14px; white-space: nowrap; transition: 0.2s;
}
.btn-filtro:hover { background: #f0f2f5; }
.btn-filtro.ativo { background: var(--primary); color: white; font-weight: bold; }

/* --- FEED E CARDS --- */
.feed { flex-grow: 1; }
.card { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 15px; margin-bottom: 15px; display: flex; gap: 15px; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card.premium { border: 2px solid #ffd700; background: #fffdf0; margin-top: 25px; }
.premium-tag { position: absolute; top: -12px; right: 10px; background: #ffd700; color: #000; font-size: 10px; font-weight: bold; padding: 2px 8px; border-radius: 4px; border: 1px solid #ffd700; }

.foto-container { width: 50px; height: 90px; border-radius: 6px; overflow: hidden; background: #eee; flex-shrink: 0; border: 1px solid #ddd; cursor: pointer; }
.foto-container img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info { flex-grow: 1; }
.titulo { color: var(--link); font-size: 18px; text-decoration: none; font-weight: bold; display: block; margin-bottom: 3px; }
.titulo:hover { text-decoration: underline; }
.descricao { font-size: 13px; color: #555; margin: 5px 0; line-height: 1.4; }

/* Estrelas e Avaliação */
.estrelas { display: flex; cursor: pointer; color: #ccc; font-size: 18px; gap: 2px; }
.estrelas span.marcada { color: var(--estrela); }
.classificacao-inline { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: #777; }

/* Contatos */
.contatos { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 10px; }
.whatsapp { display: flex; align-items: center; text-decoration: none; color: var(--wpp); font-weight: bold; font-size: 14px; gap: 6px; }
.wpp-icon { width: 18px; height: 18px; }

/* --- OUTRAS PESSOAS PESQUISARAM (Estilo Google) --- */
.other-searches { margin: 30px 0; border-top: 1px solid #eee; padding-top: 20px; }
.other-searches h3 { font-size: 18px; color: #202124; margin-bottom: 15px; font-weight: 400; }
.searches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.term-box { 
    background: #fff; border: 1px solid #dfe1e5; padding: 12px 20px; 
    border-radius: 24px; display: flex; justify-content: space-between; 
    align-items: center; text-decoration: none; color: #3c4043; 
    font-size: 14px; transition: 0.2s;
}
.term-box:hover { background: #f8f9fa; border-color: #bdc1c6; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.term-box span { color: #70757a; font-size: 12px; }

/* --- RODAPÉ --- */
.divisor { border: 0; height: 1px; background: #ddd; margin: 30px 0 15px 0; }
.footer-links-container { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.insta-btn, .anuncie-btn-footer { text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 10px 25px; border-radius: 30px; font-size: 14px; font-weight: bold; transition: 0.3s; }
.insta-btn { color: #333; border: 1px solid #ddd; background: #fff; }
.insta-btn img { width: 20px; height: 20px; }
.anuncie-btn-footer { color: #000; background: #ffd700; border: 1px solid #ffd700; }
.anuncie-btn-footer:hover { background: #fff; }

.menu-footer { text-align: center; margin-bottom: 15px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.menu-footer a { text-decoration: none; color: #1a73e8; font-weight: bold; font-size: 13px; }
.footer-creditos { text-align: center; font-size: 11px; color: #777; padding-bottom: 40px; line-height: 1.8; }
.footer-creditos a { color: #777; text-decoration: none; font-weight: bold; }
.footer-creditos a:hover { text-decoration: underline; }

/* --- OVERLAY IMAGEM --- */
.overlay { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; cursor: pointer; }
.overlay img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.close-overlay { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 800px) {
    body { padding-top: 80px; }
    .topo { padding: 10px 0; }
    .header-content { gap: 10px; }
    .logo-img { width: 80px; }
    input#busca { padding: 10px 15px; font-size: 14px; }
    
    .container { flex-direction: column; gap: 10px; }
    .sidebar { 
        width: 100%; position: relative; top: 0; display: flex; 
        flex-direction: row; overflow-x: auto; padding: 10px; 
        background: transparent; border: none; gap: 10px;
        scrollbar-width: none;
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar h3 { display: none; }
    .btn-filtro { 
        width: auto; background: #fff; border: 1px solid #ddd; 
        border-radius: 20px; padding: 8px 15px; 
    }
    
    .searches-grid { grid-template-columns: 1fr; }
    .card { flex-direction: row; align-items: flex-start; }
}