/* === Pipe Separator Layout === */
.pipe-separator-outer {
  display: flex;
  justify-content: center;
  padding-bottom: 80px; /* space for drip + pool */
  position: relative;
  z-index: 0;
}

.pipe-separator-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  width: 100%;
}

.pipe-separator-row {
  display: flex;
  align-items: stretch;
  height: 50px;
  position: relative;
  overflow: visible;
  background-color: #e8f4f8;
  max-width: 1100px;
  width: 100%;
  border-radius: 6px;
}

.pipe-end {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.pipe-center-img {
  flex-grow: 1;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* === Valve Control === */
.valve {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 0.4s ease;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

/* === Drip Effect === */
.drip-zone {
  position: absolute;
  bottom: -28px;
  right: -2px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.drip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 30px;
  background: #00c4ff;
  border-radius: 50%;
  opacity: 1;
  animation: dripFall 0.7s ease-in forwards;
}

.ripple {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: #00c4ff;
  opacity: 0.4;
  animation: rippleExpand 0.6s ease-out forwards;
}

/* === Drip Puddle === */
.drip-pool {
  position: absolute;
  bottom: -67px;
  right: -8px;
  width: 40px;
  height: 10px;
  background: radial-gradient(circle at center, #aef0ff 0%, #78d2ea 60%, transparent 100%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 6px #00c4ff55;
  transition: transform 0.3s ease, opacity 0.4s ease;
  transform: translate(50%, 50%) scale(1);
  transform-origin: center;
  z-index: -1;
}

/* === Animations === */
@keyframes dripFall {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.4;
  }
  100% {
    width: 20px;
    height: 8px;
    opacity: 0;
  }
}
