/**
 * Weather Charts Styles
 */

.wu-weather-charts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wu-charts-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.wu-chart-view-toggle,
.wu-chart-mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 6px;
}

.wu-charts-controls .wu-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wu-charts-controls .wu-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.wu-charts-controls .wu-btn.active {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.wu-chart-wrapper {
    position: relative;
    width: 100%;
}

.wu-charts-error {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Current Weather Card Styles */
.wu-current-weather {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wu-current-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.wu-current-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #111827;
}

.wu-current-time {
    color: #6b7280;
    font-size: 0.875rem;
}

.wu-current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.wu-current-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wu-current-item .wu-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.wu-current-item .wu-value {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 600;
}

.wu-current-item.wu-temp .wu-value {
    color: #dc2626;
}

.wu-current-item.wu-humidity .wu-value {
    color: #22c55e;
}

.wu-current-item.wu-pressure .wu-value {
    color: #3b82f6;
}

.wu-current-item.wu-wind .wu-value,
.wu-current-item.wu-gust .wu-value {
    color: #6366f1;
}

.wu-current-item.wu-precip .wu-value {
    color: #0ea5e9;
}

.wu-no-data {
    padding: 2rem;
    text-align: center;
    color: #ef4444;
    font-weight: 500;
}

/* Style variants */
.wu-current-weather.wu-style-inline .wu-current-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.wu-current-weather.wu-style-inline .wu-current-item {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.wu-current-weather.wu-style-minimal {
    box-shadow: none;
    padding: 1rem;
}

.wu-current-weather.wu-style-minimal .wu-current-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wu-charts-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .wu-chart-view-toggle,
    .wu-chart-mode-toggle {
        width: 100%;
    }

    .wu-current-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .wu-current-item .wu-value {
        font-size: 1.25rem;
    }
}
