/* BCMonster Enhanced Crypto Price Ticker */

.bcm-ticker-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 10000;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bcm-ticker-track {
    display: flex;
    height: 100%;
    animation: bcm-ticker-scroll 60s linear infinite;
    will-change: transform;
}

@keyframes bcm-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.bcm-ticker-items {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.bcm-ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.bcm-ticker-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.bcm-ticker-symbol {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.bcm-ticker-price {
    color: #f8fafc;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bcm-ticker-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

.bcm-ticker-positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.bcm-ticker-negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Pause animation on hover */
.bcm-ticker-container:hover .bcm-ticker-track {
    animation-play-state: paused;
}

/* Light theme support */
[data-theme="light"] .bcm-ticker-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .bcm-ticker-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .bcm-ticker-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(37, 99, 235, 0.5);
}

[data-theme="light"] .bcm-ticker-price {
    color: #1e293b;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bcm-ticker-container {
        height: 36px;
    }
    
    .bcm-ticker-item {
        font-size: 0.75rem;
        gap: 0.5rem;
        padding: 0.4rem 0.75rem;
    }
    
    .bcm-ticker-symbol {
        font-size: 0.8rem;
    }
    
    .bcm-ticker-change {
        font-size: 0.7rem;
    }
    
    .bcm-ticker-items {
        gap: 1.5rem;
    }
}

/* Adjust page content to account for ticker */
body {
    padding-top: 40px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 36px !important;
    }
}

/* Gradient fade edges */
.bcm-ticker-container::before,
.bcm-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 1;
}

.bcm-ticker-container::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(30, 41, 59, 1) 0%, 
        rgba(30, 41, 59, 0) 100%);
}

.bcm-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(30, 41, 59, 1) 0%, 
        rgba(30, 41, 59, 0) 100%);
}

[data-theme="light"] .bcm-ticker-container::before {
    background: linear-gradient(to right, 
        rgba(248, 250, 252, 1) 0%, 
        rgba(248, 250, 252, 0) 100%);
}

[data-theme="light"] .bcm-ticker-container::after {
    background: linear-gradient(to left, 
        rgba(248, 250, 252, 1) 0%, 
        rgba(248, 250, 252, 0) 100%);
}
