/* ── FAB Social ──────────────────────────────────────────── */

.social-fab {
  display: none; /* mostrado via JS após login */
  pointer-events: all;
  background: var(--bg-card);
  border: 1.5px solid var(--gold-border);
  color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: var(--z-fab);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.social-fab:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 24px var(--gold-glow);
}

/* ── Overlay ──────────────────────────────────────────────── */

.social-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.social-panel-overlay.open {
  display: block;
}

/* ── Painel lateral ──────────────────────────────────────── */

.social-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 92vw);
  background: var(--bg-section);
  border-right: 1px solid var(--gold-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.social-panel.open {
  transform: translateX(0);
}

.social-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

.social-panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}

.social-panel-close:hover {
  color: var(--text-primary);
}

/* ── Busca ────────────────────────────────────────────────── */

.social-search-wrap {
  display: flex;
  gap: 8px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}

.social-search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.social-search-input:focus {
  border-color: var(--gold-primary);
}

.social-search-input::placeholder {
  color: var(--text-muted);
}

.social-search-submit {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: opacity var(--transition-fast);
}

.social-search-submit:hover { opacity: 0.88; }

.social-search-result {
  padding: 0 16px 8px;
  flex-shrink: 0;
  min-height: 0;
}

/* ── Seção da lista ───────────────────────────────────────── */

.social-section-label {
  padding: 8px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.social-following-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 16px;
}

.social-following-list::-webkit-scrollbar { width: 4px; }
.social-following-list::-webkit-scrollbar-track { background: transparent; }
.social-following-list::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.25);
  border-radius: 2px;
}

/* ── Mensagens ────────────────────────────────────────────── */

.social-msg {
  display: block;
  padding: 12px 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.social-msg-warn { color: rgba(245, 158, 11, 0.8); }

/* ── Card de amigo ────────────────────────────────────────── */

.social-friend-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: 4px;
}

.social-friend-card:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.15);
}

.social-friend-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1e1a08 0%, #0d0d18 100%);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.social-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-friend-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-friend-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-friend-stats {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.social-friend-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Botões de ação do card ───────────────────────────────── */

.social-btn {
  border: none;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.social-btn:hover { opacity: 0.82; }
.social-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.social-btn-visit {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.social-btn-follow {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: var(--bg-primary);
}

.social-btn-unfollow {
  background: rgba(138, 135, 153, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(138, 135, 153, 0.25);
}

/* ── Banner de visita a amigo ────────────────────────────── */

.friend-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.friend-banner-text {
  font-size: 13px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-back-btn {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.friend-back-btn:hover {
  background: rgba(201, 168, 76, 0.2);
}

/* ── Filtros de comparação (visíveis só ao visitar amigo) ── */

.friend-filter-pill {
  display: none;
}
