
/*============================*/
/* Різдвяна гірлянда для верхньої стрічки */
/*============================*/

/* Обгортка для всієї верхньої стрічки з гірляндою */
.top-stripe-wrapper {
    position: relative;
    margin-bottom: 25px;
    z-index: 1000;
}

/* Контейнер для гірлянди */
.garland-container {
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    z-index: 1001;
    overflow: visible;
}

/* Дріт гірлянди */
.garland-wire {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(101, 67, 33, 0.4) 5%,
    rgba(101, 67, 33, 0.6) 50%,
    rgba(101, 67, 33, 0.4) 95%,
    transparent 100%);
}

/* Лампочки гірлянди */
.garland-light {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 10px;
    box-shadow: 0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor;
    animation: garland-twinkle 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

/* Дротик від лампочки до дроту */
.garland-light::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: rgba(101, 67, 33, 0.5);
}

/* Різні кольори для лампочок */
.garland-light.color-red {
    background: #ff4444;
    color: #ff4444;
}

.garland-light.color-blue {
    background: #4488ff;
    color: #4488ff;
}

.garland-light.color-yellow {
    background: #ffdd44;
    color: #ffdd44;
}

.garland-light.color-green {
    background: #44ff88;
    color: #44ff88;
}

.garland-light.color-pink {
    background: #ff88dd;
    color: #ff88dd;
}

.garland-light.color-cyan {
    background: #44ddff;
    color: #44ddff;
}

.garland-light.color-white {
    background: #ffffff;
    color: #ffffff;
}

.garland-light.color-orange {
    background: #ffaa44;
    color: #ffaa44;
}

/* Анімація мерехтіння */
@keyframes garland-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}

/* Різні затримки для кожної лампочки */
.garland-light:nth-child(2n+1) { animation-delay: 0s; }
.garland-light:nth-child(2n+2) { animation-delay: 0.3s; }
.garland-light:nth-child(3n+1) { animation-delay: 0.6s; }
.garland-light:nth-child(3n+2) { animation-delay: 0.9s; }
.garland-light:nth-child(4n+1) { animation-delay: 1.2s; }
.garland-light:nth-child(4n+2) { animation-delay: 1.5s; }

/* Ефект провисання дроту між лампочками */
.garland-segment {
    position: absolute;
    height: 2px;
    background: rgba(101, 67, 33, 0.5);
    transform-origin: left center;
}

/* Адаптація для менших екранів */
@media (max-width: 1566px) {
    .top-stripe-wrapper {
        margin-bottom: 20px;
    }

    .garland-light {
        width: 9px;
        height: 9px;
    }

    .garland-container {
        bottom: -26px;
        height: 28px;
    }

    .garland-light::before {
        height: 9px;
        top: -9px;
    }
}

@media (max-width: 1200px) {
    .top-stripe-wrapper {
        margin-bottom: 20px;
    }

    .garland-light {
        width: 8px;
        height: 8px;
    }

    .garland-container {
        bottom: -25px;
        height: 26px;
    }

    .garland-light::before {
        height: 8px;
        top: -8px;
    }
}

@media (max-width: 992px) {
    .top-stripe-wrapper {
        margin-bottom: 20px;
    }

    .garland-light {
        width: 7px;
        height: 7px;
    }

    .garland-container {
        bottom: -22px;
        height: 24px;
    }

    .garland-light::before {
        height: 7px;
        top: -7px;
    }
}

/* Ефект хвилі для дроту (опціонально) */
@keyframes wire-wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

.garland-wire {
    animation: wire-wave 4s ease-in-out infinite;
}