/* ==========================================================================
   SAHELI STORES - 50TH GOLDEN JUBILEE CELEBRATION STYLES (1976 - 2026)
   Theme: Royal Wine (#420c14), Deep Crimson, 24K Gold (#d4af37), Champagne
   ========================================================================== */

/* 1. Firecrackers / Fireworks Canvas */
#celebration-fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 12;
}

/* 2. Floating Festive Balloons Layer */
#celebration-balloons-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 14;
  overflow: hidden;
}

.festive-balloon-wrap {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, top, left;
  filter: drop-shadow(0 10px 15px rgba(45, 6, 12, 0.35));
}

.festive-balloon-wrap:hover {
  transform: scale(1.12);
  z-index: 30;
  filter: drop-shadow(0 15px 25px rgba(212, 175, 55, 0.65));
}

.festive-balloon-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Floating Ribbon String */
.balloon-string {
  stroke: #d4af37;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  animation: stringWave 2.8s ease-in-out infinite alternate;
  transform-origin: top center;
}

@keyframes stringWave {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

/* Balloon Message Banner */
.balloon-msg-pill {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  transform: translateY(-50%) translateX(-8px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(135deg, #420c14 0%, #250409 100%);
  color: #fff8e7;
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  padding: 10px 16px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 40;
}

.balloon-msg-pill:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -7px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #420c14;
  border-left: 1.5px solid #d4af37;
  border-bottom: 1.5px solid #d4af37;
}

.festive-balloon-wrap:hover .balloon-msg-pill,
.festive-balloon-wrap.show-message .balloon-msg-pill {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}

.bmp-gold-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f2d98d;
  margin-bottom: 3px;
}

.bmp-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bmp-sub {
  display: block;
  font-size: 0.68rem;
  color: #dfc47b;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.bmp-hint {
  display: inline-block;
  font-size: 0.6rem;
  color: #e6cb80;
  background: rgba(212, 175, 55, 0.18);
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 4px;
}

/* Persistent ribbon tag on mouse-out ("mouse le hata hu") */
.balloon-flutter-tag {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #d4af37, #f7e199, #d4af37);
  color: #2d060c;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  pointer-events: none;
  animation: tagFlutter 2s ease-in-out infinite alternate;
}

@keyframes tagFlutter {
  0% { transform: translateX(-50%) rotate(-4deg); }
  100% { transform: translateX(-50%) rotate(4deg); }
}

/* Balloon Pop Animation */
.balloon-pop-burst {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  animation: popFade 0.9s forwards ease-out;
}

@keyframes popFade {
  0% { transform: scale(0.6); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

/* Balloon Toast Notification & Hover Text Banners (Removed per user request) */
.celebration-toast,
.balloon-msg-pill,
.balloon-flutter-tag {
  display: none !important;
}

/* 3. Celebration Floating Luxury Control Badge (Removed per user request) */
.celebration-hud {
  display: none !important;
}

/* 4. Extra Premium Animations for "Our Journey" Page */

/* Hero 50 Emblem Radiant Halo */
.journey-hero .logo-frame {
  position: relative;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.journey-hero .logo-frame:hover {
  transform: scale(1.03) rotate(0.5deg);
  filter: drop-shadow(0 15px 35px rgba(212, 175, 55, 0.55));
}

.journey-hero .logo-frame::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  animation: framePulse 3s infinite ease-in-out;
}

@keyframes framePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.025); opacity: 0.9; border-color: #f7d26d; box-shadow: 0 0 25px rgba(212, 175, 55, 0.3); }
}

/* Golden Shimmer on Hero Number 50 */
.hero-number, .big50 {
  background: linear-gradient(135deg, rgba(212,175,55,0.18) 0%, rgba(255,243,180,0.38) 50%, rgba(212,175,55,0.18) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: metallicShimmer 6s linear infinite;
}

@keyframes metallicShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Festive Strip Enhanced Shimmer */
.festive-strip {
  background: linear-gradient(90deg, #2d060c 0%, #420c14 25%, #5d121e 50%, #420c14 75%, #2d060c 100%);
  background-size: 200% auto;
  animation: stripGlow 8s ease infinite alternate;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

@keyframes stripGlow {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

/* Timeline Glowing Progress Line */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, #d4af37, #420c14 80%, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@media (min-width: 820px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-progress {
  box-shadow: 0 0 14px #efc750, 0 0 28px rgba(212, 175, 55, 0.6) !important;
  background: linear-gradient(180deg, #fff3b0, #d4af37, #f7d26d) !important;
}

/* Chapter Numbers as Golden Jubilee Medallions */
.chapter-no {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #420c14 0%, #220307 100%);
  border: 2px solid #d4af37;
  color: #f7d26d !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 12px rgba(212, 175, 55, 0.45);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.chapter:hover .chapter-no {
  transform: scale(1.15) rotate(5deg);
  border-color: #ffe68a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 22px rgba(212, 175, 55, 0.8);
  color: #ffffff !important;
}

/* Chapter Card Interactive Hover */
.chapter {
  transition: transform 0.35s ease;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.chapter:hover {
  background: rgba(255, 248, 231, 0.7);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 15px 35px rgba(66, 12, 20, 0.08);
  transform: translateY(-4px);
}

/* Photo Placeholder Shimmer and Corner Flourishes */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(45, 6, 12, 0.25);
  transition: all 0.4s ease;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 243, 176, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.75s ease;
  opacity: 0;
}

.photo-placeholder:hover::after,
.chapter:hover .photo-placeholder::after {
  left: 120%;
  opacity: 1;
}

.photo-placeholder:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(45, 6, 12, 0.35), 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Decades Cards Elevation */
.decade-card {
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  background: rgba(66, 12, 20, 0.45);
}

.decade-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #d4af37;
  background: rgba(66, 12, 20, 0.85);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.35);
}

.decade-card .date {
  color: #f7d26d !important;
  font-weight: 800;
  letter-spacing: 0.15em;
}

/* Interactive Jubilee Celebration Station */
.celebration-milestone-box {
  margin: 60px auto 30px;
  background: linear-gradient(135deg, rgba(66, 12, 20, 0.95), rgba(45, 6, 12, 0.98));
  border: 2px solid #d4af37;
  border-radius: 20px;
  padding: clamp(30px, 5vw, 55px);
  text-align: center;
  color: #fff8e7;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 35px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.celebration-milestone-box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #d4af37, transparent, #f7d26d, transparent, #d4af37);
  background-size: 300% 300%;
  z-index: -1;
  animation: borderDance 8s linear infinite;
}

@keyframes borderDance {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.milestone-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 35px 0 30px;
}

.milestone-stat-item {
  background: rgba(255, 248, 231, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 18px 12px;
  transition: all 0.3s ease;
}

.milestone-stat-item:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: #efc750;
  transform: translateY(-4px);
}

.milestone-stat-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #f7d26d;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.milestone-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6cb80;
}

.grand-celebrate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #f7d26d 50%, #d4af37 100%);
  color: #2d060c;
  padding: 16px 36px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5), 0 0 15px rgba(255, 235, 160, 0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grand-celebrate-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.75), 0 0 30px rgba(255, 245, 190, 0.9);
  background: linear-gradient(135deg, #f7d26d 0%, #fff0a8 50%, #f7d26d 100%);
}

.grand-celebrate-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Reduced motion preference override */
@media (prefers-reduced-motion: reduce) {
  #celebration-fireworks-canvas,
  #celebration-balloons-layer,
  .celebration-hud {
    display: none !important;
  }
}
