/* =========================================================
   ZH2O Team Members — Frontend Styles
   ========================================================= */

:root {
  --zh2o-tm-accent:      #4f46e5;
  --zh2o-tm-radius:      14px;
  --zh2o-tm-transition:  0.22s ease;
  --zh2o-tm-shadow:      0 2px 16px rgba(0,0,0,0.08);
  --zh2o-tm-shadow-hover:0 10px 40px rgba(0,0,0,0.15);
  --zh2o-tm-text:        #1a1a2e;
  --zh2o-tm-muted:       #6b7280;
  --zh2o-tm-border:      #e5e7eb;
  --zh2o-tm-bg-card:     #ffffff;
  --zh2o-tm-bg-flat:     #f9fafb;
}

/* ── Grid ───────────────────────────────────────────────── */
.zh2o-tm-grid {
  display: grid;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}
.zh2o-tm-cols-1 { grid-template-columns: 1fr; }
.zh2o-tm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.zh2o-tm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.zh2o-tm-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .zh2o-tm-cols-3,
  .zh2o-tm-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .zh2o-tm-cols-1,
  .zh2o-tm-cols-2,
  .zh2o-tm-cols-3,
  .zh2o-tm-cols-4 { grid-template-columns: 1fr; }
  .zh2o-tm-grid { gap: 22px; }
}

/* ── Card base ──────────────────────────────────────────── */
.zh2o-tm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 30px;
  border-radius: var(--zh2o-tm-radius);
  transition:
    transform var(--zh2o-tm-transition),
    box-shadow var(--zh2o-tm-transition),
    border-color var(--zh2o-tm-transition);
  overflow: hidden;
  word-break: break-word;
}

.zh2o-tm-style-card .zh2o-tm-card {
  background: var(--zh2o-tm-bg-card);
  border: 1px solid var(--zh2o-tm-border);
  box-shadow: var(--zh2o-tm-shadow);
}
.zh2o-tm-style-minimal .zh2o-tm-card {
  background: transparent;
  border: none;
  box-shadow: none;
}
.zh2o-tm-style-flat .zh2o-tm-card {
  background: var(--zh2o-tm-bg-flat);
  border: 1px solid transparent;
  box-shadow: none;
}

/* Hover effects */
.zh2o-tm-hover-lift  .zh2o-tm-card:hover { transform: translateY(-7px); box-shadow: var(--zh2o-tm-shadow-hover); }
.zh2o-tm-hover-glow  .zh2o-tm-card:hover { box-shadow: 0 0 0 3px var(--zh2o-tm-accent), var(--zh2o-tm-shadow-hover); }
.zh2o-tm-hover-border.zh2o-tm-card:hover { border-color: var(--zh2o-tm-accent); }

/* Featured */
.zh2o-tm-card.zh2o-tm-featured { border-color: var(--zh2o-tm-accent); }
.zh2o-tm-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--zh2o-tm-accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

/* ── Photo ──────────────────────────────────────────────── */
.zh2o-tm-photo-wrap { margin-bottom: 22px; flex-shrink: 0; }
.zh2o-tm-photo-link { display: block; line-height: 0; }
.zh2o-tm-photo-link:focus-visible { outline: 3px solid var(--zh2o-tm-accent); outline-offset: 3px; border-radius: inherit; }

.zh2o-tm-photo {
  display: block;
  object-fit: cover;
  transition: transform var(--zh2o-tm-transition), filter var(--zh2o-tm-transition);
}
.zh2o-tm-photo-link:hover .zh2o-tm-photo {
  transform: scale(1.05);
  filter: brightness(1.06);
}

/* Square */
.zh2o-tm-shape-square .zh2o-tm-photo-wrap { width: 150px; height: 150px; }
.zh2o-tm-shape-square .zh2o-tm-photo-link { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.zh2o-tm-shape-square .zh2o-tm-photo      { width: 100%; height: 100%; border-radius: 12px; }

/* Round */
.zh2o-tm-shape-round .zh2o-tm-photo-wrap { width: 150px; height: 150px; }
.zh2o-tm-shape-round .zh2o-tm-photo-link { width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }
.zh2o-tm-shape-round .zh2o-tm-photo      { width: 100%; height: 100%; border-radius: 50%; }

/* Oval */
.zh2o-tm-shape-oval .zh2o-tm-photo-wrap { width: 120px; height: 160px; }
.zh2o-tm-shape-oval .zh2o-tm-photo-link { width: 100%; height: 100%; overflow: hidden; border-radius: 50% / 38%; }
.zh2o-tm-shape-oval .zh2o-tm-photo      { width: 100%; height: 100%; border-radius: 50% / 38%; }

/* Landscape */
.zh2o-tm-shape-landscape .zh2o-tm-photo-wrap { width: 100%; max-width: 280px; height: 160px; }
.zh2o-tm-shape-landscape .zh2o-tm-photo-link { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.zh2o-tm-shape-landscape .zh2o-tm-photo      { width: 100%; height: 100%; border-radius: 12px; }

/* Placeholder avatar */
.zh2o-tm-photo-placeholder {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--zh2o-tm-accent);
  font-size: 2.6rem; font-weight: 700;
}

/* ── Card info ──────────────────────────────────────────── */
.zh2o-tm-info { width: 100%; }

.zh2o-tm-name {
  margin: 0 0 6px;
  font-size: 1.15rem; font-weight: 700; line-height: 1.25;
}
.zh2o-tm-name a {
  color: var(--zh2o-tm-text); text-decoration: none;
  transition: color var(--zh2o-tm-transition);
}
.zh2o-tm-name a:hover { color: var(--zh2o-tm-accent); }

.zh2o-tm-role {
  margin: 0 0 12px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--zh2o-tm-accent);
  text-transform: uppercase; letter-spacing: 0.07em;
}

.zh2o-tm-quote {
  margin: 0 0 14px;
  padding: 10px 16px;
  font-size: 0.88rem; font-style: italic;
  color: var(--zh2o-tm-muted);
  border-left: 3px solid var(--zh2o-tm-accent);
  text-align: left;
  background: rgba(79,70,229,0.04);
  border-radius: 0 8px 8px 0;
}

.zh2o-tm-bio-excerpt {
  margin: 0 0 12px;
  font-size: 0.9rem; color: var(--zh2o-tm-muted); line-height: 1.65;
}

.zh2o-tm-location,
.zh2o-tm-email,
.zh2o-tm-phone {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; margin: 5px 0;
  font-size: 0.84rem; color: var(--zh2o-tm-muted);
}
.zh2o-tm-email a,
.zh2o-tm-phone a {
  color: var(--zh2o-tm-muted); text-decoration: none;
  transition: color var(--zh2o-tm-transition);
}
.zh2o-tm-email a:hover,
.zh2o-tm-phone a:hover { color: var(--zh2o-tm-accent); }

/* ── Social icons ───────────────────────────────────────── */
.zh2o-tm-social {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.zh2o-tm-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--zh2o-tm-bg-flat);
  color: var(--zh2o-tm-muted);
  border: 1px solid var(--zh2o-tm-border);
  transition:
    background var(--zh2o-tm-transition),
    color var(--zh2o-tm-transition),
    border-color var(--zh2o-tm-transition),
    transform var(--zh2o-tm-transition);
  text-decoration: none;
}
.zh2o-tm-social-link:hover {
  background: var(--zh2o-tm-accent); color: #fff;
  border-color: var(--zh2o-tm-accent); transform: translateY(-2px);
}

/* ── Profile page ───────────────────────────────────────── */
.zh2o-tm-profile-page {
  max-width: 880px; margin: 0 auto; padding: 44px 20px 64px;
}
.zh2o-tm-profile-container {
  background: var(--zh2o-tm-bg-card);
  border-radius: 18px;
  box-shadow: var(--zh2o-tm-shadow);
  overflow: hidden; margin-bottom: 24px;
}
.zh2o-tm-profile-header {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 44px 44px 36px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f9fafb 100%);
  border-bottom: 1px solid var(--zh2o-tm-border);
}
@media (max-width: 620px) {
  .zh2o-tm-profile-header {
    flex-direction: column; align-items: center;
    text-align: center; padding: 28px 20px;
  }
  .zh2o-tm-profile-social,
  .zh2o-tm-profile-contact { justify-content: center; }
}
.zh2o-tm-profile-photo-wrap {
  flex-shrink: 0; width: 180px; height: 180px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.zh2o-tm-profile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.zh2o-tm-placeholder-large { font-size: 4.5rem; }

.zh2o-tm-profile-intro { flex: 1; }
.zh2o-tm-profile-name  { margin: 0 0 6px; font-size: 2.1rem; font-weight: 800; color: var(--zh2o-tm-text); }
.zh2o-tm-profile-role  { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--zh2o-tm-accent); text-transform: uppercase; letter-spacing: 0.07em; }
.zh2o-tm-profile-location { display: flex; align-items: center; gap: 5px; margin: 0 0 16px; font-size: 0.92rem; color: var(--zh2o-tm-muted); }
.zh2o-tm-profile-social { margin-bottom: 18px; }
.zh2o-tm-profile-social .zh2o-tm-social-link { width: 44px; height: 44px; }

.zh2o-tm-profile-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.zh2o-tm-contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; background: var(--zh2o-tm-accent); color: #fff;
  border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  text-decoration: none;
  transition: opacity var(--zh2o-tm-transition), transform var(--zh2o-tm-transition);
}
.zh2o-tm-contact-btn:hover { opacity: 0.85; transform: translateY(-1px); color: #fff; }

.zh2o-tm-profile-quote {
  margin: 0; padding: 26px 44px;
  font-size: 1.12rem; font-style: italic; color: var(--zh2o-tm-muted);
  border-left: 4px solid var(--zh2o-tm-accent);
  background: rgba(79,70,229,0.04);
}
.zh2o-tm-profile-quote p { margin: 0; }

.zh2o-tm-profile-bio {
  padding: 34px 44px; font-size: 1rem; line-height: 1.8; color: var(--zh2o-tm-text);
}
@media (max-width: 620px) {
  .zh2o-tm-profile-quote,
  .zh2o-tm-profile-bio { padding-left: 20px; padding-right: 20px; }
}

.zh2o-tm-profile-back a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; color: var(--zh2o-tm-muted); text-decoration: none;
  transition: color var(--zh2o-tm-transition);
}
.zh2o-tm-profile-back a:hover { color: var(--zh2o-tm-accent); }

/* Accessibility */
.zh2o-tm-sr-only {
  position: absolute; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  overflow: hidden; white-space: nowrap;
}
.zh2o-tm-no-members { color: var(--zh2o-tm-muted); font-style: italic; }
