/* ===================================================
   Envogue Luxury Reels & Video Showcase Styles
   =================================================== */

.insta-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px 4px 20px;
}

.insta-carousel {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Reel Card */
.insta-carousel-item {
  flex: 0 0 calc(100% / 5 - 13px);
  position: relative;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background-color: #131310;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(149, 105, 51, 0.22);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
}

.insta-carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px -6px rgba(149, 105, 51, 0.32), 0 0 0 2px #c18f52;
}

/* Card Video */
.insta-carousel-item video,
.insta-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.insta-carousel-item:hover video,
.insta-carousel-item:hover img {
  transform: scale(1.06);
}

/* Vignette Overlay */
.insta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

/* Top Badges */
.insta-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(19, 19, 16, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: fit-content;
}

.insta-top-badge i {
  color: #c18f52;
  font-size: 12px;
}

/* Bottom Card Details */
.insta-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insta-card-tag {
  color: #c18f52;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.insta-card-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Center Play Button */
.insta-play-btn,
.n-b {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(19, 19, 16, 0.58);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  z-index: 2;
}

.insta-play-btn i,
.n-b i {
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.insta-carousel-item:hover .insta-play-btn,
.insta-carousel-item:hover .n-b {
  transform: translate(-50%, -50%) scale(1.18);
  background: #956933;
  border-color: #c18f52;
  box-shadow: 0 12px 30px rgba(149, 105, 51, 0.55);
}

/* Floating Navigation Arrows */
.insta-nav-buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 8px;
  z-index: 10;
}

.insta-nav-buttons button {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(149, 105, 51, 0.35);
  color: #131310;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.insta-nav-buttons button:hover {
  background: #956933;
  border-color: #956933;
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 14px 30px rgba(149, 105, 51, 0.35);
}

/* Responsive Grid for Carousel */
@media (max-width: 1024px) {
  .insta-carousel-item {
    flex: 0 0 calc(100% / 3 - 11px);
  }
}

@media (max-width: 768px) {
  .insta-carousel {
    gap: 10px;
  }
  .insta-carousel-item {
    flex: 0 0 calc(100% / 2 - 5px);
    border-radius: 14px;
  }
  .insta-nav-buttons button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .insta-play-btn, .n-b {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
}

/* ===================================================
   Ultra-Professional Luxury Reel Modal Player
   =================================================== */

.pro-reel-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pro-reel-modal.active {
  display: flex;
  opacity: 1;
}

/* Smartphone Container Frame */
.pro-reel-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 88vh;
  max-height: 780px;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 35px 85px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(193, 143, 82, 0.4);
  display: flex;
  flex-direction: column;
}

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

/* Story Top Header */
.pro-reel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 18px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.pro-reel-header > * {
  pointer-events: all;
}

/* Story Multi-segment Progress Bar */
.pro-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.pro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #956933, #c18f52, #e5b982);
  transition: width 0.1s linear;
}

/* Profile Row */
.pro-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pro-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pro-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #c18f52;
  background: #131310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.pro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pro-meta {
  display: flex;
  flex-direction: column;
}

.pro-handle {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
  font-family: 'Montserrat', sans-serif;
}

.pro-location {
  color: #c18f52;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}

/* Right Header Actions */
.pro-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pro-ig-btn:hover {
  background: #956933;
  border-color: #956933;
  color: #ffffff;
}

.pro-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.pro-close-btn:hover {
  background: #956933;
  border-color: #956933;
  transform: rotate(90deg);
}

/* Bottom Controls Overlay */
.pro-reel-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pro-reel-footer > * {
  pointer-events: all;
}

.pro-reel-title-row {
  display: flex;
  flex-direction: column;
}

.pro-reel-category {
  font-size: 10px;
  font-weight: 700;
  color: #c18f52;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pro-reel-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Bottom Controls Bar */
.pro-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.pro-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-ctrl-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
}

.pro-ctrl-btn:hover {
  background: #956933;
  border-color: #956933;
}

.pro-time-text {
  color: #cccccc;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

/* Side Next / Prev Arrows on Desktop Modal */
.pro-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 100001;
}

.pro-modal-nav-btn:hover {
  background: #956933;
  border-color: #c18f52;
  transform: translateY(-50%) scale(1.12);
  color: #ffffff;
}

.pro-modal-prev {
  left: calc(50% - 280px);
}

.pro-modal-next {
  right: calc(50% - 280px);
}

@media (max-width: 768px) {
  .pro-modal-nav-btn {
    display: none;
  }
  .pro-reel-modal {
    padding: 0 !important;
  }
  .pro-reel-frame {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0px !important;
    border: none !important;
    box-shadow: none !important;
  }
  .pro-reel-header {
    padding: max(16px, env(safe-area-inset-top)) 16px 20px !important;
  }
  .pro-header-actions {
    gap: 8px !important;
  }
  .pro-close-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    flex-shrink: 0 !important;
  }
  .pro-reel-footer {
    padding: 20px 16px max(24px, env(safe-area-inset-bottom)) !important;
  }
}

/* ===================================================
   Celebrity Media Carousel Styles
   =================================================== */

.celeb-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-bottom: 8px;
}

.celeb-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.celeb-carousel-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 8px;
  cursor: pointer;
}

.celeb-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background-color: #131310;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(149, 105, 51, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.celeb-carousel-item:hover .celeb-media-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -6px rgba(149, 105, 51, 0.32), 0 0 0 2px #c18f52;
}

.celeb-carousel-item video,
.celeb-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.celeb-carousel-item:hover video,
.celeb-carousel-item:hover img {
  transform: scale(1.06);
}

.celeb-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(19, 19, 16, 0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.celeb-carousel-item:hover .celeb-icon-overlay {
  background: #956933;
  border-color: #c18f52;
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 10px 25px rgba(149, 105, 51, 0.5);
}

.celeb-icon-overlay i.fa-play::before {
  content: "\f04b";
}

.celeb-icon-overlay i.fa-image::before {
  content: "\f03e";
}

.celeb-nav-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.celeb-prev-btn,
.celeb-next-btn {
  width: 44px;
  height: 44px;
  border-radius: 0px !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(149, 105, 51, 0.35);
  color: #131310;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.celeb-prev-btn:hover,
.celeb-next-btn:hover {
  background: #956933;
  border-color: #956933;
  color: #ffffff;
  transform: scale(1.08);
}

/* Modal for Celebrity photo popup */
.celeb-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.celeb-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.celeb-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .celeb-carousel-item {
    flex: 0 0 calc(100% / 2);
  }
}
