/* ARES SOCIAL V11.2 — EXPLORER & PROFILS */

/* Explorer : grille immersive */
.app.mode-rp #rp87-root .rp87-explore {
  width: 100%;
  max-width: 1440px;
  padding: 26px 30px 100px;
  margin: 0 auto;
}

.app.mode-rp #rp87-root #rp87-search {
  min-height: 48px;
  border-radius: 14px;
  background: #1a1721;
  border: 1px solid #38303f;
  color: #fff;
}

.app.mode-rp #rp87-root .rp87-tags {
  gap: 9px;
  padding: 16px 0 22px;
}

.app.mode-rp #rp87-root .rp87-tags button {
  border-radius: 999px;
  padding: 8px 15px;
}

.app.mode-rp #rp87-root .rp87-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 4px;
}

/* Remplace les petites cartes par des visuels */
.app.mode-rp #rp87-root .rp87-card-v7 {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #201a29;
  text-align: left;
  isolation: isolate;
}

.app.mode-rp #rp87-root .rp112-visual {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.app.mode-rp #rp87-root .rp112-visual .rp87-face {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg,#32213e,#14121b);
}

.app.mode-rp #rp87-root .rp112-visual .rp87-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .3s ease;
}

.app.mode-rp #rp87-root .rp87-card-v7:hover
.rp112-visual img {
  transform: scale(1.045);
}

.app.mode-rp #rp87-root .rp112-info {
  display: flex;
  position: absolute;
  inset: auto 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 50px 14px 14px;
  background: linear-gradient(
    transparent,
    rgba(0,0,0,.75) 60%,
    rgba(0,0,0,.9)
  );
  color: #fff;
}

.app.mode-rp #rp87-root .rp112-info strong {
  max-width: 100%;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.mode-rp #rp87-root .rp112-info small {
  max-width: 100%;
  font-size: 12px;
  color: #ddd1ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.mode-rp #rp87-root .rp112-count {
  font-size: 11px;
  color: #c6b5db;
}

/* Profil : véritable présentation sociale */
.app.mode-rp #rp87-root .rp93-profile {
  width: 100%;
  max-width: 1100px;
  padding: 30px 26px 100px;
  margin: 0 auto;
}

.app.mode-rp #rp87-root .rp93-profile
.rp87-character-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 15px 28px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.app.mode-rp #rp87-root .rp93-profile
.rp87-character-head > .rp87-face {
  width: 144px;
  height: 144px;
  border: 4px solid #b568f1;
  box-shadow: 0 0 0 3px #ff8b42;
  border-radius: 50%;
}

.app.mode-rp #rp87-root .rp93-profile h2 {
  margin: 4px 0 0;
  font-size: clamp(24px,3vw,32px);
}

.app.mode-rp #rp87-root .rp93-handle {
  margin: 0;
  color: #b79aff;
}

.app.mode-rp #rp87-root .rp93-bio {
  max-width: 650px;
  margin: 6px auto;
  line-height: 1.65;
  text-align: center;
}

.app.mode-rp #rp87-root .rp93-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 45px;
  margin: 8px 0;
}

.app.mode-rp #rp87-root .rp93-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app.mode-rp #rp87-root .rp93-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.app.mode-rp #rp87-root .rp93-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 20px;
}

.app.mode-rp #rp87-root .rp93-heading {
  margin: 25px 0 16px;
  text-align: center;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app.mode-rp #rp87-root .rp93-posts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
}

.app.mode-rp #rp87-root .rp93-tile {
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #221b2b;
}

.app.mode-rp #rp87-root .rp93-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 700px) {
  .app.mode-rp #rp87-root .rp87-explore {
    padding: 12px 8px 100px;
  }

  .app.mode-rp #rp87-root .rp87-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 2px;
  }

  .app.mode-rp #rp87-root .rp87-card-v7 {
    aspect-ratio: 3 / 4;
    border-radius: 1px;
  }

  .app.mode-rp #rp87-root .rp112-info {
    padding: 25px 6px 7px;
    gap: 1px;
  }

  .app.mode-rp #rp87-root .rp112-info strong {
    font-size: 11px;
  }

  .app.mode-rp #rp87-root .rp112-info small {
    font-size: 9px;
  }

  .app.mode-rp #rp87-root .rp112-count {
    font-size: 9px;
  }

  .app.mode-rp #rp87-root .rp93-profile {
    padding: 12px 9px 100px;
  }

  .app.mode-rp #rp87-root .rp93-profile
  .rp87-character-head > .rp87-face {
    width: 105px;
    height: 105px;
  }

  .app.mode-rp #rp87-root .rp93-stats {
    gap: 25px;
  }

  .app.mode-rp #rp87-root .rp93-actions {
    width: 100%;
  }

  .app.mode-rp #rp87-root .rp93-actions button {
    flex: 1 1 125px;
  }

  .app.mode-rp #rp87-root .rp93-posts {
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app.mode-rp #rp87-root .rp112-visual img {
    transition: none;
  }
}
