/* KICKOFF · module social « Mes amis ». DA bleue, motif slash, zéro fond plat. */

.fr-wrap { display: flex; flex-direction: column; gap: 4px; }
.fr-wrap .screen-title { font-size: 30px; margin: 2px 0 2px; }
.fr-lede { font-size: 13px; margin: 0 2px 8px; max-width: 34ch; }

.fr-sec { margin-top: 14px; }
.fr-sec .card-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 10px;
}

.fr-list { display: flex; flex-direction: column; gap: 8px; }

/* ---- ligne d'ami (cliquable) ---- */
.fr-row, .fr-req {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; position: relative; overflow: hidden;
}
.fr-row { cursor: pointer; transition: transform .12s ease, border-color .2s ease; -webkit-tap-highlight-color: transparent; }
.fr-row::before {
  content: ""; position: absolute; right: -8px; top: 0; bottom: 0; width: 42px;
  background: linear-gradient(120deg, transparent, rgba(37, 99, 235, .10));
  transform: skewX(-12deg); pointer-events: none;
}
.fr-row:active { transform: scale(.98); }
.fr-row:hover { border-color: rgba(37, 99, 235, .45); }

.fr-av { flex: none; display: inline-flex; }
.fr-av .avatar-badge { border-radius: 12px; overflow: hidden; }

.fr-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fr-row-name {
  font-family: var(--disp); font-style: italic; font-weight: 700;
  font-size: 16px; letter-spacing: .01em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-row-club { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fr-row-pts {
  flex: none; font-family: var(--disp); font-style: italic; font-weight: 700;
  font-size: 17px; color: var(--gold); display: flex; align-items: baseline; gap: 3px;
}
.fr-row-pts i { font-size: 9.5px; font-style: normal; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.fr-chev { flex: none; color: var(--muted); font-size: 22px; line-height: 1; margin-left: -4px; }

/* ---- demandes reçues / envoyées ---- */
.fr-req .fr-row-main { gap: 0; }
.fr-req-actions { display: flex; gap: 8px; flex: none; }
.fr-mini {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line);
  font-size: 16px; font-weight: 800; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .2s ease;
}
.fr-mini:active { transform: scale(.92); }
.fr-mini:disabled { opacity: .5; }
.fr-mini.ok { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; border: none; box-shadow: var(--glow-red); }
.fr-mini.no { background: rgba(255, 255, 255, .04); color: var(--muted); }
.fr-req.is-out { opacity: .92; }

/* ---- état vide ---- */
.fr-empty { text-align: center; padding: 26px 18px; }
.fr-hero {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--red-glow); margin-bottom: 8px;
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, .4));
}
.fr-empty-t { font-size: 19px; margin-bottom: 4px; }
.fr-empty .muted { font-size: 13px; max-width: 30ch; margin: 0 auto; }

/* ---- barre retour ---- */
.fr-back {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--disp); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  padding: 6px 2px; margin-bottom: 2px; -webkit-tap-highlight-color: transparent;
}
.fr-back:active { transform: translateX(-2px); }

/* ---- profil d'un ami ---- */
.fr-pf-head { text-align: center; padding: 22px 16px 18px; }
.fr-pf-av {
  display: inline-block; border-radius: 20px; overflow: hidden; margin-bottom: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.fr-pf-av .avatar-badge { border-radius: 20px; overflow: hidden; }
.fr-pf-name { font-size: 26px; margin-bottom: 6px; }
.fr-pf-club { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.fr-pf-stats { margin-top: 12px; }

.fr-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-badge { display: inline-flex; align-items: center; gap: 5px; }
.fr-badge i { font-style: normal; font-size: 9px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.fr-badge.t-or { border-color: rgba(244, 195, 59, .4); color: var(--gold); }
.fr-badge.t-argent { border-color: rgba(200, 200, 210, .35); }

.fr-pf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.fr-gift.is-prem { filter: saturate(.7); }
.fr-gift.is-done { background: rgba(34, 197, 94, .16); color: var(--green); box-shadow: none; }

/* ---- bouton « + Ami » sur les lignes du classement ---- */
.lb-addfriend {
  flex: none; margin-left: 10px; cursor: pointer;
  font-family: var(--disp); font-style: italic; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 11px;
  color: var(--red-glow); background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(37, 99, 235, .4); border-radius: 999px;
  padding: 5px 11px; white-space: nowrap;
  transition: transform .12s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-addfriend:active { transform: scale(.94); }
.lb-addfriend:disabled { opacity: .8; cursor: default; }
.lb-addfriend.is-sent {
  color: var(--muted); background: rgba(255, 255, 255, .04);
  border-color: var(--line);
}

/* Le badge-chip de base peut ne pas exister hors profil : on assure un socle. */
.badge-chip {
  display: inline-block; font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--txt);
  font-weight: 600;
}
