/**
 * Satoshi's House - Crypto Ticker Styles
 * Barra de cotacoes premium com posicionamento dinamico
 */

/* Container do ticker - posicionado via JS */
.crypto-ticker-container {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--topbar-h, 0px);
    width: 100%;
    height: var(--ticker-h, 60px);
    background: #0b0f14;
    border-bottom: 1px solid #2a3140;
    overflow: hidden;
    z-index: 1000;
    display: flex !important;
    align-items: center;
}

/* Wrapper para animacao */
.crypto-ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Track do carrossel */
.crypto-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform;
}

.crypto-ticker-track:hover {
    animation-play-state: paused;
}

/* Animacao de scroll */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Item da moeda */
.coin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.coin:hover {
    background-color: rgba(242, 183, 5, 0.1);
}

.coin-symbol {
    font-weight: 700;
    color: #f2b705;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.coin-price {
    color: #d1d5db;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.coin-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.coin-change.positive {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.coin-change.negative {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.coin-change.neutral {
    color: #9ca3af;
    background-color: rgba(156, 163, 175, 0.1);
}

/* Separador */
.separator {
    color: #3a4a5c;
    margin: 0 2px;
}

/* Reduzir movimento */
@media (prefers-reduced-motion: reduce) {
    .crypto-ticker-track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .coin {
        flex-shrink: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .crypto-ticker-container {
        height: 44px;
    }
    
    .coin {
        padding: 6px 12px;
    }
    
    .coin-symbol {
        font-size: 12px;
    }
    
    .coin-price {
        font-size: 11px;
    }
    
    .coin-change {
        font-size: 10px;
    }
}
