/* Ticker Detail Page Styles for Real Data Integration */

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #333;
}

.metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.metric-change.positive {
    background-color: #d4edda;
    color: #155724;
}

.metric-change.negative {
    background-color: #f8d7da;
    color: #721c24;
}

.metric-change.neutral {
    background-color: #e2e3e5;
    color: #383d41;
}

.ticker-metrics {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-placeholder p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-data-btn {
    background-color: var(--primary-color, #4361ee);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.refresh-data-btn:hover {
    background-color: var(--secondary-color, #3f37c9);
}

.refresh-data-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Real-time data indicators */
.real-time-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #28a745;
    margin-left: 1rem;
}

.real-time-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Enhanced ticker header */
.ticker-header {
    position: relative;
    overflow: hidden;
}

.ticker-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0, #4361ee);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metric-card {
        margin-bottom: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .ticker-metrics {
        padding: 1rem;
    }
    
    .chart-placeholder {
        padding: 1.5rem;
        min-height: 150px;
    }
}

