/* MatchHub — Feed découverte CSS */

.mh-discover { max-width: 1100px; margin: 0 auto; }

/* Filtres */
.mh-discover-filters {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.mh-filters-toggle { display: flex; align-items: center; gap: 8px; }
.mh-filters-badge {
  min-width: 18px; height: 18px;
  background: var(--mh-accent);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.mh-filters-panel { padding-top: 16px; }
.mh-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mh-filter-field { display: flex; flex-direction: column; gap: 6px; }
.mh-filter-field label { font-size: 12px; font-weight: 600; color: var(--mh-text-muted); }
.mh-filter-field select,
.mh-filter-field input {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-sm);
  color: var(--mh-text);
  padding: 8px 12px;
  font-size: 13px;
}
.mh-filter-range { display: flex; align-items: center; gap: 6px; }
.mh-filter-range input { width: 70px; }
.mh-filter-range span { color: var(--mh-text-muted); }
.mh-filters-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* En-tête résultats */
.mh-discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mh-discover-count { font-size: 14px; color: var(--mh-text-muted); margin: 0; }
.mh-discover-sort select {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-sm);
  color: var(--mh-text);
  padding: 6px 12px;
  font-size: 13px;
}

/* Grid profils */
.mh-discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Card profil */
.mh-profile-card {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  overflow: hidden;
  transition: transform var(--mh-transition), box-shadow var(--mh-transition);
  position: relative;
}
.mh-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-color: rgba(124,58,237,.3);
}

.mh-profile-card__cover {
  height: 80px;
  background: var(--mh-gradient);
  background-size: cover;
  background-position: center;
}

.mh-profile-card__body {
  padding: 12px 14px 14px;
}

.mh-profile-card__avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -32px;
  margin-bottom: 8px;
}
.mh-profile-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mh-bg-card);
  display: block;
}
.mh-profile-card__avatar-wrap .mh-badge--dot {
  position: absolute;
  bottom: 3px; right: 3px;
}

.mh-profile-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--mh-text);
  display: block;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mh-profile-card__meta {
  font-size: 12px;
  color: var(--mh-text-muted);
  display: block;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-profile-card__compat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--mh-primary-light);
  font-weight: 600;
}
.mh-compat-mini {
  width: 100%;
  height: 3px;
  background: var(--mh-border);
  border-radius: 2px;
  overflow: hidden;
}
.mh-compat-mini__fill {
  height: 100%;
  background: var(--mh-gradient);
  border-radius: 2px;
}

.mh-profile-card__common-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.mh-profile-card__tag {
  background: rgba(124,58,237,.15);
  color: var(--mh-primary-light);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.mh-profile-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mh-profile-card__link {
  text-decoration: none;
  display: block;
}

/* Bouton like sur la card */
.mh-card-like-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(236,72,153,.1);
  border: 1px solid rgba(236,72,153,.25);
  color: #f9a8d4;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--mh-transition);
  flex-shrink: 0;
}
.mh-card-like-btn:hover,
.mh-card-like-btn.is-liked {
  background: rgba(236,72,153,.3);
  border-color: var(--mh-accent);
  transform: scale(1.1);
}

/* Gate découverte (non connecté) */
.mh-discover-gate {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.mh-discover-gate h2 { font-size: 26px; color: var(--mh-text); margin-bottom: 12px; }
.mh-discover-gate p  { color: var(--mh-text-muted); margin-bottom: 24px; }

/* Chargement */
.mh-discover-loading { padding: 40px; text-align: center; }
.mh-discover-more    { text-align: center; margin-top: 32px; }

/* Matchs */
.mh-matches-page { max-width: 900px; margin: 0 auto; }
.mh-matches-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.mh-matches-stats { display: flex; gap: 16px; }
.mh-stat {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-sm);
  padding: 12px 20px;
  text-align: center;
}
.mh-stat__num { display: block; font-size: 24px; font-weight: 800; color: var(--mh-primary-light); }
.mh-stat__label { font-size: 12px; color: var(--mh-text-muted); }

.mh-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.mh-match-card {
  background: var(--mh-bg-card);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  overflow: hidden;
  transition: transform var(--mh-transition), box-shadow var(--mh-transition);
}
.mh-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.mh-match-card__link { text-decoration: none; display: block; padding: 16px; }
.mh-match-card__avatar-wrap { position: relative; display: inline-block; margin-bottom: 10px; }
.mh-match-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mh-primary);
}
.mh-match-card__info { }
.mh-match-card__name { display: block; font-size: 15px; font-weight: 700; color: var(--mh-text); margin-bottom: 4px; }
.mh-match-card__meta { display: block; font-size: 12px; color: var(--mh-text-muted); margin-bottom: 6px; }
.mh-match-card__common { display: block; font-size: 12px; color: var(--mh-success); }
.mh-match-card__actions { padding: 0 16px 16px; }
.mh-match-card__time { display: block; padding: 8px 16px; font-size: 11px; color: var(--mh-text-faint); border-top: 1px solid var(--mh-border); }

/* Mobile */
@media (max-width: 600px) {
  .mh-discover-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mh-profile-card__cover { height: 60px; }
  .mh-profile-card__avatar { width: 52px; height: 52px; }
  .mh-profile-card__avatar-wrap { margin-top: -26px; }
  .mh-filters-grid { grid-template-columns: 1fr 1fr; }
  .mh-matches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .mh-discover-grid { grid-template-columns: 1fr; }
}
