/**
 * Events Marquee Pro - Base Styles
 *
 * @package Events_Marquee_Pro
 */

/* Marquee Link */
.emp-marquee-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Marquee Wrapper with Fade Edges */
.emp-marquee-wrap {
    position: relative;
    overflow: hidden;
}

.emp-marquee-wrap::before,
.emp-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--emp-fade-width, 100px);
    z-index: 2;
    pointer-events: none;
}

.emp-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.emp-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Marquee Container */
.emp-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Pause on Hover */
.emp-marquee:hover .emp-marquee-track {
    animation-play-state: paused;
}

/* Marquee Track (animated) */
.emp-marquee-track {
    display: inline-flex;
    animation: emp-marquee-scroll 60s linear infinite;
    will-change: transform;
}

/* Marquee Item */
.emp-marquee-item {
    flex-shrink: 0;
    text-transform: uppercase;
    padding: 0 30px;
    white-space: nowrap;
}

/* Separator after each item */
.emp-marquee-item::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    opacity: 0.35;
    vertical-align: middle;
    margin-left: 30px;
}

/* Animation */
@keyframes emp-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* No Events Fallback */
.emp-no-events {
    padding: 20px;
    text-align: center;
    background: #f0f0f1;
    color: #646970;
    font-size: 14px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .emp-marquee-item {
        font-size: 12px !important;
        padding: 0 20px;
    }

    .emp-marquee-item::after {
        width: 30px;
        margin-left: 20px;
    }

    .emp-marquee-wrap::before,
    .emp-marquee-wrap::after {
        width: 50px;
    }
}
