/**
 * Block Styles
 */

.wp-block-surge-blocks-particle-sphere {
    position: relative;
    overflow: hidden;
    min-height: 400px; /* Default min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0;
}

/* The canvas background */
.wp-block-surge-blocks-particle-sphere__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: unset;
    z-index: -1; /* Behind content */
    pointer-events: auto; /* Allow interaction if enabled */
    display: block;
}

/* Inner content wrapper */
.wp-block-surge-blocks-particle-sphere__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--wp--style--root--padding-right, 2rem) var(--wp--style--root--padding-left, 2rem);
}

/* Noise control slider on frontend */
.wp-block-surge-blocks-particle-sphere__noise-control {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    user-select: none;
    max-width: 220px;
}

.wp-block-surge-blocks-particle-sphere__noise-control label {
    font-size: 12px;
    opacity: 0.9;
}

.wp-block-surge-blocks-particle-sphere__noise-control input {
    width: 100%;
    cursor: pointer;
}