/* /css/pages/team.css */

/* =========================
   Team Page
========================= */

:root {
  --fs-public-page-title: clamp(3rem, 6vw, 5rem);
  --fs-public-section-title: clamp(2.25rem, 4.5vw, 4rem);
  --fs-public-card-title: clamp(1.45rem, 2.3vw, 2.35rem);
  --fs-public-body-lg: clamp(1.02rem, 1.55vw, 1.2rem);
  --fs-public-body: 1rem;
  --fs-public-small: 0.82rem;
}

/* =========================
   Announcement Strip
========================= */

.announcement-strip {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 1rem;
  background: linear-gradient(90deg, #7454c7, #8b5fd8);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.announcement-strip span,
.announcement-strip #team-status-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.announcement-strip a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-strip a:hover,
.announcement-strip a:focus-visible {
  color: var(--color-accent-soft);
}

.team-voting-strip {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 1rem;
  background: linear-gradient(90deg, #7454c7, #8b5fd8);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.team-voting-strip:hover,
.team-voting-strip:focus-visible {
  color: var(--color-accent-soft);
}

/* =========================
   Page Shell / Hero
========================= */

.team-page {
  width: 100%;
  padding-bottom: var(--spacing-2xl);
}

.team-hero {
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.1rem 0 2rem;
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(242, 178, 74, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(11, 40, 82, 0.42), rgba(3, 23, 47, 0));
}

.team-hero-inner {
  width: min(820px, 100%);
  margin-inline: auto;
}

.team-celestial-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.team-sun-orb {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff7c0 0 10%, var(--color-accent-soft) 34%, var(--color-accent) 72%);
  box-shadow:
    0 0 18px rgba(242, 178, 74, 0.46),
    0 0 34px rgba(242, 178, 74, 0.18);
  animation: teamSunFloat 5.5s ease-in-out infinite;
}

.team-sun-orb::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(242, 178, 74, 0.92) 0deg 8deg,
      transparent 8deg 18deg
    );
  z-index: -1;
  animation: teamSunRays 12s linear infinite;
}

@keyframes teamSunFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-5px) rotate(8deg) scale(1.035);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes teamSunRays {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.team-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(3.35rem, 6vw, 5rem);
  line-height: 0.92;
  color: var(--color-accent-soft);
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.team-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-soft);
  font-size: var(--fs-public-body-lg);
  line-height: 1.55;
}

/* =========================
   Dynamic Loading State
========================= */

.team-load-status {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(229, 220, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(11, 40, 82, 0.4);
  color: var(--color-text-soft);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.team-load-status:empty {
  display: none;
}

.team-load-status.error {
  border-color: rgba(255, 130, 130, 0.35);
  background: rgba(120, 32, 32, 0.28);
  color: #ffd7d7;
}

.team-members-list {
  width: 100%;
}

/* =========================
   Team Feature Sections
========================= */

.team-feature {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto clamp(2.75rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
}

.team-feature:last-child {
  margin-bottom: 0;
}

.team-feature-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

/* =========================
   Shared Panels
========================= */

.team-image-panel,
.team-placeholder-panel {
  width: min(100%, 430px);
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 75, 137, 0.72), rgba(7, 31, 64, 0.94));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.team-image-panel,
.team-placeholder-panel {
  justify-self: start;
}

.team-feature-reverse .team-image-panel,
.team-feature-reverse .team-placeholder-panel {
  justify-self: end;
}

.team-feature:not(.team-feature-sun) .team-image-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.team-feature:not(.team-feature-sun) .team-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

/* =========================
   Sun Image Treatment
========================= */

.team-feature-sun {
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
}

.team-feature-sun .team-image-panel {
  width: min(100%, 500px);
  min-height: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  justify-self: start;
}

.team-feature-sun .team-image-panel::after {
  display: none;
}

.team-feature-sun .team-feature-image {
  display: block;
  width: min(100%, 500px);
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.18),
    0 0 34px rgba(242, 178, 74, 0.08);
}

/* =========================
   Placeholder Panels
========================= */

.team-placeholder-panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(242, 178, 74, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(18, 75, 137, 0.78), rgba(7, 31, 64, 0.96));
}

.team-placeholder-panel span {
  max-width: 10ch;
  padding: 1rem;
  color: var(--color-accent-soft);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

/* =========================
   Copy Panels
========================= */

.team-copy-panel {
  color: var(--color-text-soft);
}

.team-eyebrow {
  width: fit-content;
  margin: 0 0 0.85rem;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(126, 97, 191, 0.32);
  border: 1px solid rgba(229, 220, 255, 0.22);
  color: var(--color-accent-soft);
  font-size: var(--fs-public-small);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.team-feature-sun .team-eyebrow::after,
.team-feature-moon .team-eyebrow::after,
.team-feature-star .team-eyebrow::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(242, 178, 74, 0.12);
  border: 1px solid rgba(242, 178, 74, 0.25);
  color: var(--color-accent-soft);
  font-size: 0.78rem;
  line-height: 1;
  flex: 0 0 1.15rem;
  box-shadow: 0 0 12px rgba(242, 178, 74, 0.12);
}

.team-feature-sun .team-eyebrow::after {
  content: "☀";
  font-size: 0.72rem;
}

.team-feature-moon .team-eyebrow::after {
  content: "☾";
  font-size: 0.8rem;
}

.team-feature-star .team-eyebrow::after {
  content: "✦";
  font-size: 0.72rem;
}

.team-copy-panel h2 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.1vw, 3.75rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.team-copy-panel p:not(.team-eyebrow) {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  font-size: var(--fs-public-body);
  line-height: 1.62;
  max-width: 62ch;
}

.team-copy-panel p:last-child {
  margin-bottom: 0;
}

/* =========================
   Section-Specific Accent Glows
========================= */

.team-feature-moon .team-image-panel,
.team-feature-moon .team-placeholder-panel {
  box-shadow:
    var(--shadow-card),
    0 0 34px rgba(126, 97, 191, 0.1);
}

.team-feature-star .team-image-panel,
.team-feature-star .team-placeholder-panel {
  box-shadow:
    var(--shadow-card),
    0 0 34px rgba(248, 220, 165, 0.08);
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .team-hero {
    padding: 2.2rem 0 1.9rem;
  }

  .team-feature,
  .team-feature-sun,
  .team-feature-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-feature-reverse .team-copy-panel {
    order: 2;
  }

  .team-feature-reverse .team-image-panel,
  .team-feature-reverse .team-placeholder-panel {
    order: 1;
  }

  .team-image-panel,
  .team-placeholder-panel {
    width: 100%;
    max-width: 460px;
    justify-self: center;
    min-height: 330px;
  }

  .team-feature-reverse .team-image-panel,
  .team-feature-reverse .team-placeholder-panel {
    justify-self: center;
  }

  .team-feature:not(.team-feature-sun) .team-feature-image {
    min-height: 330px;
  }

  .team-feature-sun .team-image-panel {
    width: 100%;
    max-width: 540px;
    justify-self: center;
  }

  .team-feature-sun .team-feature-image {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
  }

  .team-copy-panel {
    text-align: center;
  }

  .team-copy-panel p:not(.team-eyebrow) {
    max-width: 100%;
  }

  .team-eyebrow {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .announcement-strip,
  .team-voting-strip {
    flex-wrap: wrap;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .team-hero {
    padding: 2rem 0 1.8rem;
  }

  .team-sun-orb {
    width: 36px;
    height: 36px;
  }

  .team-sun-orb::before {
    inset: -8px;
  }

  .team-hero h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }

  .team-image-panel,
  .team-placeholder-panel {
    min-height: 280px;
  }

  .team-feature:not(.team-feature-sun) .team-feature-image {
    min-height: 280px;
  }

  .team-feature-sun .team-image-panel {
    min-height: 0;
  }

  .team-copy-panel h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .team-placeholder-panel span {
    font-size: 2.1rem;
  }

  .team-load-status {
    margin-bottom: 1rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-sun-orb,
  .team-sun-orb::before {
    animation: none;
  }
}