

/* ── SHIV TEMPLE: Shivling display ── */
.shivling-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.shiv-bg-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  opacity: 0.4;
  filter: blur(1px) drop-shadow(0 0 40px rgba(100,180,255,.5));
  pointer-events: none;
}
.shivling-img {
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: filter .3s;
  max-width: 65%;
  max-height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(100,200,255,.6)) drop-shadow(0 0 60px rgba(150,220,255,.3));
}
.shivling-img:hover {
  filter: drop-shadow(0 0 45px rgba(100,220,255,.9)) drop-shadow(0 0 80px rgba(150,240,255,.5));
}

/* Placeholder shivling (when no image) */
.ph-shivling {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.sl-body {
  width: 80px;
  height: 120px;
  background: radial-gradient(ellipse at 38% 28%, #888 0%, #555 40%, #222 100%);
  border-radius: 50% 50% 30% 30% / 40% 40% 60% 60%;
  box-shadow: inset -8px -8px 20px rgba(0,0,0,.6), inset 4px 4px 15px rgba(255,255,255,.15),
    0 0 40px rgba(100,200,255,.4);
}
.sl-base {
  width: 130px;
  height: 28px;
  background: radial-gradient(ellipse at 40% 30%, #666 0%, #333 60%, #111 100%);
  border-radius: 50%;
  margin-top: -5px;
  box-shadow: 0 8px 20px rgba(0,0,0,.6);
}
.sl-water-ring {
  width: 140px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(100,200,255,.4) 0%, transparent 70%);
  border-radius: 50%;
  margin-top: -4px;
}

/* ── JAL ARPAN STREAM ── */
.jal-stream {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80%;
  pointer-events: none;
  display: none;
  z-index: 10;
  flex-direction: column;
  align-items: center;
}
.jal-stream.active { display: flex; }

/* Kalash (brass pot) */
.jal-kalash {
  position: relative;
  width: 60px;
  height: 55px;
  transform-origin: center bottom;
  animation: jalTilt 3s ease-in-out infinite;
}
@keyframes jalTilt {
  0%,100% { transform: rotate(-15deg) translateX(-10px); }
  50%      { transform: rotate(-35deg) translateX(-18px); }
}
.jk-body {
  width: 52px;
  height: 44px;
  background: radial-gradient(ellipse at 38% 28%, #FFE566 0%, #CC9900 45%, #8B6600 100%);
  border-radius: 40% 40% 50% 50% / 38% 38% 62% 62%;
  box-shadow: inset -5px -5px 12px rgba(0,0,0,.4), inset 4px 4px 10px rgba(255,255,180,.3),
    0 0 20px rgba(255,215,0,.3);
  position: absolute;
  top: 0; left: 4px;
}
.jk-mouth {
  width: 36px;
  height: 12px;
  background: radial-gradient(ellipse at 45% 35%, #FFE566 0%, #CC9900 65%, #8B6600 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  position: absolute;
  top: -5px; left: 12px;
}
.jk-spout {
  width: 10px;
  height: 16px;
  background: linear-gradient(180deg, #CC9900 0%, #8B6600 100%);
  border-radius: 0 0 50% 50%;
  position: absolute;
  right: -2px; top: 8px;
  transform: rotate(30deg);
}

/* Water flow */
.jal-flow {
  width: 18px;
  flex: 1;
  background: linear-gradient(180deg,
    rgba(100,200,255,.9) 0%,
    rgba(150,220,255,.7) 40%,
    rgba(180,240,255,.5) 70%,
    rgba(200,245,255,.3) 100%);
  border-radius: 40% 40% 30% 30%;
  animation: jalFlow 0.3s ease-in-out infinite alternate;
  box-shadow: 0 0 12px rgba(100,200,255,.6);
}
@keyframes jalFlow {
  0%   { transform: scaleX(1) scaleY(1); opacity: 0.9; }
  100% { transform: scaleX(0.8) scaleY(1.05); opacity: 1; }
}

/* Ripple at base */
.jal-ripple {
  width: 80px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(100,200,255,.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: jalRipple 1s ease-out infinite;
}
@keyframes jalRipple {
  0%   { transform: scaleX(.5); opacity: 1; }
  100% { transform: scaleX(1.5); opacity: 0; }
}

/* Jal type color variations */
body[data-jal="milk"] .jal-flow {
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(240,248,255,.8) 60%, rgba(220,240,255,.5) 100%);
  box-shadow: 0 0 12px rgba(255,255,255,.6);
}
body[data-jal="honey"] .jal-flow {
  background: linear-gradient(180deg, rgba(255,200,50,.95) 0%, rgba(200,140,20,.7) 60%, rgba(180,120,10,.4) 100%);
  box-shadow: 0 0 12px rgba(255,200,50,.6);
}
body[data-jal="water"] .jal-flow {
  background: linear-gradient(180deg, rgba(180,220,255,.95) 0%, rgba(100,180,255,.7) 60%, rgba(80,160,255,.4) 100%);
  box-shadow: 0 0 12px rgba(180,220,255,.6);
}

/* Shiv offerings on idol */
.shiv-offerings {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 12;
  pointer-events: none;
}
.bilva-leaf {
  width: 22px;
  height: 28px;
  background: radial-gradient(ellipse at 40% 30%, #88CC44 0%, #558822 60%, #336611 100%);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 1px 4px rgba(255,255,255,.2);
  animation: leafSway 3s ease-in-out infinite;
}
.bilva-leaf:nth-child(2) { animation-delay: .5s; }
.bilva-leaf:nth-child(3) { animation-delay: 1s; }
@keyframes leafSway {
  0%,100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.dhatura-flower {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #FFFEF0 0%, #EEE8AA 60%, #DAA520 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,215,0,.5);
}
.rudraksha-bead {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 40% 35%, #8B4513 0%, #5C2A00 60%, #2A0800 100%);
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
}

/* JAL overlay text */
.jal-overlay {
  position: fixed;
  top: 60px;
  /* Center within deity zone (which starts at sidebar width) */
  left: calc(var(--sb-w, 160px) + (100vw - var(--sb-w, 160px)) / 2);
  transform: translateX(-50%);
  z-index: 55;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.jal-overlay.active { display: flex; }
.jal-om {
  font-size: 1.1rem;
  font-family: 'Noto Serif Devanagari', serif;
  color: #AADDFF;
  text-shadow: 0 0 20px rgba(100,200,255,.8), 0 0 40px rgba(100,200,255,.4);
  animation: jalOmPulse 2s ease-in-out infinite;
}
@keyframes jalOmPulse {
  0%,100% { opacity: .7; }
  50% { opacity: 1; text-shadow: 0 0 30px rgba(100,220,255,1), 0 0 60px rgba(100,220,255,.6); }
}
.jal-type-label {
  font-size: .78rem;
  color: rgba(180,230,255,.7);
  font-family: 'Cinzel Decorative', cursive;
  letter-spacing: .1em;
}

/* Jal type selector buttons */
.jal-type { border-color: rgba(100,200,255,.2) !important; }
.jal-type.active { background: rgba(100,200,255,.18) !important; border-color: #88CCFF !important; color: #AADDFF !important; box-shadow: 0 0 12px rgba(100,200,255,.3) !important; }

/* Shiv unique sidebar items */
.u-jal     { border-color: rgba(100,200,255,.25) !important; color: rgba(150,220,255,.7) !important; }
.u-bilva   { border-color: rgba(100,200,80,.25) !important; color: rgba(150,220,100,.7) !important; }
.u-dhatura { border-color: rgba(255,255,150,.25) !important; color: rgba(255,255,180,.7) !important; }
.u-rudraksha { border-color: rgba(200,140,80,.25) !important; color: rgba(220,160,100,.7) !important; }

/* ── KRISHNA TEMPLE unique items ── */
.u-makhan  { border-color: rgba(255,240,180,.25) !important; color: rgba(255,240,200,.7) !important; }
.u-tulsi   { border-color: rgba(80,200,80,.25) !important; color: rgba(120,220,120,.7) !important; }
.u-flute   { border-color: rgba(200,160,80,.25) !important; color: rgba(220,180,100,.7) !important; }
.u-mishri  { border-color: rgba(255,200,200,.25) !important; color: rgba(255,220,220,.7) !important; }

/* ── RAM TEMPLE unique items ── */
.u-akshat  { border-color: rgba(255,255,200,.25) !important; color: rgba(255,255,220,.7) !important; }
.u-sindoor { border-color: rgba(255,80,50,.25) !important; color: rgba(255,120,100,.7) !important; }
.u-chandan { border-color: rgba(200,160,120,.25) !important; color: rgba(220,180,140,.7) !important; }

/* ── HANUMAN TEMPLE unique items ── */
.u-chameli   { border-color: rgba(255,150,200,.25) !important; color: rgba(255,180,220,.7) !important; }
.u-ladoo     { border-color: rgba(255,220,100,.25) !important; color: rgba(255,235,140,.7) !important; }
.u-panchmeva { border-color: rgba(180,140,100,.25) !important; color: rgba(200,165,130,.7) !important; }

/* Offering floating animations */
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(-120px) rotate(20deg); opacity: 0; }
}
@keyframes spinUp {
  0%   { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg) scale(.5); opacity: 0; }
}
.offering-particle {
  position: fixed;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 100;
  animation: floatUp 1.8s ease-out forwards;
}

/* Makhan bowl animation */
@keyframes makhanAppear {
  0%  { transform: scale(0) translateY(20px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-5px); opacity: 1; }
  100%{ transform: scale(1) translateY(0); opacity: 1; }
}

/* Water ripple canvas z-index */
#jalCv { z-index: 48; }

.hdr-t-icon.gada {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='4.5' rx='5.5' ry='4' fill='%23FFD700'/%3E%3Cellipse cx='12' cy='4.5' rx='3.8' ry='2.5' fill='%23CC8800'/%3E%3Crect x='10.8' y='8' width='2.4' height='12' rx='1.2' fill='%23FFD700'/%3E%3Cellipse cx='12' cy='21' rx='2.8' ry='1.3' fill='%23FFD700'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px rgba(255,165,0,.7));
}
