/* ==========================================================================
   HUNZA ADVENTURE TOURS - WATCH & EXPLORE (VIDEO REELS SHOWCASE)
   State-of-the-art Instagram / TikTok / Shorts style video reels experience
   ========================================================================== */

/* Section Wrapper */
.watch-explore-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, #0b1a2b 0%, #06111e 50%, #030811 100%);
  color: #ffffff;
  overflow: hidden;
}

.watch-explore-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.watch-explore-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.watch-explore-section .section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 2;
}

.watch-explore-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.watch-explore-section .section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.watch-explore-section .section-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.watch-explore-section .section-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
}

/* Category Filter Tabs */
.reels-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.reel-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.reel-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.reel-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

/* Carousel Outer & Controls Header */
.reels-carousel-container {
  position: relative;
  z-index: 2;
  margin: 0 -0.5rem;
}

.reels-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.reels-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.reels-nav-btn:hover:not(:disabled) {
  background: #38bdf8;
  color: #04101e;
  border-color: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.reels-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Reel Track (Horizontal Scroll with snap) */
.reels-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.5rem 1.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

/* Video Card (Portrait 9:16) */
.reel-card {
  flex: 0 0 280px;
  height: 460px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: #091320;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (max-width: 640px) {
  .reel-card {
    flex: 0 0 240px;
    height: 410px;
    border-radius: 18px;
  }
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Media Elements inside Card */
.reel-card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.reel-card:hover .reel-card-poster {
  transform: scale(1.05);
}

.reel-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reel-card.is-playing .reel-card-video {
  opacity: 1;
}

.reel-card.is-playing .reel-card-poster {
  opacity: 0;
}

/* Card Overlays */
.reel-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 15, 26, 0.5) 0%,
    transparent 35%,
    transparent 55%,
    rgba(4, 10, 18, 0.92) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Top Hook Badge */
.reel-hook-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 20, 35, 0.75);
  backdrop-filter: blur(12px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reel-duration-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Center Play Button */
.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.reel-play-btn i {
  margin-left: 3px;
}

.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(56, 189, 248, 0.85);
  border-color: #38bdf8;
  color: #04101e;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
}

/* Bottom Information Box */
.reel-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.15rem 1.15rem;
  z-index: 3;
  pointer-events: none;
}

.reel-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.reel-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-cta-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.reel-card:hover .reel-cta-hint {
  color: #d4af37;
  opacity: 1;
  transform: translateX(4px);
}

/* Bottom Carousel Progress Bar */
.reels-progress-wrap {
  max-width: 320px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin: 1.5rem auto 0;
  overflow: hidden;
  position: relative;
}

.reels-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #38bdf8, #d4af37);
  border-radius: 9999px;
  transition: width 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   FULLSCREEN REELS MODAL VIEWER
   ========================================================================== */
.reels-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 8, 15, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  user-select: none;
}

.reels-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Dynamic Ambient Glow Behind Modal Player */
.reels-modal-ambient {
  position: absolute;
  width: 380px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(212, 175, 55, 0.15) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  transform: scale(1.1);
  transition: all 0.5s ease;
}

/* Main Phone-Styled Reel Container */
.reels-modal-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 840px;
  background: #000000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reels-modal-overlay.is-active .reels-modal-viewport {
  transform: scale(1);
}

@media (max-width: 640px) {
  .reels-modal-viewport {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* Video Player in Modal */
.reels-modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

/* Top Progress Line */
.reels-modal-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.reels-modal-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
  transition: width 0.1s linear;
}

/* Top Floating Bar in Viewer */
.reels-modal-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.reels-modal-counter {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: auto;
}

.reels-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.reels-modal-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reels-modal-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.reels-modal-btn.sound-toggle.is-muted {
  color: #f87171;
}

/* Center Play/Pause Ripple Overlay */
.reels-modal-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: all 0.25s ease;
}

.reels-modal-play-indicator.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Bottom Info Card inside Viewer */
.reels-modal-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0.98) 100%);
  z-index: 8;
  color: #ffffff;
}

.reels-modal-author-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.reels-modal-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reels-modal-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.reels-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}

.reels-modal-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.reels-modal-author-name:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.reels-modal-author-name i {
  color: #38bdf8;
  font-size: 0.82rem;
}

.reels-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.reels-modal-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.reels-modal-music-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  margin-top: 0.4rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reels-modal-music-tag i {
  color: #38bdf8;
  font-size: 0.72rem;
  animation: reelMusicPulse 1.8s infinite ease-in-out;
}

@keyframes reelMusicPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; color: #7dd3fc; }
}

.reels-modal-audio {
  display: none;
}

/* Floating Right Dock Controls (Desktop) */
.reels-modal-dock {
  position: absolute;
  right: -72px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 15;
}

@media (max-width: 640px) {
  .reels-modal-dock {
    right: 12px;
    bottom: 120px;
    top: auto;
    transform: none;
    gap: 0.65rem;
  }
}

.reels-dock-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 30, 48, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.reels-dock-btn:hover {
  background: #38bdf8;
  color: #04101e;
  border-color: #38bdf8;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
}

.reels-dock-btn.whatsapp-share {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.reels-dock-btn.whatsapp-share:hover {
  background: #1eb855;
  color: #ffffff;
  transform: scale(1.12);
}

/* Floating Close Button at Top-Right of Modal Window on Desktop */
.reels-modal-outer-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.reels-modal-outer-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}
