/* MatchHub — Profil public CSS */

.mh-profile-public { max-width: 800px; margin: 0 auto; }

/* Cover */
.mh-profile-cover {
  height: 220px;
  background: var(--mh-gradient);
  border-radius: var(--mh-radius) var(--mh-radius) 0 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.mh-profile-cover--default {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Header */
.mh-profile-header {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-top: none;
  border-radius: 0 0 var(--mh-radius) var(--mh-radius);
  padding: 0 24px 24px;
  position: relative;
}

.mh-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -60px;
  margin-bottom: 16px;
}
.mh-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--mh-bg-card);
  object-fit: cover;
  display: block;
}
.mh-profile-avatar-wrap .mh-badge--dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.mh-profile-identity { }

.mh-profile-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--mh-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mh-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--mh-text-muted);
}
.mh-meta-item { display: flex; align-items: center; gap: 4px; }

.mh-profile-geek-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* Barre de compatibilité */
.mh-compat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  max-width: 300px;
}
.mh-compat-bar__fill {
  height: 6px;
  border-radius: 3px;
  background: var(--mh-gradient);
  min-width: 4px;
  transition: width .5s;
}
.mh-compat-label { font-size: 13px; color: var(--mh-text-muted); white-space: nowrap; }

/* Actions */
.mh-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mh-border);
}

/* Match banner */
.mh-match-banner {
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: #34d399;
  border-radius: var(--mh-radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 14px;
  animation: mh-fade-in .3s ease;
}

/* Sections */
.mh-profile-section {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  padding: 24px;
  margin-top: 16px;
}

/* Bio */
.mh-profile-bio {
  color: var(--mh-text-muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
  white-space: pre-wrap;
}

/* Réseaux sociaux */
.mh-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mh-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--mh-text);
}
.mh-social-svg { width: 18px; height: 18px; }
.mh-social-link--discord  { border-color: rgba(88,101,242,.3); }
.mh-social-link--twitch   { border-color: rgba(145,70,255,.3); }
.mh-social-link--youtube  { border-color: rgba(255,0,0,.2); }
.mh-social-link--instagram{ border-color: rgba(225,48,108,.3); }

/* Intérêts communs */
.mh-interest-chips--common .mh-chip {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}

/* Galerie publique */
.mh-gallery-grid--public .mh-gallery-item {
  cursor: pointer;
}
.mh-gallery-grid--public a { display: block; }

/* CTA */
.mh-profile-cta { margin-top: 16px; }

/* Mobile */
@media (max-width: 600px) {
  .mh-profile-cover { height: 140px; }
  .mh-profile-avatar { width: 90px; height: 90px; }
  .mh-profile-avatar-wrap { margin-top: -45px; }
  .mh-profile-header { padding: 0 16px 20px; }
  .mh-profile-name { font-size: 20px; }
  .mh-profile-actions { gap: 8px; }
  .mh-profile-actions .mh-btn { flex: 1; font-size: 13px; padding: 8px 12px; }
  .mh-social-links { flex-direction: column; }
  .mh-match-banner { font-size: 13px; }
}
