/**
 * CSS 3D Emoji Icons - No JavaScript, No CSP violations
 * Pure CSS 3D transforms with REAL Z-DEPTH
 */

.quantum-3d-icon {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantum-3d-icon .emoji-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: iconFloat 3s ease-in-out infinite, iconRotate 8s linear infinite;
}

.quantum-3d-icon .emoji-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform-style: preserve-3d;
    animation: emojiPulse 2s ease-in-out infinite;
}

/* Create 3D extrusion with multiple layers */
.quantum-3d-icon .emoji-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 64px;
    line-height: 64px;
    text-align: center;
    transform-style: preserve-3d;
}

/* Layer 0 (front) - Full brightness */
.quantum-3d-icon .emoji-layer:nth-child(1) {
    transform: translateZ(20px);
    filter: drop-shadow(0 0 20px rgba(0, 207, 255, 1))
            drop-shadow(0 0 40px rgba(0, 207, 255, 0.6));
    z-index: 20;
}

/* Layers 2-10 create depth */
.quantum-3d-icon .emoji-layer:nth-child(2) {
    transform: translateZ(18px);
    opacity: 0.95;
    filter: brightness(0.98) drop-shadow(0 0 10px rgba(0, 207, 255, 0.4));
    z-index: 19;
}

.quantum-3d-icon .emoji-layer:nth-child(3) {
    transform: translateZ(16px);
    opacity: 0.9;
    filter: brightness(0.95) drop-shadow(0 0 8px rgba(0, 207, 255, 0.3));
    z-index: 18;
}

.quantum-3d-icon .emoji-layer:nth-child(4) {
    transform: translateZ(14px);
    opacity: 0.85;
    filter: brightness(0.9);
    z-index: 17;
}

.quantum-3d-icon .emoji-layer:nth-child(5) {
    transform: translateZ(12px);
    opacity: 0.8;
    filter: brightness(0.85);
    z-index: 16;
}

.quantum-3d-icon .emoji-layer:nth-child(6) {
    transform: translateZ(10px);
    opacity: 0.75;
    filter: brightness(0.8);
    z-index: 15;
}

.quantum-3d-icon .emoji-layer:nth-child(7) {
    transform: translateZ(8px);
    opacity: 0.7;
    filter: brightness(0.75);
    z-index: 14;
}

.quantum-3d-icon .emoji-layer:nth-child(8) {
    transform: translateZ(6px);
    opacity: 0.65;
    filter: brightness(0.7);
    z-index: 13;
}

.quantum-3d-icon .emoji-layer:nth-child(9) {
    transform: translateZ(4px);
    opacity: 0.6;
    filter: brightness(0.65);
    z-index: 12;
}

.quantum-3d-icon .emoji-layer:nth-child(10) {
    transform: translateZ(2px);
    opacity: 0.55;
    filter: brightness(0.6);
    z-index: 11;
}

/* Back layer - darkest */
.quantum-3d-icon .emoji-layer:nth-child(11) {
    transform: translateZ(0px);
    opacity: 0.5;
    filter: brightness(0.5) blur(0.5px);
    z-index: 10;
}

/* Glow rings */
.quantum-3d-icon .glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 207, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    animation: ringPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.6),
                inset 0 0 20px rgba(0, 207, 255, 0.3);
}

.quantum-3d-icon .glow-ring:nth-child(2) {
    width: 90%;
    height: 90%;
    animation-delay: 0.3s;
    opacity: 0.7;
}

.quantum-3d-icon .glow-ring:nth-child(3) {
    width: 100%;
    height: 100%;
    animation-delay: 0.6s;
    opacity: 0.5;
}

/* Particles */
.quantum-3d-icon .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00cfff 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 10px #00cfff,
                0 0 20px #00cfff,
                0 0 30px rgba(0, 207, 255, 0.5);
    animation: particleOrbit 4s linear infinite;
}

.quantum-3d-icon .particle:nth-child(4) { animation-delay: 0s; }
.quantum-3d-icon .particle:nth-child(5) { animation-delay: -1s; }
.quantum-3d-icon .particle:nth-child(6) { animation-delay: -2s; }
.quantum-3d-icon .particle:nth-child(7) { animation-delay: -3s; }

/* Hover effects - show more 3D depth and speed up */
.quantum-3d-icon[data-icon-type="lock"]:hover .emoji-container {
    animation-duration: 1.6s, 4s;
}

.quantum-3d-icon[data-icon-type="compress"]:hover .emoji-container {
    animation-duration: 1.4s, 3.5s;
}

.quantum-3d-icon[data-icon-type="question"]:hover .emoji-container {
    animation-duration: 1.8s, 4.5s;
}

.quantum-3d-icon[data-icon-type="shield"]:hover .emoji-container {
    animation-duration: 1.5s, 3.8s;
}

.quantum-3d-icon:hover .emoji-main {
    transform: translate(-50%, -50%) scale(1.15);
}

.quantum-3d-icon:hover .emoji-layer:nth-child(1) {
    transform: translateZ(30px);
    filter: drop-shadow(0 0 30px rgba(0, 207, 255, 1))
            drop-shadow(0 0 60px rgba(0, 207, 255, 0.8));
}

/* Animations - base speeds */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotateX(15deg) rotateY(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(20deg) rotateY(10deg);
    }
}

@keyframes iconRotate {
    0% {
        transform: rotateY(0deg) rotateX(15deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(15deg);
    }
}

/* Individual icon speed variations - subtle differences for organic feel */
.quantum-3d-icon[data-icon-type="lock"] .emoji-container {
    animation: iconFloat 3.2s ease-in-out infinite, iconRotate 8s linear infinite;
}

.quantum-3d-icon[data-icon-type="compress"] .emoji-container {
    animation: iconFloat 2.8s ease-in-out infinite, iconRotate 7s linear infinite;
}

.quantum-3d-icon[data-icon-type="question"] .emoji-container {
    animation: iconFloat 3.5s ease-in-out infinite, iconRotate 9s linear infinite;
}

.quantum-3d-icon[data-icon-type="shield"] .emoji-container {
    animation: iconFloat 3s ease-in-out infinite, iconRotate 7.5s linear infinite;
}

@keyframes emojiPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: translate(-50%, -50%) rotateX(75deg) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) rotateX(75deg) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
        opacity: 0;
    }
}

/* Emoji layers are added via JavaScript with textContent */

/* Backdrop glow */
.quantum-3d-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 207, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}
