/* ═══════════════════════════════════════════════════════
   VORTEX RP — Profil Joueur
   v1.0.0 — Production
   ═══════════════════════════════════════════════════════ */

/* ── Banner ── */
.profile-banner { height: 190px; position: relative; overflow: hidden; flex-shrink: 0; }
.banner-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0f1116, #1d2029);
  position: relative;
}
.banner-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,.28), rgba(252,92,124,.12), rgba(92,228,252,.08));
}
.banner-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .1;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(255,255,255,.15) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(255,255,255,.15) 30px);
}
.banner-edit-btn {
  position: absolute; bottom: 12px; right: 16px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-size: 11px; font-weight: 600; padding: 5px 13px;
  backdrop-filter: blur(8px); transition: all .2s; cursor: pointer;
}
.banner-edit-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Profile info ── */
.profile-info { padding: 0 24px 20px; border-bottom: 1px solid var(--border); }
.profile-av-wrap {
  position: relative; display: inline-block;
  margin-top: -44px; margin-bottom: 12px;
}
.profile-av {
  position: relative; border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo Black', sans-serif; color: #fff;
  width: 82px; height: 82px; font-size: 28px;
}
.profile-av-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 22px; height: 22px;
  border: 2px solid var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 9px;
}
.profile-av-overlay {
  position: absolute; inset: 3px; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
}
.profile-av-wrap:hover .profile-av-overlay { display: flex; }

.profile-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.profile-display-name { font-family: 'Archivo Black', sans-serif; font-size: 22px; line-height: 1.1; }
.profile-handle-txt   { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 3px; }
.profile-faction-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-top: 7px;
}
.profile-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-follow {
  background: var(--accent); border: none; color: #fff;
  font-family: 'Archivo Black', sans-serif; font-size: 12px;
  letter-spacing: 1px; padding: 9px 22px; transition: all .2s; cursor: pointer;
}
.btn-follow:hover { background: #9070ff; }
.btn-follow.following { background: none; border: 1px solid var(--border2); color: var(--muted2); font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 600; }
.btn-edit, .btn-msg-user {
  background: none; border: 1px solid var(--border2);
  color: var(--muted2); font-size: 12px; font-weight: 600;
  padding: 9px 18px; transition: all .2s; cursor: pointer;
}
.btn-edit:hover, .btn-msg-user:hover { border-color: var(--accent); color: var(--accent); }

.profile-bio   { font-size: 13px; color: #c0c4d0; line-height: 1.65; margin-bottom: 13px; max-width: 540px; word-break: break-word; }
.profile-meta  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 15px; }
.pmeta-item    { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted2); }
.profile-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.pstat { cursor: pointer; }
.pstat-val { font-family: 'Archivo Black', sans-serif; font-size: 15px; }
.pstat-lbl { font-size: 11px; color: var(--muted); }
.pstat:hover .pstat-val { color: var(--accent); }

/* ── Profile tabs ── */
.profile-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 24px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.ptab {
  padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  letter-spacing: .8px; transition: all .2s; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0; user-select: none;
}
.ptab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ptab:hover:not(.active) { color: var(--muted2); }

/* ── Media grid ── */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; }
.media-cell {
  aspect-ratio: 1; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: opacity .2s;
}
.media-cell:hover { opacity: .72; }

/* ── Faction tab card ── */
.pf-card { margin: 18px 24px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.pf-card-top { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--border); }
.pf-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.pf-name { font-family: 'Archivo Black', sans-serif; font-size: 18px; }
.pf-type { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; margin-top: 2px; }
.pf-stats { display: flex; padding: 14px 18px; gap: 22px; border-bottom: 1px solid var(--border); }
.pf-desc  { padding: 14px 18px; font-size: 12px; color: var(--muted2); line-height: 1.65; }
.pf-owner { padding: 12px 18px; display: flex; align-items: center; gap: 10px; background: var(--surface2); }
.pf-owner-name   { font-size: 13px; font-weight: 600; }
.pf-owner-handle { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ── Empty state ── */
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-icon  { font-size: 38px; margin-bottom: 12px; opacity: .35; }
.empty-text  { font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .profile-banner { height: 145px; }
  .profile-info   { padding: 0 14px 14px; }
  .profile-av-wrap { margin-top: -36px; }
  .profile-av     { width: 72px; height: 72px; font-size: 24px; }
  .profile-display-name { font-size: 18px; }
  .profile-tabs   { padding: 0 14px; }
  .media-grid     { grid-template-columns: repeat(2, 1fr); }
  .pf-card        { margin: 14px; }
}
