/* =================================================================
   Vybe Space — Social Pages Polish  (vybe_social_pages.css)
   Loaded globally via base.html.
   Improves: shell depth, settings, notifications, messages,
   friends, groups, games, empty states, typography.
   ================================================================= */

/* ── Logged-in page: ambient depth layer ─────────────────────── */
body.dashboard-page {
  background:
    radial-gradient(ellipse 55% 35% at 10% 0%,   rgba(99,40,200,0.22)   0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 15%,  rgba(255,45,170,0.12)  0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0,200,240,0.08)   0%, transparent 55%),
    linear-gradient(180deg, #040508 0%, var(--bg, #0a0d14) 100%);
}

/* ── Page container max-width: broader for social pages ─────── */
.vs-list-layout {
  max-width: 720px;
}

/* ── List layout page header: richer ────────────────────────── */
.vs-list-layout__header {
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
}
.vs-list-layout__header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =================================================================
   NOTIFICATIONS
   ================================================================= */

.vs-notif-item {
  border-radius: 12px;
  align-items: flex-start;
}
.vs-notif-item--unread {
  background: rgba(139,92,246,0.07);
}
.vs-notif-item__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.05rem;
  margin-top: .1rem;
}
.vs-notif-item__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.vs-notif-item__body p {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 0.2rem;
}
.vs-notif-item__body time {
  font-size: 0.72rem;
  color: var(--muted, #8b93a7);
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
}

/* =================================================================
   MESSAGES / DM INBOX
   ================================================================= */

.vs-dm-row {
  border-radius: 12px;
  transition: background 0.18s, transform 0.18s;
}
.vs-dm-row:hover {
  background: rgba(139,92,246,0.1);
  transform: translateX(2px);
}
.vs-dm-row--unread {
  background: rgba(6,182,212,0.06);
}
.vs-dm-row__top strong {
  font-size: 0.92rem;
  font-weight: 700;
}
.vs-dm-row__top time {
  font-size: 0.72rem;
  color: var(--muted, #8b93a7);
  white-space: nowrap;
}
.vs-dm-row__preview {
  font-size: 0.83rem;
  color: var(--muted, #8b93a7);
  line-height: 1.35;
}

/* =================================================================
   SETTINGS — LAYOUT AND TYPOGRAPHY
   ================================================================= */

.vs-settings-layout {
  max-width: 860px;
}
.vs-settings-section {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  gap: 0;
}
.vs-settings-section__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #7c89a8;
  margin: 0 0 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.vs-settings-row {
  padding: 0.75rem 0;
}
.vs-settings-row__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text, #e8e8f0);
}
.vs-settings-row__desc {
  font-size: 0.8rem;
  color: #8b93a7;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

/* ── Platform/Settings World Section ─────────────────────────── */
.platform-section-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.platform-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  font-weight: 700;
}
.platform-title {
  margin: 0;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text, #e8e8f0);
}
.platform-copy {
  color: var(--muted, #a0a0b0);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.platform-stat {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  min-width: 100px;
}
.platform-mini {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b93a7;
  display: block;
  margin-bottom: 0.2rem;
}
.platform-stage {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.platform-scene-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
  flex: 0 0 auto;
}
.platform-scene {
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,0.2);
  background: var(--scene-gradient, linear-gradient(145deg,#3a2459,#14274d));
  color: #e8e8f0;
}
.platform-scene--compact {
  padding: 0.85rem 1.1rem;
}
.platform-scene strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.platform-panel {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.platform-caption {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.25rem 0 0;
  line-height: 1.45;
}
.platform-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.platform-link {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s;
}
.platform-link:hover { color: #c4b5fd; }
.platform-link:last-child { border-bottom: none; }
.platform-hero .platform-section-stack { flex: 1; min-width: 0; }

/* =================================================================
   GROUPS / COMMUNITIES
   ================================================================= */

.vs-community-card {
  border-radius: 16px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.vs-community-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(20,184,166,0.12);
}
.vs-community-card__cover {
  height: 100px;
  position: relative;
}
.vs-community-card__cover::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
  pointer-events: none;
}
.vs-community-card__emoji {
  font-size: 2.75rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  position: relative;
  z-index: 1;
}
.vs-community-card__body {
  padding: 0.85rem 1rem 1rem;
}
.vs-community-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}
.vs-community-card__desc {
  font-size: 0.78rem;
  color: #8b93a7;
  line-height: 1.45;
}
.vs-community-card__meta {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  gap: 0.6rem;
}

/* Groups page header (inline-styled → replace) */
.vs-groups-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  gap: 1rem;
}
.vs-groups-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vs-groups-header p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #8b93a7;
}

/* =================================================================
   FRIENDS
   ================================================================= */

.vs-lounge-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b93a7;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vs-friend-card {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  transition: box-shadow 0.18s, transform 0.18s;
}
.vs-friend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.vs-friend-card.vs-best-friend {
  border-color: rgba(236,72,153,0.35);
  box-shadow: 0 0 16px rgba(236,72,153,0.12);
}
.vs-friend-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}
.vs-friend-row {
  border-radius: 12px;
  padding: 0.7rem 1rem;
  transition: background 0.18s;
}
.vs-friend-row:hover {
  background: rgba(139,92,246,0.08);
}

/* =================================================================
   EMPTY STATES — polished, personality
   ================================================================= */

.vs-empty-feed {
  padding: 3.5rem 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.vs-empty-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.10), transparent 70%);
  pointer-events: none;
}
.vs-empty-feed__icon {
  font-size: 3.25rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.vs-empty-feed h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.vs-empty-feed p {
  margin: 0;
  color: #8b93a7;
  max-width: 40ch;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.vs-notif-empty {
  padding: 3rem 1.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.vs-notif-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,0.08), transparent 70%);
  pointer-events: none;
}
.vs-notif-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.vs-notif-empty p {
  font-size: 0.88rem;
  color: #8b93a7;
  line-height: 1.5;
}

/* =================================================================
   INVITE CARDS — richer
   ================================================================= */

.vs-invite-card {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(139,92,246,0.06);
}
.vs-invite-card__info strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.vs-invite-card__game {
  font-size: 0.78rem;
  color: #8b93a7;
  margin-top: 0.1rem;
}

/* =================================================================
   LOUNGE HEADER — slightly larger title
   ================================================================= */

.vs-lounge-header {
  margin-bottom: 0.75rem;
}
.vs-lounge-header__title {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.vs-lounge-header__sub {
  font-size: 0.84rem;
  color: #8b93a7;
}

/* =================================================================
   BADGE-CHIP — for groups Joined badge
   ================================================================= */

.vs-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(var(--badge-color-rgb, 16,185,129), 0.16);
  color: var(--badge-color, #10b981);
  border: 1px solid rgba(var(--badge-color-rgb, 16,185,129), 0.3);
}

/* =================================================================
   GAMES — game catalog cards
   ================================================================= */

.vs-game-card {
  border-radius: 16px;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.vs-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.25);
}
.vs-active-card {
  border-radius: 16px;
}

/* =================================================================
   GLOBAL MUTED TEXT — slightly easier to read
   ================================================================= */

.vs-muted {
  color: #8b93a7;
}
time.vs-muted {
  font-size: 0.72rem;
}

/* =================================================================
   MOBILE ADJUSTMENTS
   ================================================================= */

@media (max-width: 768px) {
  .platform-stage {
    flex-direction: column;
  }
  .platform-scene-list {
    min-width: unset;
    width: 100%;
  }
  .vs-settings-layout {
    padding: 0 0.5rem;
  }
  .vs-list-layout {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .platform-panel-grid {
    grid-template-columns: 1fr;
  }
  .vs-groups-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
