/**
 * Directory Category Rotation Styles
 * Handles the visual appearance and transitions for rotating categories
 * Categories are now truncated in PHP, so no CSS overflow hacks needed
 */

/* Container for rotating categories */
.directory-cat-rotating {
    display: inline-block;
    position: relative;
    min-height: 1.2em;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 14px;
}

/* Individual category items */
.directory-cat-rotating .category-item {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Active category */
.directory-cat-rotating .category-item.active {
    position: relative;
    opacity: 1;
}

/* Optional: Add a subtle animation when category changes */
@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.directory-cat-rotating .category-item.active {
    animation: categoryFadeIn 0.5s ease-in-out;
}