/**
 * Spiral Text Widget Styles
 */

/* CSS Houdini @property for angle animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.wml-spiral-text {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.wml-st-spiral {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    color: #e0ecef;
    font-family: sans-serif;
}

@keyframes wml-spiral {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

.wml-st-character {
    font-size: 2.8rem;
    color: white;
    text-transform: uppercase;
    transform: translateY(calc(sin(var(--angle)) * 100px)) scale(calc(cos(var(--angle)) * 0.5 + 0.5));
    animation: wml-spiral 4s linear infinite;
}

/* Responsive */
@media (max-width: 490px) {
    .wml-st-character {
        font-size: 2.2rem;
    }
}

/* Builder placeholder */
.bricks-is-builder .wml-spiral-text {
    min-height: 300px;
}

