/* ═══════════════════════════════════════════════════
   Segmentações Grid — CSS
   Baseado no estilo da imagem: cards com ícone
   circular laranja gradiente + nome + contagem
═══════════════════════════════════════════════════ */

:root {
    --sg-primary: #FF6B2B;
    --sg-primary-dark: #E85A1B;
    --sg-primary-light: #FF8C55;
    --sg-bg: #ffffff;
    --sg-card-bg: #ffffff;
    --sg-text: #1a1a2e;
    --sg-text-muted: #6b7280;
    --sg-border: #f0f0f0;
    --sg-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --sg-shadow-hover: 0 8px 30px rgba(255,107,43,0.18);
    --sg-radius: 16px;
    --sg-icon-size: 86px;
}

/* ── GRID DE CARDS ─────────────────────────────── */
.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* ── CARD ──────────────────────────────────────── */
.sg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 20px 28px;
    background: var(--sg-card-bg);
    border: 1.5px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    text-decoration: none;
    color: var(--sg-text);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.sg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sg-shadow-hover);
    border-color: var(--sg-primary-light);
    text-decoration: none;
    color: var(--sg-text);
}

/* ── ÍCONE CIRCULAR ────────────────────────────── */
.sg-icon-wrap {
    width: var(--sg-icon-size);
    height: var(--sg-icon-size);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sg-primary-light) 0%, var(--sg-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255,107,43,0.35);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.sg-card:hover .sg-icon-wrap {
    box-shadow: 0 6px 20px rgba(255,107,43,0.5);
    transform: scale(1.05);
}

.sg-icon-wrap i {
    font-size: 30px;
    color: #ffffff;
}

/* ── NOME ──────────────────────────────────────── */
.sg-nome {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: var(--sg-text);
}

/* ── CONTAGEM ──────────────────────────────────── */
.sg-count {
    font-size: 12px;
    color: var(--sg-text-muted);
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   PÁGINA DE RESULTADOS
═══════════════════════════════════════════════════ */

.sg-resultados-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.sg-resultados-header {
    margin-bottom: 36px;
}

.sg-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sg-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 28px;
    transition: gap 0.18s ease;
}

.sg-back-btn:hover {
    gap: 12px;
    text-decoration: none;
    color: var(--sg-primary-dark);
}

.sg-resultados-titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.sg-icon-grande {
    --sg-icon-size: 90px;
}

.sg-icon-grande i {
    font-size: 34px;
}

.sg-resultados-titulo h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--sg-text);
}

.sg-resultados-titulo p {
    font-size: 14px;
    color: var(--sg-text-muted);
    margin: 0;
}

/* ── GRID DE PERFIS ────────────────────────────── */
.sg-perfis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.sg-perfil-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--sg-card-bg);
    border: 1.5px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    text-decoration: none;
    color: var(--sg-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sg-perfil-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sg-shadow-hover);
    border-color: var(--sg-primary-light);
    text-decoration: none;
    color: var(--sg-text);
}

.sg-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sg-border);
}

.sg-perfil-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.sg-perfil-nome {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-perfil-desc {
    font-size: 12px;
    color: var(--sg-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-perfil-ver {
    font-size: 12px;
    color: var(--sg-primary);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sg-vazio {
    text-align: center;
    color: var(--sg-text-muted);
    padding: 40px;
    font-size: 16px;
}

/* ── RESPONSIVO ────────────────────────────────── */
@media (max-width: 600px) {
    .sg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .sg-perfis-grid {
        grid-template-columns: 1fr;
    }
    .sg-resultados-titulo h1 {
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .sg-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   BOTÃO GUIA COMERCIAL
═══════════════════════════════════════════════════ */

.gc-btn-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

.gc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 28px;
    background: linear-gradient(110deg, #FF6B2B 0%, #FF8C55 60%, #E85A1B 100%);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(255, 107, 43, 0.40);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* brilho decorativo no canto */
.gc-btn::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 80px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}

.gc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 107, 43, 0.55);
    filter: brightness(1.06);
    text-decoration: none;
}

/* ── LADO ESQUERDO: ícone + textos ─────────────── */
.gc-btn-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.gc-btn-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}

.gc-btn-icon i {
    font-size: 24px;
    color: #ffffff;
}

.gc-btn-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gc-btn-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gc-btn-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── LADO DIREITO: seta ────────────────────────── */
.gc-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.20);
    border: 1.5px solid rgba(255,255,255,0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gc-btn:hover .gc-btn-arrow {
    background: rgba(255,255,255,0.32);
    transform: translateX(3px);
}

.gc-btn-arrow i {
    font-size: 16px;
    color: #ffffff;
}

/* ── RESPONSIVO ────────────────────────────────── */
@media (max-width: 600px) {
    .gc-btn {
        padding: 18px 20px;
        border-radius: 14px;
    }
    .gc-btn-title {
        font-size: 17px;
    }
    .gc-btn-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}

