/* TEDx Minna Custom Mouse Follower Styles */

/* Enhanced Mouse Follower with TEDx Red Theme */
.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.mouse-follower .cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: rgba(230, 43, 30, 0.2) !important;
    border: 2px solid #e62b1e !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 20px rgba(230, 43, 30, 0.3);
}

.mouse-follower .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #e62b1e !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.05s ease-out;
    box-shadow: 0 0 10px rgba(230, 43, 30, 0.5);
}

/* Hover effects for different elements */
.mouse-follower.highlight-cursor-head .cursor-outline {
    width: 60px !important;
    height: 60px !important;
    background-color: rgba(230, 43, 30, 0.1) !important;
    border-color: #e62b1e !important;
    border-width: 3px !important;
}

.mouse-follower.highlight-cursor-head .cursor-dot {
    width: 12px !important;
    height: 12px !important;
    background-color: #e62b1e !important;
}

.mouse-follower.highlight-cursor-para .cursor-outline {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(230, 43, 30, 0.15) !important;
}

.mouse-follower.highlight-cursor-para .cursor-dot {
    width: 10px !important;
    height: 10px !important;
    background-color: rgba(230, 43, 30, 0.8) !important;
}

/* Button hover effects */
.mouse-follower.highlight-cursor-btn .cursor-outline {
    width: 70px !important;
    height: 70px !important;
    background-color: rgba(230, 43, 30, 0.3) !important;
    border-color: #ff4444 !important;
    border-width: 3px !important;
    animation: pulse-cursor 1s infinite;
}

.mouse-follower.highlight-cursor-btn .cursor-dot {
    width: 15px !important;
    height: 15px !important;
    background-color: #ff4444 !important;
}

/* Link hover effects */
.mouse-follower.highlight-cursor-link .cursor-outline {
    width: 55px !important;
    height: 55px !important;
    background-color: rgba(230, 43, 30, 0.2) !important;
    border-color: #e62b1e !important;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mouse-follower.highlight-cursor-link .cursor-dot {
    width: 12px !important;
    height: 12px !important;
    background-color: #e62b1e !important;
}

/* Image hover effects */
.mouse-follower.highlight-cursor-img .cursor-outline {
    width: 80px !important;
    height: 80px !important;
    background-color: rgba(230, 43, 30, 0.1) !important;
    border-color: #e62b1e !important;
    border-style: dashed !important;
}

.mouse-follower.highlight-cursor-img .cursor-dot {
    width: 6px !important;
    height: 6px !important;
    background-color: #e62b1e !important;
}

/* Text selection effect */
.mouse-follower.highlight-cursor-text .cursor-outline {
    width: 45px !important;
    height: 45px !important;
    background-color: rgba(230, 43, 30, 0.25) !important;
    border-color: #e62b1e !important;
}

.mouse-follower.highlight-cursor-text .cursor-dot {
    width: 2px !important;
    height: 20px !important;
    border-radius: 1px !important;
    background-color: #e62b1e !important;
}

/* Animations */
@keyframes pulse-cursor {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .mouse-follower {
        display: none !important;
    }
}

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none !important;
    }
    
    a, button, input, textarea, select {
        cursor: none !important;
    }
    
    .cursor-pointer {
        cursor: none !important;
    }
}

/* Special effects for TEDx elements */
.tedx-element:hover ~ .mouse-follower .cursor-outline {
    background: linear-gradient(45deg, rgba(230, 43, 30, 0.3), rgba(255, 68, 68, 0.3)) !important;
    border-color: #ff4444 !important;
    animation: pulse-cursor 0.8s infinite;
}

.tedx-element:hover ~ .mouse-follower .cursor-dot {
    background: linear-gradient(45deg, #e62b1e, #ff4444) !important;
    box-shadow: 0 0 15px rgba(230, 43, 30, 0.7);
}

/* Loading state */
.mouse-follower.loading .cursor-outline {
    animation: spin 1s linear infinite;
    border-style: dashed !important;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Disabled state */
.mouse-follower.disabled .cursor-outline {
    background-color: rgba(128, 128, 128, 0.2) !important;
    border-color: #808080 !important;
}

.mouse-follower.disabled .cursor-dot {
    background-color: #808080 !important;
}