/* Pretpot Stylish Animation Spiral Path Widget */
.pretpot-spiral-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pretpot-spiral-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.pretpot-spiral-center {
    position: absolute;
    z-index: 100;
    text-align: center;
    pointer-events: none;
}

.pretpot-spiral-heading {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.4;
    margin-bottom: 25px;
    font-family: sans-serif;
    color: rgba(255, 255, 255, 0.4);
}

.pretpot-spiral-title {
    font-size: 80px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -3px;
    color: #ffffff;
    margin: 0;
    font-family: 'Georgia', serif;
}

.pretpot-spiral-track {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.pretpot-spiral-item {
    position: absolute;
    width: 45px;
    height: 45px;
    left: 50%;
    top: 50%;
    margin-left: -22.5px;
    margin-top: -22.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pretpotSpiral linear infinite;
    will-change: transform, opacity;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.pretpot-spiral-item:hover {
    transform: scale(1.1);
    z-index: 200 !important;
}

.pretpot-spiral-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 2px;
    pointer-events: none;
}

@keyframes pretpotSpiral {
    0% {
        transform: rotate(0deg) translateX(var(--spiral-radius, 250px)) rotate(0deg) scale(0.6);
        opacity: 0.2;
        z-index: 1;
    }
    20% {
        transform: rotate(72deg) translateX(calc(var(--spiral-radius, 250px) * 0.84)) rotate(-72deg) scale(0.75);
        opacity: 0.5;
        z-index: 3;
    }
    40% {
        transform: rotate(144deg) translateX(calc(var(--spiral-radius, 250px) * 0.58)) rotate(-144deg) scale(0.9);
        opacity: 0.8;
        z-index: 5;
    }
    60% {
        transform: rotate(216deg) translateX(calc(var(--spiral-radius, 250px) * 0.32)) rotate(-216deg) scale(1);
        opacity: 1;
        z-index: 10;
    }
    80% {
        transform: rotate(288deg) translateX(calc(var(--spiral-radius, 250px) * 0.13)) rotate(-288deg) scale(0.85);
        opacity: 0.6;
        z-index: 8;
    }
    100% {
        transform: rotate(360deg) translateX(0px) rotate(-360deg) scale(0.4);
        opacity: 0;
        z-index: 1;
    }
}

/* Paused state */
.pretpot-spiral-paused .pretpot-spiral-item {
    animation-play-state: paused;
}

/* Interaction pause */
.pretpot-spiral-paused-interaction .pretpot-spiral-item {
    animation-play-state: paused !important;
}

/* Lightbox Styles */
.pretpot-spiral-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pretpot-spiral-lightbox.active {
    display: flex;
    opacity: 1;
}

.pretpot-spiral-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.pretpot-spiral-lightbox.blur .pretpot-spiral-lightbox-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.pretpot-spiral-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.pretpot-spiral-lightbox.active .pretpot-spiral-lightbox-content {
    transform: scale(1);
}

.pretpot-spiral-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10;
}

.pretpot-spiral-lightbox-close:hover {
    transform: scale(1.2);
}

.pretpot-spiral-lightbox-image {
    max-width: 40%;
    max-height: 40%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pretpot-spiral-lightbox-title {
    color: #ffffff;
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.pretpot-spiral-lightbox-button {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.pretpot-spiral-lightbox-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pretpot-spiral-title {
        font-size: 48px;
    }
    
    .pretpot-spiral-item {
        width: 35px;
        height: 35px;
        margin-left: -17.5px;
        margin-top: -17.5px;
    }
    
    .pretpot-spiral-item img {
        width: 35px;
        height: 35px;
    }
    
    .pretpot-spiral-lightbox-image {
        max-width: 80%;
        max-height: 50%;
    }
    
    .pretpot-spiral-lightbox-title {
        font-size: 18px;
    }
}