/* ==========================================================
   ECHIPA PAGE - PRO (SCOPED)
========================================================== */

.teamPage{
  --tRadius: 22px;
  --tLine: rgba(148,163,184,.18);
  --tPanel: rgba(255,255,255,.04);
  --tPanel2: rgba(2,6,23,.55);
  --tText: #e5e7eb;
  --tMuted: rgba(229,231,235,.78);
}

/* HERO */
.teamPage .teamHero{
  position:relative;
  padding:18px 16px;
  border-radius: var(--tRadius);
  background:
    radial-gradient(900px 260px at 15% 10%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(700px 260px at 85% 30%, rgba(52,211,153,.14), transparent 55%),
    var(--tPanel);
  border:1px solid var(--tLine);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow:hidden;
}

.teamPage .teamPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  background: rgba(2,6,23,.55);
  border:1px solid rgba(148,163,184,.18);
  color: var(--tText);
}

.teamPage .teamPillIco{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(148,163,184,.18);
}

.teamPage .teamHero h1{
  margin:10px 0 6px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height:1.12;
  color: var(--tText);
}

.teamPage .teamSub{
  margin:0;
  color: var(--tMuted);
  max-width: 70ch;
  line-height:1.45;
}

.teamPage .teamSubHint{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.35;
  color: rgba(229,231,235,.55);
  font-style: italic;
}

/* NAV sticky */
.teamPage .teamNavWrap{ margin-top:12px; }

.teamPage .teamNav{
  position: sticky;
  top: 74px;
  z-index: 40;

  display:flex;
  gap:14px;
  flex-wrap:wrap;

  justify-content:center;
  align-items:center;

  padding:10px;
  border-radius:18px;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(10px);
  border:1px solid rgba(148,163,184,.12);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}

.teamPage .teamNav a,
.teamPage .teamNav a:hover,
.teamPage .teamNav a:focus,
.teamPage .teamNav a:active{
  text-decoration:none !important;
}

.teamPage .teamNavBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  border-radius:18px;
  font-weight:900;
  font-size:15px;
  color: var(--tText);

  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(148,163,184,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 18px 50px rgba(0,0,0,.30);

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
  white-space:nowrap;
}

.teamPage .teamNavBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(125,211,252,.45);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
  filter: brightness(1.03);
}

.teamPage .teamNavBtn.is-active{
  background: linear-gradient(135deg, rgba(96,165,250,.35), rgba(52,211,153,.30));
  border-color: rgba(125,211,252,.55);
  color:#fff;
}

.teamPage .teamIco{
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
  display:block;
  flex: 0 0 auto;
  opacity:.95;
}

/* Head row */
.teamPage .teamSection{ margin-top:14px; }

.teamPage .teamH2Row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 2px 10px;
}

.teamPage .teamH2{
  font-weight: 900;
  font-size: 16px;
  color: rgba(229,231,235,.92);
}

.teamPage .teamBadge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#fca5a5;
  background: rgba(2,6,23,.45);
  border:1px solid rgba(248,113,113,.35);
}

.teamPage .teamBadge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,.7);
  animation: teamPulse 1.4s infinite;
}

@keyframes teamPulse{
  0%{ box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  70%{ box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Grid */
.teamPage .teamGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

/* Card */
.teamPage .teamCard{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.45);
  color:#e5e7eb;
  text-decoration:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  min-height:76px;
}

.teamPage .teamCard:hover{
  text-decoration:none;
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
  border-color: rgba(148,163,184,.28);
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
}

.teamPage .teamAvatar{
  width:54px;
  height:54px;
  border-radius:16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 54px;
  border:1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.06);
}

.teamPage .teamAvatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.teamPage .teamAvatar span{
  font-weight:900;
  letter-spacing:.5px;
  color: rgba(229,231,235,.92);
}

.teamPage .teamInfo{ min-width:0; }

.teamPage .teamName{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.teamPage .teamRole{
  color: rgba(229,231,235,.70);
  font-size:13px;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Skeleton */
.teamPage .teamSkeleton{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.32);
  overflow:hidden;
}

.teamPage .teamSkeleton .skA,
.teamPage .teamSkeleton .skB{
  height:12px;
  border-radius:999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.14),
    rgba(255,255,255,.06)
  );
  background-size: 200% 100%;
  animation: skSh 1.1s infinite linear;
}

.teamPage .teamSkeleton .skA{ width:70%; margin-bottom:10px; }
.teamPage .teamSkeleton .skB{ width:48%; opacity:.9; }

@keyframes skSh{
  from{ background-position: 200% 0; }
  to{ background-position: -200% 0; }
}

/* Updated */
.teamPage .teamUpdated{
  margin:8px 2px 0;
  font-size:12.5px;
  color: rgba(229,231,235,.55);
  font-style: italic;
}

/* Mobile */
@media (max-width: 680px){
  .teamPage{ --tRadius: 18px; }

  .teamPage .teamNav{
    top: 62px;
    padding:8px;
    border-radius:16px;

    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:10px;
  }

  .teamPage .teamNavBtn{
    width:100%;
    justify-content:center;
    padding:12px 18px;
    border-radius:16px;
  }

  .teamPage .teamH2Row{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .teamPage .teamGrid{
    grid-template-columns: 1fr;
  }
}
