/* HangingSign.css */

.hanging-sign-container {
  position: fixed;
  top: 130px;
  right: 45px;
  z-index: 9980;
  pointer-events: none; /* Let clicks pass through outside of the sign itself */
}

/* Hide on mobile to keep layout clean and prevent overlap with hamburger menus */
@media (max-width: 768px) {
  .hanging-sign-container {
    display: none !important;
  }
}

.swinging-sign {
  pointer-events: auto; /* Re-enable clicks on the sign */
  display: block;
  width: 140px;
  border: 1.5px solid rgba(200, 169, 126, 0.45); /* Gold tint semi-transparent border */
  padding: 0.85rem 0.6rem 0.95rem;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.5), 
    0 8px 32px rgba(139, 69, 19, 0.06);
  background: rgba(250, 246, 238, 0.4); /* Frosted warm ivory */
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 12px;
  cursor: none; /* Matches the site's custom cursor flow */
  text-decoration: none;
  
  /* Swing origin details */
  transform-origin: 50% -55px;
  animation: swingSign 2s infinite alternate ease-in-out;
  
  /* 3D styling to remove jaggies */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: relative;
}

.swinging-sign:hover {
  animation-play-state: paused;
  border-color: rgba(160, 82, 45, 0.6); /* Sienna border on hover */
  background: rgba(250, 246, 238, 0.6); /* Slightly more opaque on hover */
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.6), 
    0 12px 36px rgba(160, 82, 45, 0.12);
}

.swinging-sign-content {
  text-align: center;
}

.swinging-sign-icon {
  display: block;
  margin: 0 auto 6px;
  width: 28px;
  height: 28px;
  color: var(--sienna); /* Sienna lotus icon for high contrast */
  transition: transform 0.3s ease;
}

.swinging-sign:hover .swinging-sign-icon {
  transform: scale(1.15) rotate(5deg);
}

.swinging-sign-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--charcoal); /* Charcoal text for legibility on frosted glass */
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.swinging-sign-text span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sienna); /* Sienna highlight text */
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 3px;
  font-style: italic;
}

/* Dotted string hanging down from the nail */
.swinging-sign::before {
  position: absolute;
  content: "";
  border: 1.5px dotted var(--sienna); /* Sienna string for high contrast */
  border-bottom: none;
  border-left: none;
  width: 70px;
  height: 70px;
  top: -42px;
  left: 50%;
  margin-left: -35px;
  transform: rotate(-45deg);
  border-radius: 0 4px 0 0;
  z-index: -1;
  opacity: 0.45; /* Soft opacity for dotted string */
}

/* Nail head holding the string */
.swinging-sign::after {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -51px;
  left: 50%;
  margin-left: -4px;
  background: radial-gradient(circle, var(--gold) 0%, var(--sienna) 70%, var(--sienna-dark) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Swing animation loop sways gently */
@keyframes swingSign {
  0% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(4deg);
  }
}
