/* =========================================================
   ParticleMorph Elementor Widget — Stylesheet
   ========================================================= */

/* ----- Wrapper ----- */
.pm-widget-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
}

/* ----- Canvas Wrapper ----- */
.pm-canvas-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #0a0a14;
    cursor: crosshair;
}

.pm-canvas-wrapper.pm-transforming {
    cursor: pointer;
}

/* ----- Canvas ----- */
.pm-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    touch-action: none;
}

/* ----- Navigation Dots ----- */
.pm-nav-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    background-color: #ffffff;
}

.pm-dot.active,
.pm-dot:hover {
    opacity: 1;
    transform: scale(1.3);
}

/* ----- Counter ----- */
.pm-counter {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.pm-counter-current {
    color: #ffffff;
    font-weight: 700;
}

/* ----- Hint ----- */
.pm-hint {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.pm-hint.hidden {
    opacity: 0;
}

.pm-hint-icon {
    font-size: 14px;
    animation: pm-pulse 2s ease-in-out infinite;
}

@keyframes pm-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

/* =========================================================
   Lightbox
   ========================================================= */

.pm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pm-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.pm-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Content box */
.pm-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

/* Image wrapper */
.pm-lightbox-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    max-width: 90vw;
    max-height: 70vh;
    line-height: 0;

    /* animations */
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity   0.4s ease;
}

.pm-lightbox.active .pm-lightbox-img-wrap {
    transform: scale(1);
    opacity: 1;
}

.pm-lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
}

/* Close, Prev, Next Buttons */
.pm-lightbox-close,
.pm-lightbox-prev,
.pm-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.pm-lightbox-close {
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-lightbox-prev,
.pm-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 0;
}

.pm-lightbox-prev { left: -58px; }
.pm-lightbox-next { right: -58px; }

.pm-lightbox-close:hover,
.pm-lightbox-prev:hover,
.pm-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pm-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.pm-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* Caption */
.pm-lightbox-caption-wrap {
    margin-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    padding: 0 20px;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.pm-lightbox.active .pm-lightbox-caption-wrap {
    opacity: 1;
    transform: translateY(0);
}

.pm-lightbox-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.pm-lightbox-caption {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Auto-close progress bar */
.pm-lightbox-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(123, 104, 238, 0.8);
    border-radius: 0 0 6px 6px;
    transition: width linear;
}

/* Slide animation variant */
.pm-lightbox.anim-slide .pm-lightbox-img-wrap {
    transform: translateX(40px);
    opacity: 0;
}
.pm-lightbox.anim-slide.active .pm-lightbox-img-wrap {
    transform: translateX(0);
    opacity: 1;
}
.pm-lightbox.anim-slide.slide-left .pm-lightbox-img-wrap {
    transform: translateX(-40px);
    opacity: 0;
}

/* =========================================================
   Editor Placeholder
   ========================================================= */

.pm-editor-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(135deg, #0a0a14 0%, #14142a 100%) !important;
    border: 2px dashed rgba(123, 104, 238, 0.4);
    border-radius: 8px;
    cursor: default;
}

.pm-editor-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
}

.pm-editor-label .eicon-gallery-grid {
    font-size: 40px;
    color: rgba(123, 104, 238, 0.7);
}

.pm-editor-label strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.pm-editor-label em {
    font-size: 12px;
    font-style: normal;
    opacity: 0.7;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .pm-lightbox-prev { left: -46px; width: 36px; height: 36px; font-size: 22px; }
    .pm-lightbox-next { right: -46px; width: 36px; height: 36px; font-size: 22px; }
    .pm-lightbox-close { top: -40px; }
    .pm-lightbox-content { max-width: 95vw; }
    .pm-lightbox-img { max-width: 95vw; max-height: 60vh; }
    .pm-lightbox-img-wrap { max-width: 95vw; max-height: 60vh; }
}

@media (max-width: 480px) {
    .pm-lightbox-prev,
    .pm-lightbox-next {
        top: auto;
        bottom: 80px;
        transform: none;
        width: 40px;
        height: 40px;
    }
    .pm-lightbox-prev { left: 20px; }
    .pm-lightbox-next { right: 20px; }
    .pm-lightbox-prev:hover,
    .pm-lightbox-next:hover { transform: none; }
}
