/**
 * Shuffle Text Animation Styles
 */

.shuffle-parent {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    will-change: transform;
    line-height: 1.2;
    visibility: hidden;
}

.shuffle-parent.is-ready {
    visibility: visible;
}

.shuffle-char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
    position: relative;
}

.shuffle-char-wrapper > span {
    display: inline-flex;
    will-change: transform;
}

.shuffle-char {
    line-height: 1;
    display: inline-block;
    text-align: center;
}

/* Preloader Shuffle Text Styles */
.preloader-shuffle-text {
    font-size: 1.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 177, 66, 1);
    margin-top: 3rem;
    text-align: center;
    visibility: hidden;
}

.preloader-shuffle-text.is-ready {
    visibility: visible;
}

/* Add glow effect to shuffle text */
.preloader-shuffle-text .shuffle-char {
    text-shadow: 0 0 20px rgba(255, 177, 66, 0.5),
                 0 0 40px rgba(255, 120, 80, 0.3);
}

/* Responsive sizing */
@media (max-width: 768px) {
    .preloader-shuffle-text {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .preloader-shuffle-text {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }
}

/* Theme support */
body[data-theme="light"] .preloader-shuffle-text {
    color: rgba(235, 157, 46, 1);
}

body[data-theme="light"] .preloader-shuffle-text .shuffle-char {
    text-shadow: 0 0 20px rgba(235, 157, 46, 0.5),
                 0 0 40px rgba(255, 100, 60, 0.3);
}
