/* Ticker Styles */
.price-ticker {
    width: 100%;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin: 0;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.1s forwards;
    z-index: 2;
}

.price-ticker .ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    padding: 0 20px;
}

.price-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.price-ticker .ticker-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    white-space: nowrap;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    min-width: 200px;
}

.price-ticker .symbol {
    font-weight: bold;
    margin-right: 10px;
    color: #39FF14;
}

.price-ticker .price {
    margin-right: 10px;
}

.price-ticker .change {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.price-ticker .change.positive {
    background: rgba(57, 255, 20, 0.2);
    color: #39FF14;
}

.price-ticker .change.negative {
    background: rgba(255, 20, 20, 0.2);
    color: #ff4444;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .price-ticker {
        height: 40px;
    }
    
    .price-ticker .ticker-item {
        font-size: 0.8rem;
        padding: 0 15px;
        min-width: 180px;
    }
    
    .price-ticker .change {
        font-size: 0.7rem;
    }
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(34, 139, 34, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 139, 34, 0.8);
}

/* Loading animation for charts */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(34, 139, 34, 0.3);
    border-radius: 50%;
    border-top-color: #228B22;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.chart-link:focus {
    outline: 2px solid #228B22;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }
    
    .chart-link {
        background: white !important;
        border: 1px solid #228B22 !important;
    }
}