/* =========================================================
   goxost-team.css
   "Jamoamiz" bo'limi (/{locale}/team va /{locale}/team/{slug}).

   goxost-landing.css tokenlari ustiga quriladi; goxost-blog.css bilan
   bir xil vizual tilda (karta, ramka, soya) — yangi rang kiritmaydi.
   Rasm o'rniga bosh harflar ishlatilishi ataylab: a'zoning fotosurati
   bo'lmasa ham ro'yxat bir tekis va tez ko'rinadi.
   ========================================================= */

/* ---------- 1. RO'YXAT ---------- */
.gx-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gx-6);
  margin-bottom: var(--gx-16);
}

@media (min-width: 640px) {
  .gx-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .gx-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gx-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: var(--gx-8) var(--gx-6);
  text-align: center;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-lg);
  box-shadow: var(--gx-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gx-team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gx-shadow-md);
  border-color: var(--gx-border-strong);
}

.gx-team-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: var(--gx-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--gx-gradient);
  color: #fff;
  font-family: var(--gx-font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .02em;
}

.gx-team-card__avatar img,
.gx-team-hero__avatar img,
.gx-team-others__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-team-card__name {
  font-family: var(--gx-font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.gx-team-card__name a { color: var(--gx-text); }
.gx-team-card__name a:hover { color: var(--gx-primary); }

.gx-team-card__role {
  color: var(--gx-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--gx-3);
}

.gx-team-card__bio {
  color: var(--gx-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--gx-4);
}

.gx-team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gx-primary);
}

.gx-team-card__link svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.gx-team-card__link:hover svg { transform: translateX(3px); }

/* ---------- 2. ICHKI SAHIFA SARLAVHASI ---------- */
.gx-team-hero {
  display: flex;
  align-items: center;
  gap: var(--gx-6);
  flex-wrap: wrap;
  margin-bottom: var(--gx-8);
}

.gx-team-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gx-gradient);
  color: #fff;
  font-family: var(--gx-font-display);
  font-weight: 800;
  font-size: 36px;
}

.gx-team-hero__name {
  font-family: var(--gx-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gx-team-hero__role {
  color: var(--gx-primary);
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.gx-team-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gx-2);
  margin-top: var(--gx-4);
}

.gx-team-hero__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gx-border-strong);
  border-radius: 50%;
  color: var(--gx-text-muted);
  transition: color .15s ease, border-color .15s ease;
}

.gx-team-hero__links a:hover {
  color: var(--gx-primary);
  border-color: var(--gx-primary);
}

.gx-team-hero__links svg { width: 18px; height: 18px; }

.gx-team-empty-bio {
  color: var(--gx-text-faint);
  font-size: 15px;
  font-style: italic;
}

.gx-team-hero__tagline {
  color: var(--gx-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: var(--gx-2);
  max-width: 60ch;
}

/* ---------- 2a. KO'NIKMALAR ---------- */
.gx-team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gx-team-skills li {
  padding: 5px 12px;
  border-radius: var(--gx-radius-full);
  background: var(--gx-primary-soft);
  color: var(--gx-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.gx-team-skills--sm {
  justify-content: center;
  margin-bottom: var(--gx-4);
}

.gx-team-skills--sm li {
  padding: 3px 9px;
  font-size: 11.5px;
  background: var(--gx-surface-hover);
  color: var(--gx-text-muted);
}

/* ---------- 2b. LOYIHALAR ---------- */
.gx-team-block { margin-top: var(--gx-10, var(--gx-8)); }

.gx-team-block__title {
  font-family: var(--gx-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--gx-2);
}

.gx-team-block__desc {
  color: var(--gx-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--gx-4);
}

.gx-team-projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gx-3);
}

@media (min-width: 640px) {
  .gx-team-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gx-team-project {
  display: flex;
  align-items: center;
  gap: var(--gx-2);
  padding: var(--gx-4);
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  transition: border-color .2s ease, transform .2s ease;
}

a.gx-team-project:hover {
  border-color: var(--gx-primary);
  transform: translateY(-2px);
}

.gx-team-project__name {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
}

.gx-team-project__role {
  color: var(--gx-text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.gx-team-project__name + .gx-team-project__role::before {
  content: "·";
  margin-right: 6px;
  color: var(--gx-text-faint);
}

.gx-team-project__arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--gx-primary);
}

/* ---------- 3. BOSHQA A'ZOLAR ---------- */
.gx-team-others { margin-top: var(--gx-12); }

.gx-team-others__title {
  font-family: var(--gx-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--gx-4);
}

.gx-team-others__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gx-3);
}

@media (min-width: 640px) {
  .gx-team-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gx-team-others__item {
  display: flex;
  align-items: center;
  gap: var(--gx-3);
  padding: var(--gx-3) var(--gx-4);
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-md);
  transition: border-color .2s ease;
}

.gx-team-others__item:hover { border-color: var(--gx-primary); }

.gx-team-others__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gx-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.gx-team-others__name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}

.gx-team-others__role {
  display: block;
  color: var(--gx-text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ---------- 4. HARAKATNI KAMAYTIRISH ---------- */
@media (prefers-reduced-motion: reduce) {
  .gx-team-card,
  .gx-team-card__link svg,
  .gx-team-others__item,
  .gx-team-hero__links a {
    transition: none;
  }

  .gx-team-card:hover { transform: none; }
}
