/* ============================================
   ELITE DUAL-ROW MARQUEE — CINEMATIC EDITION
   Integrated info ticker + brand wall of shame
   ============================================ */

.marquee-ribbon {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg,
            rgba(6, 10, 23, 0.97) 0%,
            rgba(10, 18, 40, 0.98) 50%,
            rgba(6, 10, 23, 0.97) 100%);
    padding: 0;
    z-index: 50;
    font-family: 'Inter', sans-serif;
    box-shadow:
        inset 0 1px 0 rgba(59, 130, 246, 0.12),
        inset 0 -1px 0 rgba(59, 130, 246, 0.08),
        0 4px 30px rgba(0, 0, 0, 0.4);
}

/* === ANIMATED TOP BORDER — SUBTLE GLOW LINE === */
.marquee-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(30, 64, 175, 0.3) 15%,
            rgba(59, 130, 246, 0.4) 35%,
            rgba(56, 189, 248, 0.45) 50%,
            rgba(59, 130, 246, 0.4) 65%,
            rgba(30, 64, 175, 0.3) 85%,
            transparent 100%);
    background-size: 200% 100%;
    animation: laser-scan 8s linear infinite;
    z-index: 5;
}

/* === ANIMATED BOTTOM BORDER — SUBTLE SWEEP === */
.marquee-ribbon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 185, 129, 0.1) 20%,
            rgba(52, 211, 153, 0.25) 50%,
            rgba(16, 185, 129, 0.1) 80%,
            transparent 100%);
    background-size: 200% 100%;
    animation: laser-scan-reverse 8s linear infinite;
    z-index: 5;
}

@keyframes laser-scan {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes laser-scan-reverse {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === EDGE FADE MASKS (Cinematic vignette) === */
.marquee-ribbon .marquee-fade-left,
.marquee-ribbon .marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 4;
    pointer-events: none;
}

.marquee-ribbon .marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(6, 10, 23, 1) 0%, transparent 100%);
}

.marquee-ribbon .marquee-fade-right {
    right: 0;
    background: linear-gradient(-90deg, rgba(6, 10, 23, 1) 0%, transparent 100%);
}

/* === SCROLLING TRACK (Row 1 — Info) === */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 110s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === ROW 2 BRANDS — REVERSE DIRECTION, SAME SPEED === */
.marquee-track-brands {
    animation: marquee-scroll-reverse 110s linear infinite;
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-track-brands:hover {
    animation-play-state: paused;
}

/* === DIVIDER LINE BETWEEN ROWS === */
.marquee-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.08) 10%,
            rgba(59, 130, 246, 0.2) 30%,
            rgba(56, 189, 248, 0.3) 50%,
            rgba(59, 130, 246, 0.2) 70%,
            rgba(59, 130, 246, 0.08) 90%,
            transparent 100%);
    margin: 0;
}

/* === INDIVIDUAL INFO ITEMS === */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 40px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(203, 213, 225, 0.85);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.marquee-item:hover {
    color: #f8fafc;
}

/* === GLOWING DIAMOND SEPARATOR === */
.marquee-item::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
    border-radius: 1px;
    transform: rotate(45deg);
    margin-left: 28px;
    box-shadow:
        0 0 8px rgba(59, 130, 246, 0.6),
        0 0 20px rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
    animation: diamond-pulse 3s ease-in-out infinite;
}

@keyframes diamond-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 30px rgba(56, 189, 248, 0.4);
        opacity: 1;
    }
}

/* === ICON BADGE (Glass Morphism) === */
.marquee-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.15) 0%,
            rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.marquee-item:hover .marquee-icon {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.25) 0%,
            rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

.marquee-icon i {
    width: 14px;
    height: 14px;
    color: #60a5fa;
}

/* === HIGHLIGHTED / LIVE ITEMS === */
.marquee-item.highlight {
    color: #34d399;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.marquee-item.highlight .marquee-icon {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.15) 0%,
            rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}

.marquee-item.highlight .marquee-icon i {
    color: #34d399;
}

.marquee-item.highlight::after {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow:
        0 0 8px rgba(16, 185, 129, 0.6),
        0 0 20px rgba(16, 185, 129, 0.2);
}

/* === PULSING LIVE INDICATOR DOT === */
.marquee-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.marquee-live-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #10b981;
    border-radius: 50%;
    animation: live-core-pulse 2s ease-in-out infinite;
}

.marquee-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    animation: live-ring-expand 2s ease-out infinite;
}

@keyframes live-core-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

@keyframes live-ring-expand {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* === HOLOGRAPHIC SHIMMER ON HOVER === */
.marquee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.04) 40%,
            rgba(56, 189, 248, 0.07) 50%,
            rgba(59, 130, 246, 0.04) 60%,
            transparent 100%);
    transition: left 0.8s ease;
    pointer-events: none;
}

.marquee-item:hover::before {
    left: 100%;
}


/* ============================================
   ROW 2: BRAND ITEMS — WALL OF SHAME
   Premium integrated styling
   ============================================ */

.brand-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 48px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.5);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.brand-item:hover {
    color: rgba(203, 213, 225, 0.8);
}

/* Diamond separators for brands */
.brand-item::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(100, 116, 139, 0.4);
    border-radius: 1px;
    transform: rotate(45deg);
    margin-left: 36px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.brand-item:hover::after {
    background: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.3);
}

/* Brand icon styling */
.brand-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* === BRAND CATEGORIES — Color-Coded Icons === */

/* Cartel / Manufacturers — Warning Red */
.brand-item.brand-warn {
    color: rgba(239, 68, 68, 0.45);
}

.brand-item.brand-warn:hover {
    color: rgba(239, 68, 68, 0.8);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.brand-item.brand-warn i {
    color: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

.brand-item.brand-warn::after {
    background: rgba(239, 68, 68, 0.3);
}

/* Finance / Banks — Purple */
.brand-item.brand-finance {
    color: rgba(168, 85, 247, 0.5);
}

.brand-item.brand-finance:hover {
    color: rgba(168, 85, 247, 0.85);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.brand-item.brand-finance i {
    color: #a855f7;
    filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}

.brand-item.brand-finance::after {
    background: rgba(168, 85, 247, 0.3);
}

/* Insurance — Blue */
.brand-item.brand-insurance {
    color: rgba(59, 130, 246, 0.5);
}

.brand-item.brand-insurance:hover {
    color: rgba(59, 130, 246, 0.85);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.brand-item.brand-insurance i {
    color: #3b82f6;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.brand-item.brand-insurance::after {
    background: rgba(59, 130, 246, 0.3);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .marquee-item {
        padding: 10px 24px;
        font-size: 0.78rem;
        gap: 8px;
    }

    .marquee-item::after {
        margin-left: 16px;
        width: 4px;
        height: 4px;
    }

    .marquee-ribbon .marquee-fade-left,
    .marquee-ribbon .marquee-fade-right {
        width: 50px;
    }

    .marquee-icon {
        width: 22px;
        height: 22px;
    }

    .marquee-icon i {
        width: 11px;
        height: 11px;
    }

    .brand-item {
        padding: 8px 28px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .brand-item::after {
        margin-left: 20px;
        width: 3px;
        height: 3px;
    }
}