/* Ticker Modal Styles */
#ticker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 12000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

#ticker-modal.active {
    opacity: 1;
    pointer-events: all;
}

#ticker-modal-content {
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    width: 95%;
}

@media (max-width: 768px) {
    #ticker-modal-content {
        margin: 1rem auto;
        width: 98%;
    }
}

#ticker-modal.active #ticker-modal-content {
    transform: scale(1);
}

#ticker-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

#ticker-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.ticker-modal-header {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-modal-body {
    padding: 1.5rem;
}

.ticker-chart-container {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    min-height: 600px;
}

.ticker-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.ticker-metric-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #262626;
    padding: 0.75rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.ticker-metric-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.ticker-metric-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.ticker-metric-value {
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
}

.ticker-metric-value.positive {
    color: var(--neon-green);
}

.ticker-metric-value.negative {
    color: #ef4444;
}

.ticker-news-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.ticker-news-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ticker-news-date {
    font-size: 0.7rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

.ticker-news-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ccc;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.ticker-news-item:hover .ticker-news-title {
    color: white;
}

.ticker-tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.ticker-tab-button:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.ticker-tab-button.active {
    background: var(--neon-green);
    color: black;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(212, 255, 0, 0.3);
}

.ticker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
}

.ticker-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.ticker-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-section-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ticker-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #262626;
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s;
}

.ticker-external-link:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}
