/* ==========================================================================
   THE ACTIVIST TV — RESPONSIVE AD BANNERS, AUTO-SLIDER & FULLSCREEN LIGHTBOX
   ========================================================================== */

/* --- Outer Containers --- */
.atv-ad-section {
  width: 100%;
  position: relative;
  z-index: 10;
}

.atv-ad-header {
  background: #ffffff;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.atv-ad-news-detail {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.atv-ad-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
}

.atv-ad-label .badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

/* --- Slider Box --- */
.atv-ad-slider-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #090d16;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  user-select: none;
}

/* Responsive aspect ratios */
.atv-ad-header .atv-ad-slider-container {
  height: 120px;
}
@media (min-width: 576px) {
  .atv-ad-header .atv-ad-slider-container { height: 140px; }
}
@media (min-width: 992px) {
  .atv-ad-header .atv-ad-slider-container { height: 170px; }
}
@media (min-width: 1200px) {
  .atv-ad-header .atv-ad-slider-container { height: 190px; }
}

.atv-ad-news-detail .atv-ad-slider-container {
  height: 200px;
}
@media (min-width: 768px) {
  .atv-ad-news-detail .atv-ad-slider-container { height: 260px; }
}
@media (min-width: 992px) {
  .atv-ad-news-detail .atv-ad-slider-container { height: 300px; }
}

/* --- Slide Track & Slides --- */
.atv-ad-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.atv-ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 1;
}

.atv-ad-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image Wrapper with Blurred Background Backdrop for perfect look on any ratio */
.atv-ad-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060911;
}

.atv-ad-bg-blur {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.45);
  opacity: 0.85;
  transform: scale(1.1);
  pointer-events: none;
}

.atv-ad-image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.atv-ad-image-wrapper:hover .atv-ad-image {
  transform: scale(1.025);
}

/* Zoom Hint Badge */
.atv-ad-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.atv-ad-image-wrapper:hover .atv-ad-zoom-hint {
  opacity: 1;
  background: rgba(201, 1, 4, 0.9);
  transform: translateY(-2px);
}

/* --- Prev / Next Navigation Buttons --- */
.atv-ad-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.atv-ad-slider-container:hover .atv-ad-nav-btn {
  opacity: 0.85;
}

.atv-ad-nav-btn:hover {
  opacity: 1 !important;
  background: #c90104;
  transform: translateY(-50%) scale(1.08);
}

.atv-ad-prev { left: 12px; }
.atv-ad-next { right: 12px; }

@media (max-width: 768px) {
  .atv-ad-nav-btn {
    opacity: 0.75;
    width: 30px;
    height: 30px;
  }
}

/* --- Slide Indicators (Dots) --- */
.atv-ad-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.atv-ad-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.atv-ad-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.atv-ad-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #c90104;
}

/* ==========================================================================
   FULLSCREEN LIGHTBOX OVERLAY
   ========================================================================== */
.atv-ad-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.atv-ad-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.atv-ad-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.atv-ad-lightbox-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 94vh;
  margin: auto;
  pointer-events: none;
}

.atv-ad-lightbox-dialog > * {
  pointer-events: auto;
}

/* Close Button */
.atv-ad-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background 0.2s ease, transform 0.2s ease;
}

.atv-ad-lightbox-close:hover {
  background: #c90104;
  border-color: #c90104;
  transform: rotate(90deg) scale(1.08);
}

/* Fullscreen Nav Arrows */
.atv-ad-lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  transition: all 0.2s ease;
}

.atv-ad-lightbox-arrow:hover {
  background: #c90104;
  border-color: #c90104;
  transform: translateY(-50%) scale(1.12);
}

.atv-ad-lightbox-prev { left: 24px; }
.atv-ad-lightbox-next { right: 24px; }

@media (max-width: 768px) {
  .atv-ad-lightbox-arrow {
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.85);
  }
  .atv-ad-lightbox-prev { left: 10px; }
  .atv-ad-lightbox-next { right: 10px; }
}

/* Lightbox Image Figure */
.atv-ad-lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.atv-ad-lightbox.is-open .atv-ad-lightbox-figure {
  transform: scale(1);
}

.atv-ad-lightbox-image {
  max-width: 90vw;
  max-height: calc(85vh - 75px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: #000;
}

/* Lightbox Caption Bar */
.atv-ad-lightbox-caption {
  width: 100%;
  max-width: 90vw;
  margin-top: 12px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.atv-ad-lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.atv-ad-lightbox-advertiser {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 2px;
}

.atv-ad-lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c90104;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.atv-ad-lightbox-action-btn:hover {
  background: #e00105;
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .atv-ad-lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .atv-ad-lightbox-action-btn {
    width: 100%;
    justify-content: center;
  }
}
