/* team.css — تنسيق صفحة الفريق
   - هيرو نظيف بدون badge داخل العنوان
   - زخرفة شبكة + موجة
   - تحسينات ريسبونسف للفلاتر والإحصاءات والقوائم
   كل شيء Scoped على .team-* لتجنّب التعارض.
*/

/* ===== HERO ===== */
.team-hero-full{
  position: relative;
  overflow: clip;
  background:
    radial-gradient(1100px 420px at 12% -10%, hsl(var(--brand-copper) / .10), transparent 60%),
    radial-gradient(900px 360px at 110% 120%, hsl(var(--brand-stone) / .10), transparent 60%),
    linear-gradient(180deg, hsl(var(--surface)), hsl(var(--surface-2)));
}
.team-grid{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to right, hsl(var(--border) / .35) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, hsl(var(--border) / .35) 0 1px, transparent 1px 80px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  opacity: .18;
}
.team-wave{
  position: absolute; inset-inline: 0; bottom: -1px;
  width: 100%; height: 80px; z-index: 0; pointer-events: none;
}
.team-wave path{
  fill: hsl(var(--surface));
  stroke: hsl(var(--border));
  opacity: .55;
}

.team-hero__inner{
  position: relative; z-index: 1;
  display: grid; gap: .8rem; text-align: center;
  padding-top: clamp(24px, 4.2vw, 52px);
  padding-bottom: clamp(24px, 4.2vw, 52px);
}

/* Eyebrow */
.team-hero__eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  margin-inline: auto;
  padding: 6px 10px; border-radius: 999px;
  background: hsl(var(--muted-bg));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--fg)); font-weight: 800; font-size: .9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 16px rgba(0,0,0,.10);
}

/* Title & Desc */
.team-hero__title{
  font-weight: 900; letter-spacing: -.01em; text-wrap: balance;
  background: linear-gradient(90deg, hsl(var(--fg)), hsl(var(--brand-sand)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.6rem);
}
.team-hero__desc{
  color: hsl(var(--muted-fg));
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem);
  margin-inline: auto; max-width: 72ch;
}

/* ===== Stats (لهذه الصفحة فقط) ===== */
.team-stats .stats-strip{
  gap: .75rem; justify-content: center; flex-wrap: wrap;
}
.team-stats .stat{
  min-width: 160px;
  padding: 12px 14px;
  background: hsl(var(--surface-2));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 20px rgba(0,0,0,.06);
}
.team-stats .stat-value{
  font-weight: 900; font-variant-numeric: tabular-nums;
}
.team-stats .stat-label{ color: hsl(var(--muted-fg)); }

/* ===== Sticky Filters ===== */
.team-filters{
  border-radius: 18px;
  backdrop-filter: saturate(1.15) blur(6px);
  -webkit-backdrop-filter: saturate(1.15) blur(6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

/* ===== Featured Avatars ===== */
.t-avatar{
  inline-size: 44px; block-size: 44px;
  border-radius: 999px;
  background:
    radial-gradient(60% 60% at 30% 30%, hsl(var(--brand-copper) / .65), transparent 60%),
    radial-gradient(60% 60% at 70% 70%, hsl(var(--brand-stone) / .55), transparent 60%),
    hsl(var(--surface-2));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 8px 18px rgba(0,0,0,.05);
}

/* ===== Presence List ===== */
.presence-list{
  list-style: none; margin: 0; padding: 1rem; display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr)); gap: .5rem .75rem;
}
.presence-list li{
  position: relative; padding-inline-start: 1.1rem;
  color: hsl(var(--muted-fg));
}
.presence-list li::before{
  content: ''; position: absolute; inset-inline-start: 0; top: .55em;
  inline-size: 7px; block-size: 7px; border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--brand-copper)), hsl(var(--brand-stone)));
  box-shadow: 0 0 0 2px hsl(var(--surface));
}
@media (min-width: 600px){
  .presence-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px){
  .presence-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce){
  .team-filters{ backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}

