/**
 * Weather Controls - Light Mode Styles
 *
 * Styling for weather layer controls, timeline slider, and toggles
 */

/* Weather Timeline - Reduced height and padding */
.rfcc-weather-timeline {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin: 7px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    z-index: 1000;
}

.timeline-btn {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    min-width: 28px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-btn:active {
    transform: translateY(0);
}

.timeline-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#weather-timeline-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
}

#weather-timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#weather-timeline-slider::-webkit-slider-thumb:hover {
    background: #005a87;
    transform: scale(1.1);
}

#weather-timeline-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#weather-timeline-slider::-moz-range-thumb:hover {
    background: #005a87;
    transform: scale(1.1);
}

#weather-current-time {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    width: 420px;
    text-align: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

#weather-current-time .time-text {
    white-space: nowrap;
}

#weather-current-time .temp-text {
    font-size: 10px;
    color: #444;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

#weather-current-time .temp-text img {
    width: 18px;
    height: 18px;
    margin-right: 1px;
}

#weather-current-time .wind-text {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}

#weather-current-time .wind-text i {
    color: #0073aa;
    font-size: 9px;
}

/* Weather Layer Toggle in View Menu */
.dropdown-item[data-feature="weather-layers"] {
    /* Inherits styles from existing dropdown-item */
}

.weather-layer-active .check-mark::before {
    content: '✓';
}

/* Responsive Design */
@media (max-width: 768px) {
    .rfcc-weather-timeline {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }

    .timeline-btn {
        min-width: 36px;
        height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }

    #weather-current-time {
        font-size: 12px;
        min-width: 140px;
        order: 4;
        flex: 1 0 100%;
        text-align: center;
        margin-top: 5px;
    }

    #weather-timeline-slider {
        order: 3;
        flex: 1 0 auto;
    }
}

@media (max-width: 480px) {
    .rfcc-weather-timeline {
        padding: 10px;
    }

    .timeline-btn {
        min-width: 32px;
        height: 28px;
        padding: 5px 8px;
    }

    #weather-timeline-slider {
        height: 6px;
    }

    #weather-timeline-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    #weather-timeline-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}
