/* ============================================================
   Sri Shiva Sai Mahaa Shakthi Peetam — Hindu Panchang Ticker CSS
   Inspired by Awwwards, Apple, Linear × Sacred Hindu Aesthetics
   ============================================================ */

/* ---- Outer Container Container ---- */
.panchang-ticker-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 36px;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 100;
}

/* ---- Glassmorphic Deep Saffron / Dark Maroon Bar ---- */
.panchang-ticker-bar {
  position: relative;
  width: 100%;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #1A0726 0%,
    #2B0818 25%,
    #3B0E14 50%,
    #2B0818 75%,
    #1A0726 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.40); /* Gold metallic border */
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(212, 175, 55, 0.20) inset,
    0 0 20px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
}

/* Gold Metallic Side Edge Fades (Awwwards Style) */
.panchang-ticker-bar::before,
.panchang-ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}
.panchang-ticker-bar::before {
  left: 0;
  background: linear-gradient(90deg, #1A0726 0%, transparent 100%);
}
.panchang-ticker-bar::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #1A0726 100%);
}

/* ---- Skeleton Loading State ---- */
.panchang-skeleton {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  width: 100%;
}
.panchang-skeleton-item {
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
  background-size: 200% 100%;
  animation: panchangSkeletonShimmer 1.8s infinite linear;
}

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

/* ---- Marquee Animation Track (GPU Accelerated translate3d) ---- */
.panchang-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: panchangMarquee 65s linear infinite; /* Slower, smooth relaxed scroll */
}

.panchang-ticker-bar:hover .panchang-track {
  animation-play-state: paused;
}

/* Seamless infinite loop translation (duplicate content list rendered) */
@keyframes panchangMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Respect user's prefers-reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .panchang-track {
    animation: none !important;
    overflow-x: auto;
  }
}

/* ---- Panchang Items inside Ticker Track ---- */
.panchang-group {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.panchang-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Inter', 'Poppins', -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Item Icons */
.panchang-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

/* Item Label (Muted Gold) */
.panchang-label {
  color: rgba(212, 175, 55, 0.90);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-right: 2px;
}

/* Item Value (Bright White) */
.panchang-val {
  color: #FFFFFF;
  font-weight: 600;
}

/* Gold Diamond Separator between Items */
.panchang-sep {
  color: #D4AF37;
  font-size: 0.65rem;
  opacity: 0.70;
  margin: 0 4px;
}

/* ---- Special Festival Highlights & Badges ---- */
.panchang-badge-festival {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Gold Festival Badge (Diwali, Rama Navami, Pournami) */
.panchang-badge-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #FF8C00 100%);
  color: #060B18;
  border: 1px solid #FFE58F;
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.6);
  animation: panchangBadgeGlow 2.5s infinite ease-in-out;
}

/* Green Badge (Ekadashi Vratam) */
.panchang-badge-green {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  color: #FFFFFF;
  border: 1px solid #A7F3D0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* Blue Badge (Maha Shivaratri, Amavasya, Pradosham) */
.panchang-badge-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
  color: #FFFFFF;
  border: 1px solid #93C5FD;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
}

/* Saffron Badge (Ganesha Chaturthi, Navaratri) */
.panchang-badge-saffron {
  background: linear-gradient(135deg, #FF8C00 0%, #B45309 100%);
  color: #FFFFFF;
  border: 1px solid #FDE68A;
  box-shadow: 0 0 14px rgba(255, 140, 0, 0.5);
}

@keyframes panchangBadgeGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 140, 0, 0.5); }
  50% { box-shadow: 0 0 22px rgba(255, 215, 0, 0.9); }
}

/* ---- Mobile Responsiveness ---- */
@media (max-width: 768px) {
  .panchang-ticker-wrapper {
    margin: 16px auto 24px;
    padding: 0 12px;
  }
  .panchang-ticker-bar {
    height: 56px;
    border-radius: 12px;
  }
  .panchang-group {
    gap: 20px;
    padding-right: 20px;
  }
  .panchang-item {
    font-size: 0.82rem;
  }
  .panchang-icon {
    font-size: 1rem;
  }
  .panchang-badge-festival {
    padding: 4px 12px;
    font-size: 0.78rem;
  }
}
