/* Currency Marquee Plugin Styles */
.currency-marquee-container {
    width: 100%;
    overflow: hidden;
    background-image: url(https: //wh1448708.ispot.cc/wp-content/uploads/2025/08/Flag-Syria.webp);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #1e2936;
    margin: 20px 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.currency-marquee-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.currency-marquee {
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
    z-index: 1;
    background: #0d1421;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marqueeScroll 25s linear infinite;
    white-space: nowrap;
    gap: 30px;
    padding: 0 15px;
}

.currency-marquee[data-speed="slow"] .marquee-content {
    animation-duration: 30s;
}

.currency-marquee[data-speed="fast"] .marquee-content {
    animation-duration: 10s;
}

.currency-marquee[data-direction="right"] .marquee-content {
    animation-name: marqueeScrollRight;
}

.currency-marquee[data-pause="true"]:hover .marquee-content {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-100%);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: fit-content;
    position: relative;
}

.currency-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.currency-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

/* Flag Icons */
.flag-eur {
    background: #4285f4;
}

.flag-eur::after {
    content: '€';
}

.flag-usd {
    background: #34a853;
}

.flag-usd::after {
    content: '$';
}

.flag-aed {
    background: #ea4335;
}

.flag-aed::after {
    content: 'د.إ';
    font-size: 8px;
}

.currency-pair {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin-right: 2px;
}

.currency-rate {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    margin-right: 6px;
}

.currency-change {
    font-weight: 500;
    font-size: 12px;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.currency-percentage {
    font-weight: 500;
    font-size: 11px;
    opacity: 0.9;
}

.price-up {
    color: #00c896;
}

.price-down {
    color: #ff4757;
}

.price-neutral {
    color: #8892b0;
}

/* Price Change Animations */
@keyframes priceFlashUp {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(0, 200, 150, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes priceFlashDown {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(255, 71, 87, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes pulseUp {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulseDown {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.currency-item.flash-up {
    animation: priceFlashUp 0.6s ease-out;
}

.currency-item.flash-down {
    animation: priceFlashDown 0.6s ease-out;
}

.currency-rate.pulse-up {
    animation: pulseUp 0.4s ease-out;
}

.currency-rate.pulse-down {
    animation: pulseDown 0.4s ease-out;
}

.currency-marquee-error {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .currency-marquee {
        height: 50px;
    }

    .currency-item {
        padding: 8px 16px;
        gap: 8px;
    }

    .currency-flag {
        width: 20px;
        height: 20px;
    }

    .currency-pair {
        font-size: 12px;
    }

    .currency-rate {
        font-size: 14px;
        padding: 3px 6px;
    }

    .currency-label {
        font-size: 10px;
    }

    .marquee-content {
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .currency-marquee-container {
        margin: 10px 0;
        border-radius: 8px;
    }

    .currency-marquee {
        height: 45px;
    }

    .currency-item {
        padding: 6px 12px;
        gap: 6px;
        border-radius: 20px;
    }

    .currency-flag {
        width: 18px;
        height: 18px;
    }

    .currency-pair {
        font-size: 11px;
    }

    .currency-rate {
        font-size: 13px;
        padding: 2px 5px;
    }

    .marquee-content {
        gap: 15px;
    }
}

/* Loading Animation */
.currency-marquee-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    font-weight: 500;
}

.currency-marquee-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}