/* Frontend styles for WP Magical Mouse */

/* Base cursor styles */
body.wp-magical-mouse-active {
    cursor: none !important;
}

.wp-magical-mouse-cursor {
    position: fixed;
    pointer-events: none;
    width: 40px;
    height: 40px;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.wp-magical-mouse-cursor-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

/* Cursor sizes */
.wp-magical-mouse-cursor.size-small {
    width: 20px;
    height: 20px;
}

.wp-magical-mouse-cursor.size-medium {
    width: 40px;
    height: 40px;
}

.wp-magical-mouse-cursor.size-large {
    width: 60px;
    height: 60px;
}

/* Cursor states */
.wp-magical-mouse-cursor.hover .wp-magical-mouse-cursor-inner {
    width: 16px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.5);
}

.wp-magical-mouse-cursor.active .wp-magical-mouse-cursor-inner {
    width: 6px;
    height: 6px;
    background-color: #000;
}

/* Cursor types */
.wp-magical-mouse-cursor.type-image .wp-magical-mouse-cursor-inner {
    background-color: transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.wp-magical-mouse-cursor.type-text .wp-magical-mouse-cursor-inner {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #000;
}

/* Right-click message */
.wp-magical-mouse-message {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 999999;
    pointer-events: none;
    font-size: 14px;
    max-width: 300px;
    text-align: center;
}

/* Mobile styles */
@media (max-width: 768px) {
    .wp-magical-mouse-cursor {
        display: none;
    }
    
    body.wp-magical-mouse-active {
        cursor: auto !important;
    }
}
