/**
 * WebGL FX Suite – Frontend CSS v1.0.0
 * Alle Klassen mit .wfxs-* Präfix isoliert.
 * Enthält Stile für: Slideshow, Particle BG, Hover Shatter, Text Reveal
 */

/* ══════════════════════════════════════════════════════════════
   Shared / Reset
   ══════════════════════════════════════════════════════════════ */
.wfxs-slideshow, .wfxs-particle-bg, .wfxs-hover-shatter, .wfxs-text-reveal {
    box-sizing: border-box;
    position:   relative;
    overflow:   hidden;
}

/* ══════════════════════════════════════════════════════════════
   FX Slideshow
   ══════════════════════════════════════════════════════════════ */
.wfxs-slideshow {
    width:       100%;
    height:      500px;
    background:  #0a0a0a;
    outline:     none;
    cursor:      pointer;
    user-select: none;
    -webkit-user-select: none;
}
.wfxs-canvas-container {
    position: absolute; inset: 0;
    width: 100%; height: 100%; overflow: hidden;
}
.wfxs-canvas { display: block; width: 100%; height: 100%; }

/* Fallback */
.wfxs-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.wfxs-fallback-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .7s ease-in-out;
}
.wfxs-fallback-img.wfxs-fallback-active { opacity: 1; }

/* Navigation */
.wfxs-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.55);
    border-radius: 50%; color: #fff; cursor: pointer;
    opacity: 0; transition: opacity .25s, background .2s, transform .2s;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.wfxs-nav-btn svg { width: 20px; height: 20px; flex-shrink: 0; pointer-events: none; }
.wfxs-nav-prev { left: 16px; }
.wfxs-nav-next { right: 16px; }
.wfxs-slideshow:hover .wfxs-nav-btn,
.wfxs-slideshow:focus-within .wfxs-nav-btn { opacity: 1; }
.wfxs-nav-btn:hover  { background: rgba(0,0,0,.65); transform: translateY(-50%) scale(1.08); }
.wfxs-nav-btn:active { transform: translateY(-50%) scale(.94); }
.wfxs-nav-btn:focus-visible { outline: 3px solid rgba(255,255,255,.85); outline-offset: 2px; }

/* Responsive navigation via Elementor prefix_class */
.wfxs-arrows-hide .wfxs-nav-btn { display: none !important; }
.wfxs-dots-hide   .wfxs-dots    { display: none !important; }
@media (max-width: 1024px) {
    .wfxs-arrows-hide-tablet .wfxs-nav-btn { display: none !important; }
    .wfxs-arrows-show-tablet .wfxs-nav-btn { display: flex !important; opacity: 1 !important; }
    .wfxs-dots-hide-tablet   .wfxs-dots    { display: none !important; }
}
@media (max-width: 767px) {
    .wfxs-arrows-hide-mobile .wfxs-nav-btn { display: none !important; }
    .wfxs-arrows-show-mobile .wfxs-nav-btn { display: flex !important; opacity: 1 !important; }
    .wfxs-dots-hide-mobile   .wfxs-dots    { display: none !important; }
    .wfxs-slideshow          .wfxs-nav-btn { opacity: 1; }
}

/* Dots */
.wfxs-dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 8px; align-items: center;
}
.wfxs-dot {
    width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,.4); cursor: pointer; opacity: .7;
    transition: background .25s, transform .2s, opacity .25s;
}
.wfxs-dot:hover          { background: rgba(255,255,255,.75); transform: scale(1.3); opacity: 1; }
.wfxs-dot.wfxs-dot-active{ background: #fff; transform: scale(1.4); opacity: 1; }
.wfxs-dot:focus-visible  { outline: 3px solid rgba(255,255,255,.85); outline-offset: 2px; }

/* Loading */
.wfxs-loading {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5,5,15,.82);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.wfxs-loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,.12); border-top-color: rgba(255,255,255,.9);
    border-radius: 50%; animation: wfxs-spin .75s linear infinite;
}
@keyframes wfxs-spin { to { transform: rotate(360deg); } }

/* Effekt-Badge (nur im Editor) */
.wfxs-effect-badge {
    display: none; position: absolute; top: 10px; right: 10px; z-index: 30;
    background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-family: sans-serif;
    padding: 4px 10px; border-radius: 20px; pointer-events: none;
    backdrop-filter: blur(4px);
}
.elementor-editor-active .wfxs-effect-badge { display: block; }

/* ══════════════════════════════════════════════════════════════
   Particle Background
   ══════════════════════════════════════════════════════════════ */
.wfxs-particle-bg {
    width: 100%; height: 400px;
    background: #0d0d1a;
}
.wfxs-particle-canvas {
    display: block; width: 100%; height: 100%;
    position: absolute; inset: 0;
}

/* ══════════════════════════════════════════════════════════════
   Hover Shatter
   ══════════════════════════════════════════════════════════════ */
.wfxs-hover-shatter {
    width: 100%; height: 300px;
    background: #111; cursor: pointer;
    display: block;
}
.wfxs-hs-canvas {
    display: block; width: 100%; height: 100%;
    position: absolute; inset: 0; z-index: 1;
}
.wfxs-hs-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}

/* ══════════════════════════════════════════════════════════════
   Text Reveal
   ══════════════════════════════════════════════════════════════ */
.wfxs-text-reveal {
    width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: center;
}
.wfxs-tr-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; z-index: 1;
}
.wfxs-tr-text {
    position: relative; z-index: 0;
    margin: 0; padding: 0 16px;
    width: 100%;
}
.wfxs-tr-align-left  .wfxs-tr-text { text-align: left; }
.wfxs-tr-align-center .wfxs-tr-text { text-align: center; }
.wfxs-tr-align-right .wfxs-tr-text { text-align: right; }

/* ══════════════════════════════════════════════════════════════
   Reduced Motion
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .wfxs-nav-btn, .wfxs-dot, .wfxs-fallback-img { transition: none !important; }
    .wfxs-loading-spinner { animation: none !important; border-top-color: #fff; }
}
