/* WeatherAPI Provider Styles */

.ww-weatherapi-weather {
    padding: 20px;
}

/* Weather Alerts */
.ww-weather-alerts {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ww-alerts-title {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 18px;
    font-weight: 600;
}

.ww-alert-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffeaa7;
}

.ww-alert-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ww-alert-headline {
    margin: 0 0 10px 0;
    color: #721c24;
    font-size: 16px;
    font-weight: 600;
}

.ww-alert-severity {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.ww-alert-description {
    margin: 10px 0;
    color: #856404;
    line-height: 1.4;
}

.ww-alert-instruction {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8d7da;
    border-left: 4px solid #721c24;
    color: #721c24;
    font-style: italic;
}

.ww-alert-expires {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #666;
}

/* No alerts message */
.ww-no-alerts {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #155724;
    text-align: center;
}

/* Current Conditions */
.ww-current-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ww-current-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.ww-current-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ww-weather-symbol {
    width: 80px;
    height: 80px;
}

.ww-temperature-display {
    display: flex;
    flex-direction: column;
}

.ww-temp-value {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}

.ww-temp-feels-like {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.ww-current-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ww-detail-item {
    display: flex;
    flex-direction: column;
}

.ww-detail-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.ww-detail-value {
    font-size: 16px;
    font-weight: 500;
}

/* Hourly Forecast */
.ww-hourly-section {
    margin-bottom: 20px;
}

.ww-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.ww-hourly-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.ww-hourly-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
}

.ww-hour-time {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.ww-hour-symbol {
    width: 40px;
    height: 40px;
    margin: 5px auto;
}

.ww-hour-temp {
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0;
}

.ww-hour-precip {
    font-size: 12px;
    color: #0066cc;
    margin: 5px 0;
}

.ww-precip-chance {
    display: block;
    font-size: 11px;
    color: #666;
}

.ww-hour-wind {
    font-size: 12px;
    color: #666;
}

/* Daily Forecast */
.ww-daily-section {
    margin-bottom: 20px;
}

.ww-daily-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ww-daily-table thead {
    background-color: #f8f9fa;
}

.ww-daily-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.ww-daily-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.ww-daily-table tbody tr:last-child {
    border-bottom: none;
}

.ww-daily-table td {
    padding: 12px;
}

.ww-daily-weather {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww-daily-symbol {
    width: 40px;
    height: 40px;
}

.ww-temp-max {
    color: #dc3545;
}

.ww-temp-min {
    color: #0066cc;
}

/* Attribution */
.ww-attribution {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ww-attribution a {
    color: #0066cc;
    text-decoration: none;
}

.ww-attribution a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ww-current-grid {
        grid-template-columns: 1fr;
    }
    
    .ww-current-main {
        justify-content: center;
    }
    
    .ww-daily-table {
        font-size: 14px;
    }
    
    .ww-daily-table th,
    .ww-daily-table td {
        padding: 8px;
    }
    
    .ww-daily-symbol {
        width: 30px;
        height: 30px;
    }
}

/* Hourly forecast date display */
.ww-weatherapi .ww-hourly-day {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    min-height: 14px; /* Ensure consistent height even when empty */
}

.ww-weatherapi .ww-hourly-item {
    min-width: 60px; /* Slightly wider to accommodate date */
}

/* WeatherAPI Provider Button Styles */
.ww-provider-button.ww-provider-weatherapi {
    background-color: #0066C8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ww-provider-button.ww-provider-weatherapi:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.ww-provider-button.ww-provider-weatherapi:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}