/* Christmas Hanging Decorations - Right Side */
.christmas-hanging-decor {
  position: fixed;
  top: 75px;
  right: 0;
  width: 250px;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.christmas-hanging-decor.hidden {
  opacity: 0;
}

/* Individual hanging string */
.hanging-string {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top hook/cap - where string attaches */
.string-hook {
  width: 12px;
  height: 8px;
  background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
  flex-shrink: 0;
}

.string-hook::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 50%;
}

.hanging-string .string-line {
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  flex-shrink: 0;
}

/* Ornament base styles */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Snowflake ornament - LARGER */
.ornament-snowflake {
  font-size: 28px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.8);
}

/* Star ornament - LARGER */
.ornament-star {
  font-size: 24px;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
}

/* Round ball ornament - LARGER */
.ornament-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
}

.ornament-ball::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}

/* Ball top cap */
.ornament-ball::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border-radius: 2px 2px 0 0;
}

.ornament-ball.red {
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
  box-shadow: 0 3px 12px rgba(220,53,69,0.5);
}

.ornament-ball.navy {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  box-shadow: 0 3px 12px rgba(30,58,95,0.5);
}

.ornament-ball.white {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  box-shadow: 0 3px 12px rgba(255,255,255,0.4);
}

/* Gift box ornament - LARGER */
.ornament-gift {
  width: 24px;
  height: 20px;
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 3px 10px rgba(220,53,69,0.4);
}

.ornament-gift::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 100%;
  background: #FFD700;
}

.ornament-gift::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 5px;
  background: #FFD700;
}

.ornament-gift.navy-gift {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  box-shadow: 0 3px 10px rgba(30,58,95,0.4);
}

.ornament-gift.navy-gift::before,
.ornament-gift.navy-gift::after {
  background: #fff;
}

/* Christmas tree ornament - LARGER */
.ornament-tree {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #228B22;
  position: relative;
  filter: drop-shadow(0 3px 6px rgba(34,139,34,0.4));
}

.ornament-tree::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #8B4513;
  border-radius: 2px;
}

/* Small ornament dots on tree */
.ornament-tree::after {
  content: '•';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #FFD700;
}

/* Wind sway animation for hanging strings */
@keyframes wind-sway {
  0%, 100% {
    transform: rotate(0deg) translateX(0);
  }
  20% {
    transform: rotate(3deg) translateX(-5px);
  }
  40% {
    transform: rotate(-2deg) translateX(3px);
  }
  60% {
    transform: rotate(4deg) translateX(-7px);
  }
  80% {
    transform: rotate(-1deg) translateX(2px);
  }
}

@keyframes wind-sway-alt {
  0%, 100% {
    transform: rotate(0deg) translateX(0);
  }
  15% {
    transform: rotate(-2deg) translateX(4px);
  }
  35% {
    transform: rotate(3deg) translateX(-6px);
  }
  55% {
    transform: rotate(-3deg) translateX(5px);
  }
  75% {
    transform: rotate(2deg) translateX(-4px);
  }
}

@keyframes wind-sway-gentle {
  0%, 100% {
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(2deg) translateX(-4px);
  }
  50% {
    transform: rotate(-1deg) translateX(2px);
  }
  75% {
    transform: rotate(3deg) translateX(-5px);
  }
}

/* Apply wind animation to entire hanging strings */
.hanging-string {
  transform-origin: top center;
  animation: wind-sway 4s ease-in-out infinite;
}

.hanging-string:nth-child(1) {
  animation: wind-sway 4s ease-in-out infinite;
  animation-delay: 0s;
}

.hanging-string:nth-child(2) {
  animation: wind-sway-alt 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hanging-string:nth-child(3) {
  animation: wind-sway-gentle 3.8s ease-in-out infinite;
  animation-delay: 0.3s;
}

.hanging-string:nth-child(4) {
  animation: wind-sway 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Ornament swing animation - adds extra movement to ornaments */
@keyframes ornament-swing {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.ornament {
  animation: ornament-swing 2s ease-in-out infinite;
}

.hanging-string:nth-child(1) .ornament { animation-duration: 2.2s; }
.hanging-string:nth-child(2) .ornament { animation-duration: 2.5s; animation-delay: 0.2s; }
.hanging-string:nth-child(3) .ornament { animation-duration: 1.8s; animation-delay: 0.4s; }
.hanging-string:nth-child(4) .ornament { animation-duration: 2.3s; animation-delay: 0.1s; }

/* Responsive - adjust for smaller screens */
@media screen and (max-width: 992px) {
  .christmas-hanging-decor {
    width: 180px;
    top: 60px;
  }

  .hanging-string:nth-child(1) { right: 15px !important; }
  .hanging-string:nth-child(2) { right: 45px !important; }
  .hanging-string:nth-child(3) { right: 75px !important; }
  .hanging-string:nth-child(4) { right: 105px !important; }
}

@media screen and (max-width: 768px) {
  .christmas-hanging-decor {
    width: 130px;
    top: 55px;
  }

  /* Show all 4 strings with adjusted positions */
  .hanging-string:nth-child(1) { right: 10px !important; }
  .hanging-string:nth-child(2) { right: 40px !important; }
  .hanging-string:nth-child(3) { right: 70px !important; }
  .hanging-string:nth-child(4) { right: 100px !important; }

  /* Reduce string heights on mobile */
  .hanging-string .string-line {
    height: 20px !important;
  }

  /* Smaller ornaments on mobile */
  .ornament-snowflake {
    font-size: 20px;
  }

  .ornament-star {
    font-size: 18px;
  }

  .ornament-ball {
    width: 20px;
    height: 20px;
  }

  .ornament-ball::before {
    top: 3px;
    left: 4px;
    width: 7px;
    height: 7px;
  }

  .ornament-ball::after {
    width: 6px;
    height: 5px;
  }

  .ornament-gift {
    width: 18px;
    height: 15px;
  }

  .ornament-gift::before {
    width: 3px;
  }

  .ornament-gift::after {
    height: 3px;
  }

  .ornament-tree {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid #228B22;
  }

  .ornament-tree::before {
    bottom: -22px;
    width: 7px;
    height: 7px;
  }

  .ornament-tree::after {
    bottom: -11px;
    font-size: 9px;
  }

  .string-hook {
    width: 11px;
    height: 7px;
  }

  .string-hook::after {
    width: 4px;
    height: 4px;
  }

  .hanging-string .string-line {
    width: 1px;
  }
}

@media screen and (max-width: 480px) {
  .christmas-hanging-decor {
    width: 110px;
    top: 70px;
    right: -10px;
  }

  /* Show all 4 strings with tighter spacing */
  .hanging-string:nth-child(1) { right: 5px !important; }
  .hanging-string:nth-child(2) { right: 30px !important; }
  .hanging-string:nth-child(3) { right: 55px !important; }
  .hanging-string:nth-child(4) { right: 80px !important; }

  /* Further reduce string heights on small mobile */
  .hanging-string .string-line {
    height: 15px !important;
  }

  /* Even smaller ornaments */
  .ornament-snowflake {
    font-size: 17px;
  }

  .ornament-star {
    font-size: 15px;
  }

  .ornament-ball {
    width: 16px;
    height: 16px;
  }

  .ornament-ball::before {
    top: 2px;
    left: 3px;
    width: 4px;
    height: 4px;
  }

  .ornament-ball::after {
    width: 5px;
    height: 4px;
    top: -3px;
  }

  .ornament-gift {
    width: 14px;
    height: 12px;
  }

  .ornament-gift::before {
    width: 2px;
  }

  .ornament-gift::after {
    height: 2px;
  }

  .ornament-tree {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid #228B22;
  }

  .ornament-tree::before {
    bottom: -16px;
    width: 4px;
    height: 4px;
  }

  .ornament-tree::after {
    bottom: -8px;
    font-size: 5px;
  }

  .string-hook {
    width: 8px;
    height: 4px;
  }

  .string-hook::after {
    width: 3px;
    height: 3px;
    bottom: -2px;
  }
}
