/* Code Review Carousel & Animations Stylesheet - CloudAEye */

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan, #0e8da7);
  background: #ffffff;
  color: var(--cyan, #0e8da7);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(14, 66, 85, 0.08);
}

.carousel-btn:hover {
  background: var(--cyan, #0e8da7);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(14, 66, 85, 0.16);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.agents-carousel-section {
  background: var(--paper, #f5f9fa);
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-top: 1px solid var(--line, #cbdce2);
  border-bottom: 1px solid var(--line, #cbdce2);
}

.agents-carousel-section .section-title {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  color: var(--ink, #091522);
  text-align: center;
}

.agents-carousel-section .intro-text {
  max-width: 820px;
  margin: 0 auto 2rem;
  color: var(--ink-soft, #435768);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

.agents-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.agents-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.agents-dash-list {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.agents-dash {
  width: 4rem;
  height: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line, #cbdce2);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 200ms ease;
}

.agents-dash.is-active {
  background: var(--cyan, #0e8da7);
  border-color: var(--cyan, #0e8da7);
  box-shadow: 0 0 10px rgba(14, 141, 167, 0.35);
}

.agents-autoplay-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  border: 1px solid var(--line, #cbdce2);
  background: #ffffff;
  color: var(--ink, #091522);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 180ms ease;
  display: grid;
  place-items: center;
}

.agents-autoplay-toggle:hover {
  background: var(--ice, #e8f3f6);
  border-color: var(--cyan, #0e8da7);
}

.agents-autoplay-toggle:focus-visible,
.agents-dash:focus-visible {
  outline: 2px solid var(--cyan, #0e8da7);
  outline-offset: 2px;
}

.agents-carousel {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}

.agents-carousel-inner {
  width: 100%;
  display: grid;
}

.agents-slide {
  background: var(--surface, #ffffff);
  border-radius: 16px;
  border: 1px solid var(--line, #cbdce2);
  padding: 2rem 2.25rem;
  display: flex;
  gap: 2rem;
  align-items: stretch;
  box-shadow: 0 16px 44px rgba(14, 66, 85, 0.08);
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.agents-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.agents-slide-content {
  flex: 1;
}

.agents-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.72rem var(--mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-dark, #086b80);
  background: var(--cyan-soft, #dff5f8);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.agents-slide-content h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--ink, #091522);
  letter-spacing: -0.02em;
}

.agents-slide-content p {
  color: var(--ink-soft, #435768);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.agents-slide-visual {
  flex: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.agents-slide-visual img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 21, 34, 0.08);
}

/* Stacked layout */
.agents-slide--stacked {
  flex-direction: column;
  align-items: stretch;
}

.agents-slide-visual-top {
  flex: 0 0 auto;
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.agents-slide--stacked .agents-slide-visual-top > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: calc(52vh * 16 / 9);
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 12px;
}

.agents-slide--stacked .agents-slide-visual-top > iframe {
  width: 100%;
  height: 48vh;
  max-height: 480px;
  min-height: 340px;
  border: 1px solid var(--line, #cbdce2);
  border-radius: 12px;
  background: #f1f5f9;
  box-shadow: 0 8px 24px rgba(9, 21, 34, 0.06);
  display: block;
  margin: 0 auto;
}

.agents-slide-content-bottom {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .agents-carousel-container {
    flex-direction: column;
  }
  .carousel-btn {
    display: none;
  }
  .agents-slide {
    padding: 1.25rem;
  }
}
