/* ═══════════════════════════════════════════
   Inevora.in — Team Page Styles
   ═══════════════════════════════════════════ */

/* ── Team tabs bar ── */
.team-tabs-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 76px;
  z-index: 50;
}
.team-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.team-tabs::-webkit-scrollbar { display: none; }
.team-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: all var(--transition);
  background: none;
  border-radius: 0;
}
.team-tab:hover { color: var(--text); background: rgba(108,92,231,0.04); }
.team-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.team-tab__init {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.team-tab__init img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-tab.active .team-tab__init {
  background: var(--accent);
  color: #fff;
}

/* ── Profiles section ── */
.team-profiles-section {
  padding: 60px 0 100px;
}

/* ── Member profile layout ── */
.member-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.member-profile:not(.active) { display: none; }

/* ── Left sidebar ── */
.member-profile__left {
  position: sticky;
  top: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.member-profile__avatar {
  width: 96px; height: 96px;
  border-radius: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(108,92,231,0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.member-profile__avatar img,
.member-profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.member-profile__info {
  margin-top: 20px;
  width: 100%;
}
.member-profile__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.member-profile__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.member-profile__headline {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}
.member-profile__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.member-profile__meta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 14px;
}
.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.meta-value--green { color: #059669; }

/* Socials */
.member-profile__socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ── Right content ── */
.member-profile__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sections within profile ── */
.member-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}
.member-section:last-child { border-bottom: none; }
.member-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.member-section > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Skill tags ── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

/* ── Cert list ── */
.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.cert-item--progress { opacity: 0.85; }
.cert-item__icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-item__icon--blue { background: #dbeafe; color: #2563eb; }
.cert-item__icon--cyan { background: #cffafe; color: #0891b2; }
.cert-item__icon--pink { background: #fce7f3; color: #db2777; }
.cert-item__icon--amber { background: #fef3c7; color: #d97706; }
.cert-item__icon--purple { background: #ede9fe; color: #7c3aed; }
.cert-item__icon--green { background: #d1fae5; color: #059669; }
.cert-item__icon--violet { background: #f3e8ff; color: #9333ea; }
.cert-item h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.cert-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.cert-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}
.cert-badge--progress { background: #fef3c7; color: #d97706; }

/* ── Project list ── */
.project-list { display: flex; flex-direction: column; gap: 14px; }
.project-item {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all var(--transition);
}
.project-item:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-card);
}
.project-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.project-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.project-item__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.project-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.project-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.project-item__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

@media (max-width: 860px) {
  .member-profile {
    grid-template-columns: 1fr;
  }
  .member-profile__left {
    position: relative;
    top: auto;
  }
  .team-tabs-section { top: 76px; }
}
@media (max-width: 500px) {
  .team-tab { padding: 14px 16px; font-size: 0.82rem; }
  .team-tab__init { display: none; }
}
