/* ========================================================================
   VoronoiAG – Dynamisches Voronoi-Mosaik Styles
   ======================================================================== */

.voronoi-ag-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: crosshair;
    background-color: #0a0a0a;
    border-radius: 4px;
}

.voronoi-ag-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Loader --- */
.voronoi-ag-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: inherit;
    transition: opacity 0.5s ease;
}

.voronoi-ag-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: voronoiSpin 0.8s linear infinite;
}

@keyframes voronoiSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Elementor Editor Hinweis --- */
.elementor-editor-active .voronoi-ag-container::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    pointer-events: none;
    z-index: 20;
}

/* --- Lightbox --- */
.voronoi-ag-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.voronoi-ag-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.voronoi-ag-lightbox-actions {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 2;
}

.voronoi-ag-lightbox-action {
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    text-decoration: none;
}

.voronoi-ag-lightbox-action:hover {
    opacity: 1;
    transform: scale(1.1);
}

.voronoi-ag-lightbox-action svg {
    width: 24px;
    height: 24px;
    display: block;
}

.voronoi-ag-lightbox-close {
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}
