/* Hexaparts - WordPress Plugin Styles */

.hexaparts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--hexaparts-z-index, -1);
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

/* Ensure visibility on all themes */
body .hexaparts-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mirror layer effect - transparent background */
.hexaparts-container.mirror-layer {
    background: transparent !important;
}

/* Ensure particles don't interfere with page content */
.hexaparts-container {
    isolation: isolate;
}

.hexaparts-particle {
    position: absolute;
    width: var(--particle-size, 80px);
    height: var(--particle-size, 80px);
    background: transparent;
    transition: transform 0.1s linear, opacity 0.3s ease;
    transform-origin: center center;
    pointer-events: none;
}

.hexaparts-particle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Default colors if not specified */
.hexaparts-particle.color-1 svg { stroke: rgba(0, 188, 212, 0.8); filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.4)); }
.hexaparts-particle.color-2 svg { stroke: rgba(76, 175, 80, 0.8); filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.4)); }
.hexaparts-particle.color-3 svg { stroke: rgba(33, 150, 243, 0.8); filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.4)); }
.hexaparts-particle.color-4 svg { stroke: rgba(156, 39, 176, 0.8); filter: drop-shadow(0 0 8px rgba(156, 39, 176, 0.4)); }

.hexaparts-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.05s linear, opacity 0.2s ease;
    opacity: 0;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

body.hexaparts-cursor-active .hexaparts-cursor {
    opacity: 1;
}

/* Hide default cursor */
body.hexaparts-cursor-active {
    cursor: none !important;
}

body.hexaparts-cursor-active a, 
body.hexaparts-cursor-active button, 
body.hexaparts-cursor-active input, 
body.hexaparts-cursor-active select, 
body.hexaparts-cursor-active textarea,
body.hexaparts-cursor-active [role="button"] {
    cursor: none !important;
}

/* Cursor Styles */
.hexaparts-cursor.cursor-circle {
    border: 2px solid;
    border-radius: 50%;
}

.hexaparts-cursor.cursor-square {
    border: 2px solid;
}

.hexaparts-cursor.cursor-ring {
    border: 2px solid;
    border-radius: 50%;
    background: transparent !important;
}

/* Cursor pulse animation */
@keyframes hexaparts-cursor-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
    .hexaparts-particle {
        transition: none !important;
    }
}

/* Elementor widget specific styles */
.hexaparts-widget {
    position: relative;
    width: 100%;
    min-height: 100px;
    overflow: hidden;
}

.hexaparts-widget .hexaparts-container {
    position: absolute;
    width: 100%;
    height: 100%;
}
