/* ==========================================================================
   SENAPATI BANKATI HANUMAN MANDIR - KASHI
   MEDIA SHOWCASE STYLES: 
   1. Dynamic Auto-Changing Photo Slideshow Card (with 4K Zoom Lightbox)
   2. Unified YouTube Video Player & Playlist Hub
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. AUTO-CHANGING PHOTO SLIDESHOW CARD                                      */
/* -------------------------------------------------------------------------- */
.slideshow-card-wrapper {
  max-width: 1050px;
  margin: 0 auto 50px;
}

.temple-slideshow-card {
  position: relative;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  background: var(--bg-card, #FFFFFF);
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 24px 50px -12px rgba(185, 28, 28, 0.18),
    0 10px 30px -6px rgba(212, 175, 55, 0.25),
    inset 0 2px 0 #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .temple-slideshow-card {
  background: linear-gradient(180deg, #1A0C08 0%, #0F0604 100%);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 
    0 25px 60px -10px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(217, 56, 30, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.temple-slideshow-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 30px 60px -10px rgba(185, 28, 28, 0.22),
    0 14px 35px -4px rgba(212, 175, 55, 0.35);
}

/* Slideshow Stage Area */
.slideshow-stage {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #000000;
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .slideshow-stage {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .slideshow-stage {
    height: 270px;
  }
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.04);
}

.slideshow-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3D Top Floating Badges */
.slideshow-top-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.slideshow-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(185, 28, 28, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.slideshow-zoom-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 8, 4, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FDE047;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.slideshow-zoom-prompt:hover {
  transform: scale(1.05);
  background: rgba(20, 8, 4, 0.95);
  border-color: #FDE047;
}

/* Caption Bottom Overlay */
.slideshow-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 4, 2, 0.75) 40%, rgba(10, 4, 2, 0.94) 100%);
  color: #FFFFFF;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.slide-caption-content {
  pointer-events: auto;
}

.slide-category-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #FDE047;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.slide-title-text {
  font-family: var(--font-hindi-heading);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin: 0 0 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

@media (max-width: 600px) {
  .slide-title-text {
    font-size: 1.2rem;
  }
}

.slide-desc-text {
  font-size: 0.92rem;
  color: #E2CEB9;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.slide-counter-badge {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #FDE047;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.35);
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* Nav Arrows */
.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 8, 4, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #FDE047;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  outline: none;
  user-select: none;
}

.slideshow-nav-btn:hover {
  background: var(--gold-shimmer);
  color: #1A0D08;
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.slideshow-prev-btn { left: 16px; }
.slideshow-next-btn { right: 16px; }

/* Slide Progress Line */
.slideshow-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.slideshow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D9381E, #FDE047, #EA580C);
  transition: width 0.1s linear;
}

/* Dot Indicators Bar */
.slideshow-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card, #FFFFFF);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .slideshow-dots-bar {
  background: #140704;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

[data-theme="dark"] .slideshow-dot {
  background: rgba(255, 255, 255, 0.2);
}

.slideshow-dot.active {
  width: 32px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sindoor-600), var(--gold-500));
  border-color: #FDE047;
  box-shadow: 0 2px 8px rgba(217, 56, 30, 0.4);
}

/* -------------------------------------------------------------------------- */
/* 2. UNIFIED YOUTUBE VIDEO SHOWCASE HUB                                      */
/* -------------------------------------------------------------------------- */
.youtube-showcase-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.main-video-player-card {
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  background: #0D0503;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(217, 56, 30, 0.2);
  margin-bottom: 28px;
  position: relative;
}

.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Active Video Info Bar */
.video-info-strip {
  padding: 20px 24px;
  background: linear-gradient(180deg, #1C0B06 0%, #120603 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.video-title-wrap {
  flex: 1;
  min-width: 260px;
}

.video-category-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FDE047;
  background: rgba(217, 56, 30, 0.25);
  border: 1px solid rgba(217, 56, 30, 0.45);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.active-video-title {
  font-family: var(--font-hindi-heading);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 0 0 4px;
  line-height: 1.3;
}

.active-video-desc {
  font-size: 0.9rem;
  color: #E2CEB9;
  margin: 0;
  line-height: 1.5;
}

.video-channel-action {
  flex-shrink: 0;
}

/* Thumbnails Playlist Grid */
.video-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.video-playlist-header h4 {
  font-family: var(--font-hindi-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-count-badge {
  font-size: 0.84rem;
  color: var(--gold-400);
  font-weight: 600;
}

.video-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

@media (max-width: 600px) {
  .video-playlist-grid {
    grid-template-columns: 1fr;
  }
}

.video-thumb-card {
  position: relative;
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-thumb-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}

.video-thumb-card.active {
  border: 2px solid #D9381E;
  box-shadow: 0 6px 20px rgba(217, 56, 30, 0.35);
  background: rgba(217, 56, 30, 0.05);
}

.thumb-image-wrap {
  position: relative;
  width: 100%;
  height: 145px;
  background: #000;
  overflow: hidden;
}

.thumb-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumb-card:hover .thumb-image-wrap img {
  transform: scale(1.06);
}

/* Play Icon Overlay */
.play-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease;
}

.video-thumb-card:hover .play-overlay-icon {
  background: rgba(0, 0, 0, 0.15);
}

.play-red-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FF0000;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.video-thumb-card:hover .play-red-circle {
  transform: scale(1.15);
}

.video-thumb-content {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-thumb-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.playing-now-tag {
  color: var(--sindoor-600);
  font-weight: 700;
  display: none;
}

.video-thumb-card.active .playing-now-tag {
  display: inline;
}

/* Easy Add Video Helper Banner */
.add-video-tip-box {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* 3. ULTRA 4K LIGHTBOX MODAL WITH ZOOM ANIMATION                             */
/* -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 2, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  max-height: 90vh;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-lg, 16px);
  border: 2px solid var(--gold-400, #FBBF24);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(212, 175, 55, 0.45);
  object-fit: contain;
  display: inline-block;
  cursor: zoom-out;
}

.lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #D9381E;
  color: #FFFFFF;
  transform: scale(1.1) rotate(90deg);
}

.lightbox-details {
  margin-top: 14px;
}

.lightbox-details h3 {
  font-family: var(--font-hindi-heading);
  color: #FDE047;
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.lightbox-details p {
  color: #E2CEB9;
  font-size: 0.9rem;
  margin: 0;
}

