/*
V7-HEADER
Title: Buktika - Teams Member Profile Styles
Filename: assets/css/teams/teams-member-profile.css
Version: v1.1.5
Issued: 2026-04-04
Owner: Buktika - Binka
Purpose: Main styles for the Teams member profile shell.
*/

.page-teams-member-profile {
  --page-bg:            var(--sdx-color-shell-bg);
  --page-primary:       var(--sdx-color-green-deep);
  --page-secondary:     var(--sdx-color-mama-amber);
  --page-accent:        var(--sdx-color-mama-amber);
  --page-depth:         var(--sdx-color-stem-olive);
  --page-dark-base:     var(--sdx-color-livingtower-dark-base);
  --page-dark-surface:  var(--sdx-color-livingtower-dark-surface);
  --hero-vignette-from: rgba(46, 93, 58, 0.20);
  --hero-vignette-to:   rgba(46, 93, 58, 0);
  background-color: var(--page-bg);
  color: var(--fg);
}

.page-teams-member-profile main {
  padding: 3.5rem 1.5rem 4rem;
}

.page-teams-member-profile .hero-wrap {
  margin-bottom: 1.5rem;
  min-height: 850px;
  position: relative;
  isolation: isolate;
}

.page-teams-member-profile .hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 850px;
  padding: 3rem 1.5rem;
}

.page-teams-member-profile .hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--hero-vignette-from) 0%,
    var(--hero-vignette-to)   32%
  );
}

.page-teams-member-profile .hero-grid { width: min(1160px, 92vw); margin-inline: auto; }

.page-teams-member-profile .hero-body {
  text-align: center;
  padding: 1.5rem 0.625rem;
  position: relative;
  z-index: 5;
}

.page-teams-member-profile .hero .headline {
  margin: 0;
  text-align: center;
  color: var(--sdx-color-white);
  font-family: var(--headline-font);
  font-size: clamp(2.625rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.85),
    0 2px 8px  rgba(0, 0, 0, 0.70),
    0 1px 3px  rgba(0, 0, 0, 0.50);
}

.page-teams-member-profile .hero .intro {
  margin-bottom: 1.5rem;
}

.page-teams-member-profile .hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0;
}

@media (max-width: 33.75rem) { /* 540px */
  .page-teams-member-profile .hero .cta {
    flex-direction: column;
    align-items: center;
  }
}

.page-teams-member-profile .portrait-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: start;
}

.page-teams-member-profile .portrait-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.page-teams-member-profile .bio-card {
  display: flex;
  flex-direction: column;
}

.page-teams-member-profile .bio-body {
  font-size: var(--body);
  line-height: 1.75;
  color: var(--fg);
  flex: 1;
}

.page-teams-member-profile .bio-body p {
  margin: 0 0 1.5rem;
}

.page-teams-member-profile .bio-body p:last-child {
  margin-bottom: 0;
}

.page-teams-member-profile .bio-body h3 {
  font-family: var(--headline-font);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 0.625rem;
  line-height: 1.25;
}

.page-teams-member-profile .bio-card .bio-slogan {
  margin-top: auto;
  padding-top: 1rem;
  font-style: italic;
  color: var(--muted);
  font-size: var(--small);
}

.page-teams-member-profile .portrait-card:hover {
  transform: none !important;
  box-shadow:
    inset 0 0 0 3px var(--page-accent),
    var(--card-shadow);
}

.page-teams-member-profile .sdx-card-section {
  padding: 3.5rem 2.5rem;
  margin-bottom: 2rem;
}

.page-teams-member-profile .sdx-card-section > h2,
.page-teams-member-profile .section-header .section-title {
  margin-bottom: 2rem;
}

@media (max-width: 48rem) { /* 768px */
  .page-teams-member-profile .portrait-grid {
    grid-template-columns: 1fr;
  }
}

.page-teams-member-profile .gallery3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.page-teams-member-profile .gallery3 .sdx-figure {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.page-teams-member-profile .gallery3 .sdx-figure:hover {
  transform: translateY(-0.1875rem);
  box-shadow: var(--card-shadow-hover);
}

.page-teams-member-profile .gallery3 .media-thumb {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  width: 100%;
}

.page-teams-member-profile .gallery3 .media-thumb img,
.page-teams-member-profile .gallery3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.30s ease;
}

.page-teams-member-profile .gallery3 .media-thumb:hover img {
  transform: scale(1.03);
}

.page-teams-member-profile .gallery3 .sdx-figure-caption {
  margin-top: 0;
  padding: 0.5rem 0.75rem 0.75rem;
  color: var(--muted);
  font-size: var(--small);
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 48rem) {
  .page-teams-member-profile .gallery3 {
    grid-template-columns: 1fr;
  }
}

.page-teams-member-profile .btn-hero-primary {
  background: linear-gradient(135deg, var(--sdx-color-mama-amber) 0%, var(--sdx-color-stem-olive) 100%);
  color: var(--sdx-color-white);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.50),
    0 2px 8px  rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.page-teams-member-profile .btn-hero-primary:hover {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.60),
    0 3px 10px rgba(0, 0, 0, 0.40),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30);
  color: var(--sdx-color-white);
}

.page-teams-member-profile .sdx-btn-primary {
  background: linear-gradient(135deg, var(--sdx-color-mama-amber) 0%, var(--sdx-color-stem-olive) 100%);
  color: var(--sdx-color-white);
}

.page-teams-member-profile .card .sdx-btn-primary {
  color: var(--sdx-color-white);
}

.page-teams-member-profile #section-contributions .card {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
}

.page-teams-member-profile .contributions-body {
  font-size: var(--body);
  line-height: 1.75;
  color: var(--fg);
}

.page-teams-member-profile .contributions-body p {
  margin: 0 0 1.5rem;
}

.page-teams-member-profile .contributions-body p:last-child {
  margin-bottom: 0;
}

.page-teams-member-profile .contributions-body h3 {
  font-family: var(--headline-font);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 0.625rem;
  line-height: 1.25;
}

.page-teams-member-profile #section-contributions .card .sdx-btn-primary {
  margin-top: auto;
  align-self: flex-start;
}

[data-theme="dark"] .page-teams-member-profile {
  background: var(--page-dark-base);
  color: var(--sdx-color-ui-dark-text);
}

[data-theme="dark"] .page-teams-member-profile .section-title,
[data-theme="dark"] .page-teams-member-profile .sdx-card-section > h2,
[data-theme="dark"] .page-teams-member-profile .section-header .section-title {
  border-bottom-color: rgba(from var(--page-accent) r g b / 0.40);
}

[data-theme="dark"] .page-teams-member-profile .card,
[data-theme="dark"] .page-teams-member-profile .card-surface {
  background: var(--page-dark-surface);
}
