/* Dynamic Wheel Menu - Sudarshana Chakra Premium Theme */
#wheel-menu-container {
    position: fixed;
    left: -140px; 
    top: 50%;
    width: 350px;
    height: 350px;
    transform: translateY(-50%);
    z-index: 10000;
    border-radius: 50%;
    
    /* Transparent glassmorphism background */
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.85) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
    
    /* Subtle inner glow for the main circle */
    box-shadow: 
        inset 0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 0 25px rgba(212, 175, 55, 0.15), 
        10px 0 30px rgba(0, 0, 0, 0.8);
        
    opacity: 0.8;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

#wheel-menu-container:hover {
    opacity: 1;
}

/* Layer 1: A slow counter-rotating majestic halo behind the main wheel */
#wheel-menu-container::after {
    content: '';
    position: absolute;
    top: -35px; left: -35px; right: -35px; bottom: -35px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 10deg,
        transparent 0deg 8deg,
        rgba(212, 175, 55, 0.4) 10deg,
        rgba(212, 175, 55, 0.8) 15deg,
        rgba(212, 175, 55, 0.4) 20deg,
        transparent 22deg 30deg
    );
    -webkit-mask: radial-gradient(transparent 65%, black 69%, black 72%, transparent 75%);
    mask: radial-gradient(transparent 65%, black 69%, black 72%, transparent 75%);
    animation: slowReverseSpin 60s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes slowReverseSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.wheel-rotator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-origin: center center;
    will-change: transform;
}

/* Layer 2: Outer Flaming Spikes attached to the rotator */
.wheel-rotator::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        transparent 0deg 4deg,
        rgba(212, 175, 55, 0.6) 6deg,
        rgba(212, 175, 55, 1) 7deg,
        rgba(212, 175, 55, 0.6) 8deg,
        transparent 10deg
    );
    -webkit-mask: radial-gradient(transparent 64%, black 68%, transparent 71%);
    mask: radial-gradient(transparent 64%, black 68%, transparent 71%);
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.7));
}

/* Layer 3: Ornate Inner Gemstone Ring (Ruby, Gold, Emerald, Gold) */
.wheel-rotator::after {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #d11a2a 0deg 4deg,       /* Ruby Red */
        rgba(212, 175, 55, 0.8) 4deg 6deg, /* Gold Separator */
        #008744 6deg 10deg,      /* Emerald Green */
        rgba(212, 175, 55, 0.8) 10deg 12deg /* Gold Separator */
    );
    -webkit-mask: radial-gradient(transparent 68%, black 69%, black 70.5%, transparent 71.5%);
    mask: radial-gradient(transparent 68%, black 69%, black 70.5%, transparent 71.5%);
    pointer-events: none;
    opacity: 0.8;
}

/* Layer 4: Delicate inner filigree ring */
.wheel-rotator > .inner-gold-ring {
    content: '';
    position: absolute;
    top: 40px; left: 40px; right: 40px; bottom: 40px;
    border-radius: 50%;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2), inset 0 0 8px rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

/* Menu Items */
.wheel-item {
    position: absolute;
    left: 175px; 
    top: 175px;
    width: 175px;
    height: 20px;
    margin-top: -10px;
    transform-origin: left center;
    cursor: pointer;
    z-index: 5;
}

.wheel-item span {
    display: block;
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    
    color: var(--accent);
    font-family: var(--font-fashion);
    font-size: 0.7rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    white-space: normal;
    max-width: 100px;
    line-height: 1.3;
    text-align: left;
    
    text-shadow: 0 2px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

/* Base item dots */
.wheel-item span::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Jewel-encrusted menu pointers */
.wheel-item:nth-child(odd) span::before {
    background: radial-gradient(circle at top left, #00ff80 0%, #008744 60%, #004d26 100%); /* 3D Emerald */
    box-shadow: 0 0 6px #008744, 0 0 2px rgba(212,175,55,1);
    border: 1px solid #ffdf00;
}

.wheel-item:nth-child(even) span::before {
    background: radial-gradient(circle at top left, #ff4d4d 0%, #d11a2a 60%, #800000 100%); /* 3D Ruby */
    box-shadow: 0 0 6px #d11a2a, 0 0 2px rgba(212,175,55,1);
    border: 1px solid #ffdf00;
}

.wheel-item:hover span {
    font-weight: 800;
    text-shadow: 0 0 15px rgba(212, 175, 55, 1), 0 2px 8px rgba(0,0,0,1);
    letter-spacing: 3px;
    color: #fff;
}

.wheel-item:hover span::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 15px var(--accent);
}

/* Center Hub (The Heart of the Chakra) */
.wheel-hub {
    position: absolute;
    left: 175px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    
    /* Deep glowing core */
    background: radial-gradient(circle at center, rgba(120, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 60%);
    border: 4px double rgba(212, 175, 55, 0.9); /* Ornate double border */
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.8);
    
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: grab;
    transition: all 0.3s ease;
}

/* Lotus Star pattern inside the Hub */
.wheel-hub::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        transparent 0deg 30deg,
        rgba(212, 175, 55, 0.3) 35deg,
        rgba(212, 175, 55, 0.8) 45deg,
        rgba(212, 175, 55, 0.3) 55deg,
        transparent 60deg
    );
    pointer-events: none;
    opacity: 0.7;
}

/* Bright Central Golden Gem */
.wheel-hub::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #fff 0%, #d4af37 40%, #8c7322 100%);
    box-shadow: 0 0 15px rgba(212,175,55,1), 0 0 30px rgba(212,175,55,0.6);
    pointer-events: none;
}

.wheel-hub:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.9), inset 0 0 30px rgba(212, 175, 55, 0.9);
}

.hub-text {
    color: #fff;
    font-family: var(--font-fashion);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(212, 175, 55, 1), 0 2px 4px rgba(0,0,0,1);
    transform: translateX(10px);
    z-index: 2; /* Sit above the inner gem */
}
