/* ═══════════════════════════════════════════════════════════════════════════
   MARQUEE COMPONENT - CSS
   ═══════════════════════════════════════════════════════════════════════════ */

.marquee{
    width: 100%;

    height: 125px;
}

/* Container */

.marquee-container {
    margin:20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* overflow: hidden; */
    position: relative;
}

/* Content wrapper with animation */
.marquee-content {
    display: flex;
    gap: 4rem;
    top: 0;
    width: fit-content;
    animation: marquee var(--marquee-speed, 30s) linear infinite;
    position: absolute;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
}

/* Direction variants */
.marquee-left {
    animation-direction: normal;
}

.marquee-right {
    animation-direction: reverse;
}

/* Individual items */
.marquee-item {
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
    letter-spacing: -0.02em;
    user-select: none;
}

/* Separator */
.marquee-separator {
    color: var(--accent);
    font-weight: 400;
    opacity: 0.5;
}

/* Animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

/* Hover effect - pause animation */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Gradient overlay on sides (optional aesthetic) */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
     top: 0; /* */
    bottom: 0;
    width: 100px;
    height: 50px;
    pointer-events: none;
    z-index: 1;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .marquee-item {
        font-size: 1.5rem;
    }

    .marquee-content {
        gap: 2rem;
    }

}

@media (max-width: 480px) {
    .marquee-item {
        font-size: 1.25rem;
    }

    .marquee-content {
        gap: 1.5rem;
    }
}

/* Theme variants */
.marquee-container.marquee-accent {
    background: linear-gradient(90deg,
        rgba(0, 255, 136, 0.05),
        rgba(0, 212, 255, 0.05)
    );
}

.marquee-container.marquee-accent .marquee-item {
    background: linear-gradient(135deg, var(--accent), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Speed variants (can be set via inline style or custom classes) */
.marquee-slow .marquee-content {
    animation-duration: 60s;
}

.marquee-fast .marquee-content {
    animation-duration: 15s;
}
