/* FomLove - Composant Profile Card (complet) */

/* CARD - Structure de base */

.profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-card);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Bordure lumineuse pour les profils featured */
.profile-card--featured {
  box-shadow: 0 0 0 1px rgba(232, 23, 93, 0.35),
              0 4px 16px rgba(232, 23, 93, 0.15);
}

.profile-card--featured:hover {
  box-shadow: 0 0 0 1px rgba(232, 23, 93, 0.6),
              0 12px 32px rgba(232, 23, 93, 0.25);
}

.profile-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* IMAGE - Ratio 2:3 portrait */

.profile-card__img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* ratio 1:1 = carre */
  overflow: hidden;
  background-color: #111;
}

.profile-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
  display: block;
}

.profile-card:hover .profile-card__img {
  transform: scale(1.06);
}

/* Placeholder si aucune photo */
.profile-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(160deg, #1a1a1a 0%, #111 100%);
  color: var(--color-text-muted);
}

.profile-card__img-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.4;
}

.profile-card__img-placeholder span {
  font-size: var(--font-size-xs);
  opacity: 0.4;
}

/* BADGES - positionnés en haut à gauche */

.profile-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}

/* VÉRIFIÉ - vert */
.badge--verified {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #fff;
}

/* NOUVEAU - rose */
.badge--new {
  background: linear-gradient(135deg, #e8175d, #ff6b9d);
  color: #fff;
}

/* TOP / FEATURED - doré */
.badge--featured {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #000;
}

.badge--membership {
  min-height: 22px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(7px);
}

.badge--discovery {
  color: #fff;
  background: linear-gradient(135deg, #c2185b, #ff5c93);
}

.badge--visibility {
  color: #fff;
  background: linear-gradient(135deg, #8e2de2, #e8175d);
}

.badge--standard {
  color: #fff;
  background: linear-gradient(135deg, #ff416c, #ff8a3d);
}

.badge--pro {
  color: #231400;
  border-color: rgba(255, 225, 142, 0.7);
  background: linear-gradient(135deg, #ffe08a, #f6a820);
  box-shadow: 0 5px 18px rgba(246, 168, 32, 0.32);
}

.profile-card--tier-pro {
  box-shadow: 0 0 0 1px rgba(246, 168, 32, 0.58), 0 8px 24px rgba(246, 168, 32, 0.16);
}

.profile-card--tier-standard {
  box-shadow: 0 0 0 1px rgba(255, 91, 94, 0.48), 0 7px 22px rgba(232, 23, 93, 0.18);
}

.profile-card--tier-visibility,
.profile-card--tier-discovery {
  box-shadow: 0 0 0 1px rgba(232, 23, 93, 0.35), 0 5px 18px rgba(232, 23, 93, 0.13);
}

/* Type féminin/masculin - discret, en haut à droite */
.profile-card__type {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.profile-card__type svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.profile-card__type--f svg { stroke: #ff8cb4; }
.profile-card__type--m svg { stroke: #6ec6ff; }

/* OVERLAY GRADIENT + INFOS BAS DE CARD */

.profile-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5)  40%,
    transparent         100%
  );
  pointer-events: none;
  z-index: 2;
}

.profile-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
  z-index: 3;
}

/* Nom du profil */
.profile-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 3px;
}

/* Ligne ville + quartier */
.profile-card__location {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card__location svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Ligne stats (vues) - apparaît au survol */
.profile-card__stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.profile-card__stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.profile-card__stat svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* GRILLE DE CARDS - Responsive */

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* Large desktop */
@media (max-width: 1200px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

/* Tablette */
@media (max-width: 768px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .profile-card__name {
    font-size: var(--font-size-xs);
  }

  /* Stats toujours visibles sur mobile (pas de hover) */
  .profile-card__stats {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .profile-card__info {
    padding: var(--space-2);
  }

  .profile-card__name {
    font-size: 11px;
  }

  .badge {
    font-size: 9px;
    padding: 2px 5px;
  }
}

/* SKELETON LOADER (pendant le chargement) */

.profile-card--skeleton .profile-card__img-wrapper {
  background: linear-gradient(
    90deg,
    #1a1a1a 25%,
    #222 50%,
    #1a1a1a 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.profile-card--skeleton .profile-card__info {
  background: transparent;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.1)  50%,
    rgba(255,255,255,0.06) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  margin-bottom: 6px;
}

.skeleton-line--short {
  width: 60%;
}

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