/* Ambient corner animations */
.wheel-ambiance {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 50px 20px rgba(187, 134, 252, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 30px 10px rgba(187, 134, 252, 0.15);
    }
    50% { 
        box-shadow: 0 0 60px 30px rgba(187, 134, 252, 0.25);
    }
}

.corner-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    background: transparent;
    border-style: solid;
    border-color: var(--primary-color);
    border-width: 4px;
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(187, 134, 252, 0.9));
    transform-origin: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Position corner elements */
.corner-top-left {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 30px;
    animation: float-1 4s ease-in-out infinite alternate;
    border-color: #bb86fc;
}

.corner-top-right {
    top: -15px;
    right: -15px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 30px;
    animation: float-2 5s ease-in-out infinite alternate-reverse;
    border-color: #03dac6;
}

.corner-bottom-left {
    bottom: -15px;
    left: -15px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 30px;
    animation: float-3 6s ease-in-out infinite alternate;
    border-color: #ff5252;
}

.corner-bottom-right {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 30px;
    animation: float-4 4.5s ease-in-out infinite alternate-reverse;
    border-color: #ffc107;
}

/* Add hover effect */
.wheel-container:hover .corner-decoration {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(187, 134, 252, 1));
}

/* Floating animations */
@keyframes float-1 {
    0%, 100% { 
        transform: translate(-5px, -5px) rotate(-3deg);
        filter: drop-shadow(0 0 5px rgba(187, 134, 252, 0.5));
    }
    50% { 
        transform: translate(5px, 5px) rotate(3deg);
        filter: drop-shadow(0 0 15px rgba(187, 134, 252, 0.9));
    }
}

@keyframes float-2 {
    0%, 100% { 
        transform: translate(5px, -5px) rotate(3deg);
        filter: drop-shadow(0 0 5px rgba(3, 218, 198, 0.5));
    }
    50% { 
        transform: translate(-5px, 5px) rotate(-3deg);
        filter: drop-shadow(0 0 15px rgba(3, 218, 198, 0.9));
    }
}

@keyframes float-3 {
    0%, 100% { 
        transform: translate(-5px, 5px) rotate(-2deg);
        filter: drop-shadow(0 0 5px rgba(255, 82, 82, 0.5));
    }
    50% { 
        transform: translate(5px, -5px) rotate(2deg);
        filter: drop-shadow(0 0 15px rgba(255, 82, 82, 0.9));
    }
}

@keyframes float-4 {
    0%, 100% { 
        transform: translate(5px, 5px) rotate(2deg);
        filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.5));
    }
    50% { 
        transform: translate(-5px, -5px) rotate(-2deg);
        filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.9));
    }
}

/* Add some sparkles */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    opacity: 0;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Add some subtle particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: particle 8s infinite linear;
}

@keyframes particle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}
