/* ══════════════════════════════════════════════════════════════════════════════
   UnExplores Cyber Cursor & Platform Protection System
   Author: UnExplores Tech Innovations
   ══════════════════════════════════════════════════════════════════════════════ */

@media (pointer: fine) {
    /* Hide system cursor on fine pointer desktop devices */
    body, a, button, input, select, textarea, [role="button"], label {
        cursor: none !important;
    }
}

/* Base cursor elements */
.cyber-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #1FB3E5;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color 0.2s ease,
                opacity 0.3s ease;
    box-shadow: 0 0 10px #1FB3E5, 0 0 20px rgba(31, 179, 229, 0.6);
    will-change: transform, left, top;
}

.cyber-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(31, 179, 229, 0.65);
    background: rgba(31, 179, 229, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background-color 0.25s ease,
                border-radius 0.25s ease,
                opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(31, 179, 229, 0.2), inset 0 0 10px rgba(31, 179, 229, 0.1);
    will-change: transform, left, top;
}

/* Pulse trail effect */
.cyber-cursor-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(121, 199, 70, 0.4);
    border-radius: 50%;
    animation: cyberCursorRotate 8s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

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

/* Hover active interactive states */
.cyber-cursor-ring.is-hovering {
    width: 54px;
    height: 54px;
    border-color: #79C746;
    background: rgba(121, 199, 70, 0.1);
    box-shadow: 0 0 25px rgba(121, 199, 70, 0.4), inset 0 0 15px rgba(121, 199, 70, 0.2);
}

.cyber-cursor-ring.is-hovering::after {
    border-color: rgba(31, 179, 229, 0.7);
    animation-duration: 4s;
}

.cyber-cursor-dot.is-hovering {
    width: 6px;
    height: 6px;
    background: #79C746;
    box-shadow: 0 0 12px #79C746;
}

/* Text editing hover state */
.cyber-cursor-ring.is-text {
    width: 20px;
    height: 32px;
    border-radius: 6px;
    border-color: #1FB3E5;
    background: rgba(31, 179, 229, 0.08);
}

.cyber-cursor-dot.is-text {
    height: 16px;
    width: 2px;
    border-radius: 1px;
}

/* Click click state */
.cyber-cursor-ring.is-clicking {
    transform: translate(-50%, -50%) scale(0.75);
    border-color: #38C8F7;
    background: rgba(31, 179, 229, 0.3);
}

.cyber-cursor-dot.is-clicking {
    transform: translate(-50%, -50%) scale(1.6);
    background: #ffffff;
}

/* Cursor hidden state when mouse leaves window */
.cyber-cursor-hidden {
    opacity: 0 !important;
}

/* Cyber Right-Click Shield Toast */
.cyber-shield-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(6, 13, 46, 0.95);
    border: 1px solid rgba(31, 179, 229, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(31, 179, 229, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #e2e8f0;
    padding: 10px 22px;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-shield-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cyber-shield-toast i {
    color: #1FB3E5;
    font-size: 14px;
    animation: cyberShieldPulse 1.5s infinite;
}

@keyframes cyberShieldPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.8; color: #79C746; }
}
