/* =====================================================================
   moments.css  —  "Few Moments" screenshot slider (effects)
   ===================================================================== */

/* Is page par content lamba ho to scroll ho (kuch kate nahi) */
body { overflow-y: auto; overflow-x: hidden; }   /* half-out arrows se side-scroll na ho */
#experience { height: auto; min-height: 100dvh; }
#experience .screen {
  position: static;
  display: block;
  overflow: visible;
  min-height: 100dvh;
  padding: 24px 16px 40px;
}

.moments-content {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

/* =====================================================================
   OPENING GATE  —  polaroid "tap to relive" (music isi par shuru)
   ===================================================================== */
.m-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 100dvh;
  justify-content: center;
  cursor: pointer;                 /* poora gate clickable */
  animation: fadeUp 0.9s both;
}
.m-gate-label { cursor: pointer; }
.m-gate.fade-out { animation: gateOut 0.5s ease forwards; }
@keyframes gateOut { to { opacity: 0; transform: scale(0.9); visibility: hidden; } }

.polaroid-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  animation: polaPulse 1.8s ease-in-out infinite;
}
.polaroid-btn:active { transform: scale(0.95); }

.polaroid {
  width: 210px;
  background: #fff;
  border-radius: 8px;
  padding: 13px 13px 0;
  transform: rotate(-4deg);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.polaroid-pic {
  width: 100%;
  height: 185px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
}
.polaroid-cap {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.5rem;
  color: #3a3a3a;
  padding: 10px 0 14px;
}

.m-gate-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes polaPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(1deg); }
}

/* ---- Stage (frame + arrows) ---- */
.m-stage {
  position: relative;
  display: inline-block;         /* frame ke size ke mutabik sikud jaye */
  max-width: 100%;
  margin: 6px auto 0;
}

.m-slider {
  position: relative;
  /* size JS set karta hai (har screenshot ke hisaab se auto) */
  width: 300px;
  height: 480px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0414;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 92, 138, 0.25),
    0 0 40px rgba(255, 92, 138, 0.35);
  animation: frameGlow 3s ease-in-out infinite;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1),
              height 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes frameGlow {
  0%, 100% { box-shadow: 0 22px 55px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,92,138,0.25), 0 0 32px rgba(255,92,138,0.3); }
  50%      { box-shadow: 0 22px 55px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,92,138,0.5),  0 0 55px rgba(255,92,138,0.55); }
}

.m-slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* frame image ke size ke mutabik hai, to cover = koi bars nahi, crop nahi */
.m-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* (auto-zoom nahi — screenshots clear padhe ja sakein) */

/* fallback jab screenshot abhi add nahi kiya */
.m-slide.placeholder {
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255,92,138,0.25), rgba(255,211,110,0.2));
  color: var(--white);
  padding: 20px;
  text-align: center;
}
.m-slide.placeholder .ph-emoji { font-size: 3rem; }
.m-slide.placeholder .ph-text  { font-size: 0.85rem; opacity: 0.85; }

/* ---- Arrows ---- */
.m-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink), #c3379b);   /* hamesha pink */
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;            /* chevron glyph ko theek center mein lao */
  box-shadow: 0 6px 18px rgba(255, 92, 138, 0.55),
              0 0 0 3px rgba(255, 255, 255, 0.14);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 4;
}
/* aadha frame ke andar, aadha bahar (edge par center) */
.m-arrow.prev { left: 0;  transform: translate(-50%, -50%); }
.m-arrow.next { right: 0; transform: translate(50%, -50%); }
.m-arrow:hover  { filter: brightness(1.1); }
.m-arrow:active { filter: brightness(0.9); }

/* ---- Caption ---- */
.m-caption {
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  color: var(--pink-soft);
  min-height: 1.6em;
  margin: 16px auto 2px;
  transition: opacity 0.4s ease;
}

/* ---- Dots ---- */
.m-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.m-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.m-dots .dot.active { background: var(--pink); transform: scale(1.3); }
