/* ════════════════════════════════════════════════
   Plasma46 – Stile
   Version 1.0.0
════════════════════════════════════════════════ */

/* ─── Widget-Container ────────────────────── */
.plasma46-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    touch-action: none;
    cursor: crosshair;
}

.plasma46-widget canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    inset: 0;
}

/* ─── Lightbox ────────────────────────────── */
.plasma46-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.plasma46-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 14px;
    /* Elektrischer Glow-Rahmen */
    box-shadow:
        0 0 0 1px rgba(80, 160, 255, 0.25),
        0 0 30px rgba(80, 140, 255, 0.35),
        0 24px 80px rgba(0, 0, 0, 0.65);
    transition:
        transform .38s cubic-bezier(.22, 1, .36, 1),
        opacity   .30s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.plasma46-lightbox button {
    position: absolute;
    top: 18px;
    right: 26px;
    background: rgba(60, 100, 200, 0.18);
    border: 1px solid rgba(100, 160, 255, 0.3);
    color: #aaccff;
    font-size: 34px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background .2s, transform .2s, box-shadow .2s;
}

.plasma46-lightbox button:hover {
    background:  rgba(80, 140, 255, 0.32);
    box-shadow:  0 0 18px rgba(80, 140, 255, 0.45);
    transform:   scale(1.08);
}

/* ─── Reduzierte Bewegung ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .plasma46-lightbox img { transition: none; }
}

/* ─── Mobile ──────────────────────────────── */
@media (max-width: 480px) {
    .plasma46-lightbox img {
        max-width: 96vw;
        max-height: 82vh;
        border-radius: 10px;
    }
    .plasma46-lightbox button {
        top: 12px;
        right: 14px;
        font-size: 28px;
        width: 42px;
        height: 42px;
    }
}
