/* Feed Tracking Page Styles */

/* ============================================
   Remove divider line after header/download option
   (Only for Feed Tracking page)
   ============================================ */
#feed-tracking-page .dashboard-header-bar {
    border-bottom: none !important;
}

/* Paginated table container */
.feed-inline-data-table-wrap {
    width: 100%;
}

.feed-inline-data-table-wrap .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td a {
    color: #3293C5;
    text-decoration: underline;
}

.feed-inline-data-table-wrap .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td a:hover {
    color: #003C58;
}

/* Original title under processed title — grey italic, no border */
.feed-original-title {
    color: #797C7D !important;
    font-style: italic !important;
}

/* Data Feed page — showcase caveat below intro */
.feed-data-caveat {
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    color: #797C7D;
}

/* ============================================
   Dropdown Filter Styles (matching Data Lab)
   ============================================ */

/* Dropdown container */
#feed-mode-filter,
#feed-economy-filter {
    font-family: 'Hanken Grotesk', sans-serif !important;
}

/* Dropdown control (the visible box) */
#feed-mode-filter .Select-control,
#feed-economy-filter .Select-control {
    height: 48px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    background-color: white !important;
    box-shadow: none !important;
}

#feed-mode-filter .Select-value,
#feed-economy-filter .Select-value,
#feed-mode-filter .Select-placeholder,
#feed-economy-filter .Select-placeholder {
    line-height: 46px !important;
    padding-left: 14px !important;
    font-size: 14px !important;
    color: #565759 !important;
}

#feed-mode-filter .Select-value-label,
#feed-economy-filter .Select-value-label {
    color: #0A0A19 !important;
}

/* Dropdown arrow */
#feed-mode-filter .Select-arrow-zone,
#feed-economy-filter .Select-arrow-zone {
    padding-right: 14px !important;
}

/* Dropdown menu (the options list) */
#feed-mode-filter .Select-menu-outer,
#feed-economy-filter .Select-menu-outer {
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

/* Dropdown options */
#feed-mode-filter .VirtualizedSelectOption,
#feed-economy-filter .VirtualizedSelectOption,
#feed-mode-filter .Select-option,
#feed-economy-filter .Select-option {
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-family: 'Hanken Grotesk', sans-serif !important;
    color: #0A0A19 !important;
    cursor: pointer !important;
}

/* Hover state for options */
#feed-mode-filter .VirtualizedSelectOption:hover,
#feed-economy-filter .VirtualizedSelectOption:hover,
#feed-mode-filter .Select-option:hover,
#feed-economy-filter .Select-option:hover,
#feed-mode-filter .VirtualizedSelectFocusedOption,
#feed-economy-filter .VirtualizedSelectFocusedOption,
#feed-mode-filter .Select-option.is-focused,
#feed-economy-filter .Select-option.is-focused {
    background-color: #F3F4F6 !important;
}

/* Selected option */
#feed-mode-filter .VirtualizedSelectSelectedOption,
#feed-economy-filter .VirtualizedSelectSelectedOption,
#feed-mode-filter .Select-option.is-selected,
#feed-economy-filter .Select-option.is-selected {
    background-color: #E5E7EB !important;
    font-weight: 500 !important;
}

/* Container - fixed height with scrollbar */
.feed-ticker-container {
    cursor: default;
    position: relative !important;
}

/* Scrollbar styling */
.feed-ticker-container::-webkit-scrollbar {
    width: 8px;
}

.feed-ticker-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.feed-ticker-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.feed-ticker-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.feed-ticker-content {
    position: relative;
    transition: transform 0.1s linear;
    will-change: transform;
    /* Ensure container has proper height constraints */
    height: 500px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 0.5px solid #E6E6E6;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.feed-item:hover {
    background-color: #F5F7F8;
}

.feed-item-new {
    animation: feed-item-glow 2s ease-out;
}

@keyframes feed-item-glow {
    0% {
        background-color: rgba(50, 147, 197, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

.feed-item-time {
    min-width: 80px;
    font-size: 12px;
    color: #797C7D;
    font-family: 'Roboto Mono', monospace;
    margin-right: 16px;
    padding-top: 2px;
}

.feed-item-content {
    flex: 1;
}

.feed-item-headline {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: Roboto, sans-serif;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Clickable headline link styling */
.feed-item-headline-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.feed-item-headline-link:hover {
    color: #3293C5;  /* RHG blue on hover */
    text-decoration: underline;
}

.feed-item-meta {
    font-size: 12px;
    color: #797C7D;
    font-family: Roboto, sans-serif;
}

.feed-item-source {
    color: #3293C5;
    font-weight: 500;
}

/* Job Posting source - orange styling */
.feed-item-source-job {
    color: #E65100;
    font-weight: 600;
}

.feed-item-category {
    display: inline-block;
    padding: 2px 8px;
    background-color: #F0F4F5;
    border-radius: 3px;
    font-size: 11px;
    color: #565759;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-item-status {
    min-width: 90px;
    text-align: right;
}

.feed-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.feed-status-processed {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.feed-status-pending {
    background-color: #FFF3E0;
    color: #E65100;
}

.feed-status-error {
    background-color: #FFEBEE;
    color: #C62828;
}

.feed-status-new {
    background-color: #E3F2FD;
    color: #1565C0;
}

.feed-status-processing {
    background-color: #FFF8E1;
    color: #F57C00;
}

.feed-status-completed {
    background-color: #E0F2F1;
    color: #00695C;
}

/* Country tag styling */
.feed-country-tag {
    background-color: #E8EEF2;
    color: #2C5282;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Speed slider styling */
.feed-speed-slider {
    width: 150px !important;
}

.feed-speed-slider .rc-slider-track {
    background-color: #3293C5;
}

.feed-speed-slider .rc-slider-handle {
    border-color: #3293C5;
}

/* ============================================
   Chinese Source Tag and Title Styles
   ============================================ */

/* Chinese Source tag styling */
.feed-item-chinese-source-tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: #3293C5;  /* RHG blue */
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Headline text styling to align with tag */
.feed-item-headline-text {
    display: inline;
    vertical-align: middle;
}

/* Chinese title section (always visible) */
.feed-item-chinese-title {
    font-size: 13px;
    color: #565759;
    margin-top: 6px;
    padding-left: 8px;
    font-style: italic;
    border-left: 2px solid #3293C5;  /* RHG blue */
    line-height: 1.5;
}
