/* Karácsonyi égősor stílusok */
#karacsony {
    position: relative;
    width: 100%;
    height: 20px;
    overflow: visible;
    margin: 0;
    padding: 0;
    z-index: 5001;
}

.lightrope {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Zsinór - SVG görbe vezeték */
.wire {
    position: absolute;
    width: 100%;
    height: 60px;
    top: 0;
    left: 0;
    overflow: visible;
}

.wire svg {
    width: 100%;
    height: 100%;
}

.wire path {
    fill: none;
    stroke: #2a2a2a;
    stroke-width: 3;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

/* Égők tartója */
.light {
    position: absolute;
    width: 18px;
    height: 50px;
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
}

/* Foglalat/csatlakozó a vezetéken */
.light::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #999 0%, #666 50%, #333 100%);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.4),
                inset -1px -1px 2px rgba(0,0,0,0.3),
                inset 1px 1px 2px rgba(255,255,255,0.3);
    z-index: 2;
}

/* Vékony vezeték a foglalatból az égőhöz */
.light::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
    background: linear-gradient(to bottom, #444, #222);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 1px 0 1px rgba(0,0,0,0.3);
}

/* Égő */
.bulb {
    position: absolute;
    width: 18px;
    height: 28px;
    top: 20px;
    left: 0;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 50%);
    animation: glow 2s ease-in-out infinite;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    filter: brightness(1.3);
}

/* Égő felső csavarmenet része */
.bulb::before {
    content: '';
    position: absolute;
    width: 13px;
    height: 8px;
    background: linear-gradient(to bottom, 
                #aaa 0%, 
                #888 20%, 
                #666 40%,
                #555 60%,
                #444 80%,
                #333 100%);
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3),
                inset 0 -1px 1px rgba(0,0,0,0.3);
}

/* Csavarmenet vonalak */
.bulb::after {
    content: '';
    position: absolute;
    width: 13px;
    height: 8px;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 1px,
        rgba(0,0,0,0.3) 1px,
        rgba(0,0,0,0.3) 2px
    );
}

/* Színek és villogás animációk */
.light:nth-child(4n+1) .bulb {
    color: #ff0000;
    background-color: #ff0000;
    animation-delay: 0s;
}

.light:nth-child(4n+2) .bulb {
    color: #00ff00;
    background-color: #00ff00;
    animation-delay: 0.5s;
}

.light:nth-child(4n+3) .bulb {
    color: #0099ff;
    background-color: #0099ff;
    animation-delay: 1s;
}

.light:nth-child(4n+4) .bulb {
    color: #ffaa00;
    background-color: #ffaa00;
    animation-delay: 1.5s;
}

/* Hintázás animáció */
@keyframes swing {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* Villogás animáció */
@keyframes glow {
    0%, 100% {
        opacity: 1;
        filter: brightness(1.2);
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        filter: brightness(0.6);
        transform: scale(0.98);
    }
}

/* Különböző hintázás sebességek */
.light:nth-child(3n+1) {
    animation-duration: 2.5s;
}

.light:nth-child(3n+2) {
    animation-duration: 3s;
}

.light:nth-child(3n+3) {
    animation-duration: 3.5s;
}

/* Responsive design */
@media (max-width: 768px) {
    #karacsony {
        height: 100px;
    }

    .light {
        width: 14px;
        height: 42px;
    }

    .bulb {
        width: 14px;
        height: 24px;
        top: 18px;
    }
    
    .bulb::before {
        width: 11px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    #karacsony {
        height: 80px;
    }

    .light {
        width: 12px;
        height: 36px;
    }

    .bulb {
        width: 12px;
        height: 20px;
        top: 16px;
    }

    .light::before {
        width: 8px;
        height: 8px;
    }
    
    .light::after {
        height: 10px;
    }
    
    .bulb::before {
        width: 9px;
        height: 5px;
    }
}