/* =====================================================
   Myanmar GSS — Premium Image Carousel
   Glassmorphism UI/UX Edition
   Minimal controls: separate glass arrows + unboxed dots
===================================================== */

premium-carousel {
  --pc-bg: #121014;
  --pc-accent: #caa46a;
  --pc-accent-glow: rgba(202, 164, 106, 0.45);
  --pc-duration: 750ms;
  --pc-radius: 20px;

  /* Glassmorphic tokens */
  --pc-glass-bg: rgba(25, 22, 28, 0.45);
  --pc-glass-border: rgba(255, 255, 255, 0.18);
  --pc-glass-highlight: rgba(255, 255, 255, 0.08);
  --pc-glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --pc-glass-blur: blur(14px);

  display: block;
  width: 100%;
  min-width: 0;
}

premium-carousel,
premium-carousel * {
  box-sizing: border-box;
}

premium-carousel .pc {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pc-radius);
  background: var(--pc-bg);
  box-shadow: var(--pc-glass-shadow);
}

premium-carousel .stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pc-bg);
}

premium-carousel .slides {
  position: absolute;
  inset: 0;
}

premium-carousel .slide {
  position: absolute;
  inset: 0;
  z-index: 0;

  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: none;
  filter: none;

  transition:
    opacity var(--pc-duration) ease,
    visibility 0s linear var(--pc-duration);
}

premium-carousel .slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity var(--pc-duration) ease,
    visibility 0s;
}

premium-carousel .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  user-select: none;
  -webkit-user-drag: none;
}

/* ------------------------------
   Navigation dock — no outer box
------------------------------ */

premium-carousel .dock {
  position: absolute;
  z-index: 5;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;

  padding: 0;
  margin: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  pointer-events: none;
}

premium-carousel .dock > * {
  pointer-events: auto;
}

premium-carousel .dock > .arrow:first-child {
  justify-self: start;
}

premium-carousel .dock > .indicators {
  justify-self: center;
}

premium-carousel .dock > .arrow:last-child {
  justify-self: end;
}

/* ------------------------------
   Individual glass arrow buttons
------------------------------ */

premium-carousel .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;

  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;

  color: #fff;
  background: rgba(28, 30, 40, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  font: inherit;
  line-height: 1;
  cursor: pointer;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

/* Bootstrap Icons */
premium-carousel .arrow i {
  display: block;
  width: auto;
  height: auto;
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

premium-carousel .arrow:hover:not(:disabled) {
  color: #fff;
  background: rgba(200, 16, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

premium-carousel .arrow:active:not(:disabled) {
  transform: scale(0.95);
}

premium-carousel .arrow:focus-visible,
premium-carousel .dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

premium-carousel .arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------
   Dots only — no background pill
------------------------------ */

premium-carousel .indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  max-width: calc(100% - 116px);
  padding: 0;
  margin: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

premium-carousel .dot {
  display: block;
  flex: 0 0 8px;

  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);

  cursor: pointer;

  transition:
    width 220ms ease,
    flex-basis 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease;
}

premium-carousel .dot:hover {
  background: #fff;
}

premium-carousel .dot.is-active {
  flex-basis: 24px;
  width: 24px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ------------------------------
   Optional caption (Glass pill)
------------------------------ */

premium-carousel .caption {
  position: absolute;
  z-index: 3;
  bottom: 84px;
  left: 20px;

  margin: 0;
  padding: 8px 16px;
  max-width: 80%;

  border: 1px solid var(--pc-glass-border);
  border-radius: 12px;
  background: var(--pc-glass-bg);
  backdrop-filter: var(--pc-glass-blur);
  -webkit-backdrop-filter: var(--pc-glass-blur);
  box-shadow: var(--pc-glass-shadow);

  color: #fff;
  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 0s linear 300ms;
}

premium-carousel .caption.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ------------------------------
   Screen-reader text
------------------------------ */

premium-carousel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 700px) {
  premium-carousel .stage {
    aspect-ratio: 4 / 3;
  }

  premium-carousel .dock {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 10px;
  }

  premium-carousel .arrow {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  premium-carousel .arrow i {
    font-size: 13px;
  }

  premium-carousel .indicators {
    gap: 6px;
    padding: 0;
  }

  premium-carousel .dot {
    flex-basis: 6px;
    width: 6px;
    min-width: 6px;
    height: 6px;
    min-height: 6px;
  }

  premium-carousel .dot.is-active {
    flex-basis: 18px;
    width: 18px;
  }

  premium-carousel .caption {
    left: 12px;
    bottom: 64px;
    max-width: calc(100% - 24px);
    font-size: 12px;
  }
}

/* ------------------------------
   Reduced motion
------------------------------ */

@media (prefers-reduced-motion: reduce) {
  premium-carousel .slide,
  premium-carousel .slide.is-active,
  premium-carousel .arrow,
  premium-carousel .dot,
  premium-carousel .caption {
    transition: none !important;
    transform: none !important;
  }
}