/**
 * Panha Hero Slider Stylesheet
 * Responsive, accessible, unframed cinematic media carousel
 * 
 * Bounded dimensions: clamp(420px, 62svh, 620px) desktop, clamp(420px, 62svh, 560px) mobile
 * Strict Policy: Zero gradient overlay. High-contrast typography via text-shadow.
 */

.panha-hero-slider {
  position: relative;
  width: 100%;
  height: clamp(420px, 62svh, 620px);
  overflow: hidden;
  background-color: #0b110e;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .panha-hero-slider {
    height: clamp(640px, 72svh, 680px);
    margin-bottom: 2rem;
  }
}

/* Viewport & Track */
.panha-hero-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.panha-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide Items */
.panha-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.panha-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.panha-hero-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.panha-hero-media video,
.panha-hero-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Focal Points */
.panha-focal-buddha {
  object-position: 30% 50%;
}

@media (max-width: 768px) {
  .panha-focal-buddha {
    object-position: 28% 45%;
  }
}

.panha-focal-lotus {
  object-position: 50% 40%;
}

.panha-focal-chanhdien {
  object-position: 50% 50%;
}

.panha-focal-lotus-gold {
  object-position: 50% 38%;
}

/* Poster fallback underneath video */
.panha-hero-fallback-poster {
  z-index: 1;
}

.panha-hero-video {
  z-index: 2;
}

/* Content Overlay: Zero gradient as mandated by Codex governance */
.panha-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-bottom: 4rem;
  background: transparent;
  pointer-events: none;
}

@media (max-width: 768px) {
  .panha-hero-overlay {
    background: transparent;
    align-items: flex-end;
    padding-bottom: 4.5rem;
  }
}

.panha-hero-wrap {
  width: 100%;
  pointer-events: auto;
}

.panha-hero-copy {
  max-width: 580px;
  color: #f7f9f8;
}

.panha-hero-copy .eyebrow {
  color: #f0c05a;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.panha-hero-copy h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 1);
}

.panha-hero-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: #f0f5ee;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.panha-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.panha-hero-btn:hover {
  transform: translateY(-2px);
}

.panha-hero-btn-primary {
  background: #d49826;
  color: #0b110e;
  border: 1px solid #e0aa3e;
}

.panha-hero-btn-outline {
  background: rgba(11, 17, 14, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panha-hero-badges {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panha-hero-badges span {
  display: inline-block;
  background: rgba(11, 17, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f0f5ee;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Controls Bar */
.panha-hero-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.panha-hero-ctrl-group,
.panha-hero-dots {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panha-hero-ctrl {
  background: rgba(11, 17, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.panha-hero-ctrl:hover,
.panha-hero-ctrl:focus-visible {
  background: rgba(223, 170, 67, 0.95);
  color: #0b110e;
  border-color: #dfaa43;
  transform: scale(1.08);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.panha-hero-dots {
  background: rgba(11, 17, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

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

.panha-hero-dot.is-active {
  width: 24px;
  border-radius: 9999px;
  background: #dfaa43;
}

.panha-hero-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Accessibility screen-reader only */
.panha-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;
}

/* Reduced Motion & Save Data */
@media (prefers-reduced-motion: reduce) {
  .panha-hero-slide {
    transition: none !important;
  }
}
