/* ==========================================================================
   REELS PAGE STYLES — Darpan Studio
   ========================================================================== */

/* Solid White Header Override for Reels Page */
.site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eaeaea !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.site-header .brand-name {
  color: #111111 !important;
}

.site-header .nav-link {
  color: #222222 !important;
}

.site-header .mobile-menu-toggle span {
  background-color: #111111 !important;
}

.site-header .nav-link.active-page {
  color: var(--color-accent-gold) !important;
  font-weight: 600;
}

.site-header .nav-link.active-page::after {
  width: 100% !important;
  background-color: var(--color-accent-gold) !important;
}

/* Page Intro Section */
.reels-intro-section {
  padding: 4.5rem 1.5rem 2.5rem 1.5rem;
  background-color: #ffffff;
  text-align: center;
}

.reels-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.reels-page-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
  max-width: 820px;
  margin: 0 auto;
}

/* Reels Main Grid Section */
.reels-gallery-section {
  padding: 1rem 1.5rem 6rem 1.5rem;
  background-color: #ffffff;
}

.reels-gallery-container {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.8rem;
}

/* Individual Reel Card */
.reel-embed-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0d0d0d;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.reel-embed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.reel-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
}

.reel-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay badges and buttons */
.reel-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.reel-tag {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reel-insta-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 58px;
  height: 58px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 5;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.reel-media-wrapper:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(197, 160, 89, 0.85);
  border-color: transparent;
}

.reel-embed-card.playing .reel-play-btn {
  opacity: 0;
  pointer-events: none;
}

.reel-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #ffffff;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.reel-couple-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.reel-caption {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .reels-gallery-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 868px) {
  .reels-gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .reels-gallery-container {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}
