/* Team Poster Viewer Styles */
.TeamPosterViewer {
  margin: 40px auto;
  max-width: 1020px;
}

/* Tab navigation - SegmentedControl style */
.TeamPosterViewer__tabs {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.08);
  padding: 4px;
  margin: 0 auto;
  width: fit-content;
}

.TeamPosterViewer__tab {
  margin-left: 4px;
  padding: 8px 24px 10px;
  font-size: 24px;
  font-weight: 900;
  color: #000;
  background-color: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
  min-width: 150px;
  min-height: 54px;
}

.TeamPosterViewer__tab:first-child {
  margin-left: 0;
}

.TeamPosterViewer__tab:hover,
.TeamPosterViewer__tab.active {
  color: #fff;
  background-color: #000;
}

/* Wrapper to center the tabs */
.TeamPosterViewer__tabsWrapper {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 24px;
}

/* Content panels */
.TeamPosterViewer__content {
  position: relative;
  min-height: 400px;
}

.TeamPosterViewer__panel {
  display: none;
  text-align: center;
  position: relative;
}

.TeamPosterViewer__panel.active {
  display: block;
}

.TeamPosterViewer__panel img {
  max-width: 1020px;
  width: 100%;
  height: auto;
  max-height: 724px;
  object-fit: contain;
}

/* Slider for yuka team */
.TeamPosterViewer__slider {
  position: relative;
  max-width: 1020px;
  width: 100%;
  height: 724px;
  overflow: hidden;
  margin: 0 auto;
}

.TeamPosterViewer__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.TeamPosterViewer__track img {
  flex-shrink: 0;
  width: 100%;
  max-width: 1020px;
  height: auto;
  max-height: 724px;
  object-fit: contain;
}

/* Navigation buttons */
.TeamPosterViewer__nav {
  position: absolute;
  bottom: -8%;
  left: 0;
  right: 0;
  transform: translateY(-50%) translateX(-5%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  width: 110%;
  pointer-events: none;
}

.TeamPosterViewer__navBtn {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 9999px;
  transition: transform 0.23s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 20px;
  font-weight: 900;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px 0 rgba(16, 16, 16, 0.3);
  font-family: 'Noto Sans JP', sans-serif;
  color: #000;
  pointer-events: auto;
}

.TeamPosterViewer__navBtn:before {
  display: inline-block;
  content: '';
  display: block;
  width: 11px;
  height: 20px;
  background-image: url('/toilet-kaiteki/images/wp-theme/chevron.svg');
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(0px, 1px);
}

.TeamPosterViewer__navBtn.prev:before {
  transform: scaleX(-1) translate(0px, 1px);
  margin-right: 12px;
}

.TeamPosterViewer__navBtn.next {
  flex-direction: row-reverse;
}

.TeamPosterViewer__navBtn.next:before {
  margin-left: 12px;
}

.TeamPosterViewer__navBtn:hover {
  transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 799px) {
  .TeamPosterViewer__tabs {
    gap: 5px;
  }

  .TeamPosterViewer__tab {
    padding: 10px 20px;
    font-size: 18px;
    min-width: auto;
  }

  .TeamPosterViewer__content {
    min-height: auto;
    width: 92%;
    margin: 0 auto;
  }

  .TeamPosterViewer__slider {
    height: auto;
  }

  .TeamPosterViewer__panel img,
  .TeamPosterViewer__slider img {
    max-height: 327px;
  }

  .TeamPosterViewer__nav {
    padding: 0 10px;
    bottom: -22%;
  }

  .TeamPosterViewer__navBtn {
    padding: 10px 16px;
    font-size: 16px;
  }

  .TeamPosterViewer__navBtn:before {
    width: 9px;
    height: 16px;
  }
}

/* Progress indicators (dots) */
.TeamPosterViewer__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.TeamPosterViewer__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.TeamPosterViewer__indicator.active {
  background-color: #000;
}

.TeamPosterViewer__indicator:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 799px) {
  .TeamPosterViewer__indicators {
    bottom: 15px;
  }
  
  .TeamPosterViewer__indicator {
    width: 8px;
    height: 8px;
  }
}
