/* ============================================
   COMPLETE FIX - TICKER & NEWS PANELS
   ============================================ */

/* Ticker position - keep original, just ensure visibility */

/* 2. NEWS & EARNINGS PANELS - proper ticker with no cutoff */
.news-panel, .earnings-panel {
    height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    background: rgba(17, 24, 39, 0.9) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

.ipo-panel {
    height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: rgba(17, 24, 39, 0.9) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

/* Header - solid background, stays on top */
.news-panel > .panel-header,
.earnings-panel > .panel-header,
.ipo-panel > .panel-header {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 20 !important;
    background: rgba(17, 24, 39, 1) !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.3) !important;
    border-radius: 12px 12px 0 0 !important;
}

/* Content area - scrolling viewport */
.news-list, .earnings-list {
    flex: 1 1 auto !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important; /* Important for flexbox overflow */
}

/* The actual scrolling content wrapper */
.news-list.vertical-ticker,
.earnings-list.vertical-ticker {
    display: block !important;
    animation: smoothVerticalScroll 45s linear infinite !important;
}

.news-list.vertical-ticker:hover,
.earnings-list.vertical-ticker:hover {
    animation-play-state: paused !important;
}

/* Smooth vertical scroll keyframes */
@keyframes smoothVerticalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* News items styling */
.news-item {
    display: block !important;
    padding: 0.875rem 1.25rem !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15) !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.news-item:hover {
    background: rgba(100, 116, 139, 0.15) !important;
}

/* Earnings items styling */
.earnings-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15) !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.earnings-item:hover {
    background: rgba(100, 116, 139, 0.15) !important;
}

/* Bottom fade gradient */
.news-panel::after,
.earnings-panel::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40px !important;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0), rgba(17, 24, 39, 1)) !important;
    pointer-events: none !important;
    z-index: 15 !important;
    border-radius: 0 0 12px 12px !important;
}

/* IPO list centered */
.ipo-list {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow: hidden !important;
}
