/**
 * Crypto Ticker Banner CSS
 * Kripto ve döviz için kayan banner
 */

.crypto-ticker-banner {
    width: 100%;
    background: linear-gradient(135deg, #1a1d23 0%, #2d3139 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    margin: 15px 0 5px 0;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.crypto-ticker-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.crypto-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.crypto-ticker-track {
    display: inline-flex;
    animation: ticker-scroll 60s linear infinite !important;
    will-change: transform;
}

.crypto-ticker-track:hover {
    animation-play-state: paused !important;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.crypto-ticker-set {
    display: inline-flex !important;
    gap: 40px;
    padding: 0 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.crypto-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.crypto-ticker-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.crypto-ticker-item.crypto {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
}

.crypto-ticker-item.crypto:hover {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.3);
}

.ticker-icon {
    font-size: 16px;
    line-height: 1;
}

.ticker-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-value {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.ticker-change {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.ticker-change.positive {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.ticker-change.negative {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-ticker-wrapper {
        padding: 5px 0;
    }
    
    .crypto-ticker-set {
        gap: 25px;
        padding: 0 15px;
    }
    
    .crypto-ticker-item {
        padding: 3px 12px;
        gap: 6px;
    }
    
    .ticker-icon {
        font-size: 16px;
    }
    
    .ticker-label {
        font-size: 10px;
    }
    
    .ticker-value {
        font-size: 12px;
    }
    
    .ticker-change {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .crypto-ticker-wrapper {
        padding: 8px 0;
    }
    
    .crypto-ticker-set {
        gap: 20px;
        padding: 0 10px;
    }
    
    .crypto-ticker-item {
        padding: 5px 12px;
        gap: 6px;
    }
    
    .ticker-icon {
        font-size: 14px;
    }
    
    .ticker-label {
        font-size: 9px;
    }
    
    .ticker-value {
        font-size: 11px;
    }
    
    .ticker-change {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* Animasyon hızı ayarları */
@media (prefers-reduced-motion: reduce) {
    .crypto-ticker-track {
        animation: ticker-scroll 120s linear infinite;
    }
}

/* Yavaş bağlantı için */
@media (prefers-reduced-data: reduce) {
    .crypto-ticker-track {
        animation: ticker-scroll 90s linear infinite;
    }
}