/* Extra CSS for Taubyte Documentation */

/* Custom styling for code blocks */
.highlight .hll {
  background-color: var(--md-code-hl-color--light);
}

/* Custom styling for admonitions */
.md-typeset .admonition.note {
  border-color: var(--md-primary-fg-color);
}

/* Custom styling for navigation */
.md-nav__link--active {
  font-weight: 600;
}

/* Custom styling for tables */
.md-typeset table:not([class]) {
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* Custom styling for buttons */
.md-button {
  border-radius: 4px;
}

/* Logo adjustments */
.md-header__button.md-logo img {
  height: 32px;
  width: auto;
}

/* Accent color override (adjust hex to match Taubyte green exactly) */
:root {
  --md-accent-fg-color: #00c853; /* Taubyte green (placeholder) */
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #00c853;
}

/* --- Carousel --- */
.tb-carousel {
  position: relative;
  margin: 1.25rem 0 2rem 0;
  border-radius: 16px; /* slightly larger radius */
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  background: var(--md-default-bg-color, #111);
}

.tb-carousel__viewport {
  position: relative;
  width: 100%;
  height: auto; /* will be set dynamically for smooth fades */
}

.tb-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease; /* smoother fade */
}

.tb-carousel__slide.is-active {
  opacity: 1;
}

.tb-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hide handles per design request */
.tb-carousel__control {
  display: none;
}

.tb-carousel__control--prev {
  left: 12px;
}
.tb-carousel__control--next {
  right: 12px;
}

.tb-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tb-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.tb-carousel__dot.is-active {
  background: var(--md-accent-fg-color, #00c853);
}
