/* Text Swivel Frontend Styles */
.text-swivel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}

.text-swivel-content {
    white-space: nowrap;
    display: inline-block;
    padding-right: 50px;
}

/* Animation Classes */
.text-swivel-container[data-direction="left"] .text-swivel-content {
    animation: swivelLeft var(--swivel-duration, 10s) linear infinite;
}

.text-swivel-container[data-direction="right"] .text-swivel-content {
    animation: swivelRight var(--swivel-duration, 10s) linear infinite;
}

.text-swivel-container[data-direction="up"] {
    max-height: 50px;
}

.text-swivel-container[data-direction="up"] .text-swivel-content {
    animation: swivelUp var(--swivel-duration, 10s) linear infinite;
}

.text-swivel-container[data-direction="down"] {
    max-height: 50px;
}

.text-swivel-container[data-direction="down"] .text-swivel-content {
    animation: swivelDown var(--swivel-duration, 10s) linear infinite;
}

.text-swivel-container[data-direction="none"] .text-swivel-content {
    animation: none;
    white-space: normal;
}

/* Keyframe Animations */
@keyframes swivelLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes swivelRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes swivelUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes swivelDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Pause on hover */
.text-swivel-container:hover .text-swivel-content {
    animation-play-state: paused;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .text-swivel-container {
        font-size: 14px !important;
    }
}

/* Text formatting support */
.text-swivel-content strong {
    font-weight: bold;
}

.text-swivel-content em {
    font-style: italic;
}

.text-swivel-content u {
    text-decoration: underline;
}

.text-swivel-content a {
    color: inherit;
    text-decoration: underline;
}

.text-swivel-content a:hover {
    opacity: 0.8;
}
