/* Team Member Bio Modal */
.team-bio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 0;
}

.team-bio-modal.active {
  opacity: 1;
  visibility: visible;
}

.team-bio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.team-bio-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background-color: var(--color-bg-base);
  border-radius: 0;
  z-index: 10000;
  max-height: 100vh;
  height: 100%;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease;
  margin: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.team-bio-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--color-bg-gray-light);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--color-text-primary-100);
}

.team-bio-modal-close:hover {
  transform: scale(1.1);
  background-color: var(--color-bg-gray);
}

.team-bio-modal-close svg {
  width: 20px;
  height: 20px;
}

.team-bio-modal-body {
  display: flex;
  flex-direction: row;
  gap: 80px;
  padding: 60px 80px;
}

.team-bio-modal-image-wrapper {
  flex-shrink: 0;
  width: 350px;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-gray-light);
  position: relative;
}

.team-bio-modal-image-wrapper.loading {
  background: linear-gradient(
    90deg,
    var(--color-bg-gray-light) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    var(--color-bg-gray-light) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.team-bio-modal-image-wrapper.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-text-primary-100);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.team-bio-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-bio-modal-image[src]:not([src=""]) {
  opacity: 1;
}

.team-bio-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-bio-modal-name {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: 3rem;
  line-height: 120%;
  color: var(--color-text-primary-100);
  margin: 0;
  text-transform: uppercase;
}

.team-bio-modal-title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: 1.75rem;
  line-height: 150%;
  color: var(--color-text-secondary-100);
  margin: 0;
}

.team-bio-modal-bio-list {
  list-style: none;
  padding: 0;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-bio-modal-bio-list li {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: 1.25rem;
  line-height: 150%;
  color: var(--color-text-secondary-100);
  position: relative;
  padding-left: 20px;
}

.team-bio-modal-bio-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-text-secondary-100);
}

/* Mobile Styles for Modal */
@media (max-width: 767px) {
  .team-bio-modal {
    padding: 0;
    justify-content: center;
  }

  .team-bio-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    animation: slideInUp 0.3s ease;
  }

  @keyframes slideInUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .team-bio-modal-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }

  .team-bio-modal-close svg {
    width: 20px;
    height: 20px;
  }

  .team-bio-modal-body {
    flex-direction: column;
    gap: 24px;
    padding: 80px 24px 24px 24px;
  }

  .team-bio-modal-image-wrapper {
    width: 100%;
    height: 420px;
  }

  .team-bio-modal-name {
    font-size: 2rem;
  }

  .team-bio-modal-title {
    font-size: 1.25rem;
  }

  .team-bio-modal-bio-list li {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .team-bio-modal-body {
    gap: 40px;
  }
}
