/* Main Ticker Styles - Separate from Realtime AQI Updates */

/* Main Ticker Container */
.main-ticker-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.03);
    height: 50px;
    padding: 0 35px;
    margin-top: 20px;
}

/* Main Ticker Wrapper */
.main-ticker-wrapper {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0;
    width: max-content;
}

/* Main Ticker Cards */
.main-ticker-card {
    display: flex;
    align-items: center;
    height: 49.59px;
    width: 324.25px;
    padding: 0 17px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(49, 52, 61, 0.25);
    flex-shrink: 0;
    margin-right: 0;
}

.main-ticker-card:hover {
    background: rgba(234, 140, 52, 0.1);
    transform: translateY(-1px);
}

/* Card Separators */
.main-ticker-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 43.5px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 5%, #31343d 50%, rgba(0,0,0,0) 95%);
    opacity: 0.25;
}

/* Station Name */
.station-name {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 14.8px;
    font-weight: 400;
    color: #31343d;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 134px;
    height: 20.8px;
}

/* Station Distance */
.station-distance {
    position: absolute;
    left: 175.59px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 12.2px;
    font-weight: 400;
    color: #31343d;
    line-height: 1.2;
    margin: 0;
    height: 16px;
    width: 44.8px;
}

/* Main Ticker AQI Badge - More specific selector to prevent overrides */
.main-ticker-container .aqi-badge {
    position: absolute !important;
    left: 231.49px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* background: #ea8c34; - Removed to allow dynamic colors from inline styles */
    border-radius: 6.09px !important;
    width: 85px !important;
    height: 32.19px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Main Ticker AQI Value - More specific selector to prevent overrides */
.main-ticker-container .aqi-value {
    position: absolute !important;
    left: 13.05px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 14.8px !important;
    font-weight: 400 !important;
    color: white !important;
    line-height: 1 !important;
    margin: 0 !important;
    height: 14.79px !important;
    width: 40px !important;
    text-align: center !important;
}

/* Override text color for yellow backgrounds */
.main-ticker-container .aqi-badge[style*="background-color: #FFFF00"] .aqi-value {
    color: #000000 !important;
}

/* Main Ticker AQI Label - More specific selector to prevent overrides */
.main-ticker-container .aqi-label {
    position: absolute !important;
    left: 58px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: 'Arial', sans-serif !important;
    font-size: 10.4px !important;
    font-weight: 400 !important;
    color: white !important;
    line-height: 1 !important;
    margin: 0 !important;
    height: 10.44px !important;
    width: 18.5px !important;
}

/* Override text color for yellow backgrounds */
.main-ticker-container .aqi-badge[style*="background-color: #FFFF00"] .aqi-label {
    color: #000000 !important;
}

/* Main Ticker Animation */
.main-ticker-wrapper.main-ticker-scrolling {
    animation: mainTickerScroll 40s linear infinite;
}

@keyframes mainTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Pause animation on hover */
.main-ticker-container:hover .main-ticker-wrapper.main-ticker-scrolling {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-ticker-card {
        min-width: 300px;
        max-width: 350px;
        padding: 15px;
    }
    
    .main-ticker-aqi-badge .aqi-value {
        font-size: 1.5rem;
    }
}

/* Ensure no conflicts with realtime AQI section */
.realtime-aqi-updates-component .main-ticker-container {
    display: none !important;
}

.main-ticker-container .realtime-aqi-updates-component {
    display: none !important;
}
