/**
 * Profil hover kartı — feed, forum, gruplar (ortak)
 */
.profile-hover-card,
.profile-hover-card * {
  box-sizing: border-box;
}

.profile-hover-card {
  position: fixed;
  z-index: 10100;
  width: 240px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(37, 99, 235, 0.06);
  padding: 1rem 1rem 0.85rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: opacity, transform;
  left: 0;
  top: 0;
  font-family: 'DM Sans', sans-serif;
}

html.dark .profile-hover-card {
  background: rgba(19, 24, 40, 0.94);
  border-color: rgba(30, 45, 74, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.profile-hover-card.phc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.phc-skel-inner {
  min-height: 140px;
}

.phc-skel-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--gray-100, #f1f5f9) 25%, var(--gray-50, #f8fafc) 50%, var(--gray-100, #f1f5f9) 75%);
  background-size: 200% 100%;
  animation: phc-shimmer 1.2s ease-in-out infinite;
}

html.dark .phc-skel-av {
  background: linear-gradient(90deg, #1a2236 25%, #131828 50%, #1a2236 75%);
  background-size: 200% 100%;
}

.phc-skel-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-100, #f1f5f9) 25%, var(--gray-50, #f8fafc) 50%, var(--gray-100, #f1f5f9) 75%);
  background-size: 200% 100%;
  animation: phc-shimmer 1.2s ease-in-out infinite;
}

html.dark .phc-skel-line {
  background: linear-gradient(90deg, #1a2236 25%, #0f1525 50%, #1a2236 75%);
  background-size: 200% 100%;
}

.phc-skel-line--lg {
  width: 68%;
  height: 12px;
}

.phc-skel-line--sm {
  width: 48%;
}

.phc-skel-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-100, #f1f5f9);
  padding-top: 10px;
  margin-top: 4px;
}

html.dark .phc-skel-stats {
  border-color: #1e2d4a;
}

.phc-skel-stats > div {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  margin: 0 3px;
  background: linear-gradient(90deg, var(--gray-100, #f1f5f9) 25%, var(--gray-50, #f8fafc) 50%, var(--gray-100, #f1f5f9) 75%);
  background-size: 200% 100%;
  animation: phc-shimmer 1.2s ease-in-out infinite;
}

html.dark .phc-skel-stats > div {
  background: linear-gradient(90deg, #1a2236 25%, #0f1525 50%, #1a2236 75%);
  background-size: 200% 100%;
}

.phc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.phc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.phc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.phc-name-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.phc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .phc-name {
  color: #f1f5ff;
}

.phc-role {
  font-size: 0.73rem;
  color: var(--gray-500, #64748b);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phc-badge {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 4px;
  vertical-align: middle;
}

.phc-badge-admin {
  background: linear-gradient(90deg, #ef4444, #4f46e5);
  color: white;
}

.phc-badge-pro {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: white;
}

.phc-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-100, #f1f5f9);
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
  padding: 0.55rem 0;
  margin-bottom: 0.7rem;
}

html.dark .phc-stats {
  border-color: #1e2d4a;
}

.phc-stat {
  flex: 1;
  text-align: center;
}

.phc-stat:not(:last-child) {
  border-right: 1px solid var(--gray-100, #f1f5f9);
}

html.dark .phc-stat:not(:last-child) {
  border-color: #1e2d4a;
}

.phc-stat-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900, #0f172a);
}

html.dark .phc-stat-val {
  color: #f1f5ff;
}

.phc-stat-lbl {
  font-size: 0.67rem;
  color: var(--gray-400, #94a3b8);
  margin-top: 1px;
}

.phc-cta {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.phc-btn-follow {
  flex: 1;
  background: var(--blue-600, #2563eb);
  color: white;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 9px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s;
}

.phc-btn-follow:hover {
  background: var(--blue-700, #1d4ed8);
}

.phc-btn-follow.phc-following {
  background: transparent !important;
  border: 1.5px solid var(--blue-400, #60a5fa);
  color: var(--blue-600, #2563eb);
}

.phc-btn-follow.phc-following:hover {
  background: var(--blue-50, #eff6ff) !important;
}

html.dark .phc-btn-follow.phc-following {
  border-color: #3864a8;
  color: var(--blue-400, #60a5fa);
}

.phc-btn-profile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-600, #2563eb);
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.phc-btn-profile:hover {
  background: var(--blue-700, #1d4ed8);
  color: #fff;
}

.phc-btn-profile-self,
.phc-btn-profile-disabled {
  flex: 1;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--gray-100, #f1f5f9);
  color: var(--muted, #64748b);
  line-height: 1.2;
}

html.dark .phc-btn-profile-self,
html.dark .phc-btn-profile-disabled {
  background: #1a2236;
  color: #8899bb;
}

.phc-btn-msg {
  background: transparent;
  border: 1px solid var(--gray-200, #e2e8f0);
  color: var(--gray-600, #475569);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.15s;
  flex-shrink: 0;
}

html.dark .phc-btn-msg {
  border-color: #1e2d4a;
  color: #8899bb;
}

.phc-btn-msg:hover {
  border-color: var(--blue-300, #93c5fd);
  color: var(--blue-600, #2563eb);
  background: var(--blue-50, #eff6ff);
}

html.dark .phc-btn-msg:hover {
  background: #0d1829;
}

.phc-profile-link {
  cursor: pointer;
  transition: opacity 0.15s;
}

.phc-profile-link:hover {
  opacity: 0.88;
}

.phc-name.phc-profile-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-hover-card .bb-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 2px;
  color: #1d9bf0;
  line-height: 0;
  flex-shrink: 0;
}

.profile-hover-card .bb-verified-badge svg {
  width: 1.2em;
  height: 1.2em;
  min-width: 18px;
  min-height: 18px;
}

.profile-hover-card .phc-name .bb-verified-badge {
  transform: translateY(-1px);
}

/* Gruplar — slot tetikleyici */
.party-slot-avatar.bb-phc-trigger,
.party-slot-name.bb-phc-trigger {
  cursor: pointer;
}

.party-slot-avatar.bb-phc-trigger:hover {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.party-slot-name.bb-phc-trigger:hover {
  color: var(--blue-600, #2563eb);
}

.band-party-founder a.bb-phc-trigger {
  cursor: pointer;
}

.band-party-founder a.bb-phc-trigger:hover {
  color: var(--blue-600, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
}
