/* Crypto Ticker Widget - Ultra Sleek Design */
.crypto-widgets-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #0a1018, #131b23);
    position: relative;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crypto-ticker {
    padding: 6px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.crypto-ticker-container {
    display: inline-flex;
    padding: 0;
    animation: tickerScroll 60s linear infinite;
    will-change: transform;
    position: relative;
}

/* Animation for continuous scrolling */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover for better UX */
.crypto-ticker:hover .crypto-ticker-container {
    animation-play-state: paused;
}

.crypto-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    padding: 3px 12px;
    border-radius: 30px;
    margin: 0 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 26px;
}

.crypto-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
}

.crypto-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crypto-icon-text {
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

/* Coin-specific background colors */
.crypto-btc { background-color: #F7931A; }
.crypto-eth { background-color: #627EEA; }
.crypto-sol { background-color: #00FFA3; }
.crypto-bnb { background-color: #F3BA2F; }
.crypto-xrp { background-color: #23292F; }
.crypto-ada { background-color: #0033AD; }
.crypto-doge { background-color: #C2A633; }
.crypto-dot { background-color: #E6007A; }
.crypto-avax { background-color: #E84142; }
.crypto-matic { background-color: #8247E5; }
.crypto-link { background-color: #2A5ADA; }
.crypto-uni { background-color: #FF007A; }

.crypto-name {
    color: #ffffff;
    font-weight: 700;
    margin-right: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.crypto-price {
    color: #e0e0e0;
    margin-right: 6px;
    font-size: 12px;
    font-weight: 500;
}

.crypto-change {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.crypto-change.positive {
    color: #ffffff;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.25);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.1);
}

.crypto-change.negative {
    color: #ffffff;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.25);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .crypto-ticker-container {
        animation: tickerScroll 45s linear infinite;
    }
    
    .crypto-item {
        margin: 0 5px;
        padding: 2px 8px;
    }
    
    .crypto-icon-wrapper {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}

@media (max-width: 576px) {
    .crypto-ticker-container {
        animation: tickerScroll 35s linear infinite;
    }
    
    .crypto-name, .crypto-price {
        font-size: 11px;
    }
    
    .crypto-change {
        font-size: 10px;
        padding: 1px 3px;
    }
    
    .crypto-icon-wrapper {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
}
