/* Weather Display Styles */
.weather-report {
    background: #fff;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
}

/* Styling for forecast day cards */
.forecast-day-card {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

/* Forecast container styling */
.forecast-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Style for the extended forecast section */
.extended-forecast {
    width: 100%;
}

/* Style for the forecast days wrapper */
.forecast-days-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

/* Style for the forecast days container */
.forecast-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

/* Style for each forecast day */
.forecast-day {
    flex: 1 1 0;
    min-width: 0;
    max-width: 19%;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

/* Mobile styles for forecast days */
@media only screen and (max-width: 767px) {
    .forecast-days {
        flex-direction: column;
    }
    
    .forecast-day {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Weather Alerts Styles */
.weather-alerts-container {
    margin: 0 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid #ff3b30;
    position: relative;
    animation: pulse-border 2s infinite;
    max-width: 100% !important;
    width: 100% !important;
    /* Ensure the alert stands out from other content */
    z-index: 10;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.weather-alert-header {
    background-color: #ff3b30;
    color: white;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.weather-alert-header::before,
.weather-alert-header::after {
    content: '⚠️';
    font-size: 24px;
}

.weather-alert {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid rgba(255, 59, 48, 0.3);
}

.weather-alert-extreme {
    background-color: #800000;
    color: white;
    border-left: 8px solid #ff0000;
    border-right: 8px solid #ff0000;
}

.weather-alert-severe {
    background-color: #ff3b30;
    color: white;
    
}

.weather-alert-moderate {
    background-color: #fff0f0;
    color: #800000;
    border-left: 8px solid #ff3b30;
}

.weather-alert-minor {
    background-color: #fff9e6;
    color: #805500;
    border-left: 8px solid #ffcc00;
}

.weather-alert-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.weather-alert-details {
    margin-top: 15px;
    font-size: 16px;
}

.weather-alert-headline {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.weather-alert-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.weather-alert-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.weather-alert-timing {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 16px;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.additional-alerts {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.additional-alerts h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #ff3b30;
    font-weight: 600;
}

.additional-alerts ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.additional-alerts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.additional-alerts li::before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 18px;
}

.alert-severity-extreme {
    color: #800000;
    font-weight: 600;
}

.alert-severity-severe {
    color: #ff3b30;
    font-weight: 600;
}

.alert-severity-moderate {
    color: #ff9500;
    font-weight: 600;
}

.alert-severity-minor {
    color: #ffcc00;
    font-weight: 600;
}

.additional-alerts li {
    margin-bottom: 5px;
}

/* SVG Icon Styles */
.weather-svg-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Metric Box Styles */
.weather-metrics {
    
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.metric-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 14px;
    color: #666;
}

.metric-value {
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
}

.weather-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.current-conditions {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.temp-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.current-temp {
    font-size: 64px;
    font-weight: 500;
    line-height: 1;
    color: #1d2327;
}

.temp-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 8px;
}

.feels-like {
    font-size: 16px;
    color: #1d2327;
}

.high-low {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
    color: #1d2327;
}

.feels-like-temp {
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
}

.weather-details {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
}

.weather-details td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    line-height: 1.4;
}

.detail-label {
    color: #666;
    width: 120px;
}

.detail-value {
    color: #1d2327;
    font-weight: 500;
}

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
}

.forecast-section {
    margin-top: 30px;
}

.forecast-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px;
}

.forecast-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.forecast-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.forecast-day {
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 10px;
}

.day-icon {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.day-icon img, .weather-svg-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    display: block;
}

.forecast-temp {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.forecast-condition {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Hourly Forecast Chart Styles */
.hourly-forecast {
    background: #f8f9fa;
    padding: 0px 20px 0 20px; /* Remove bottom padding */
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hourly-forecast h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 15px;
}

.weather-hourly-chart-container {
    width: 100%;
    min-height: 300px !important;
    height: 300px !important;
    display: block !important;
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 !important;
    background-color: #fff;
    border-radius: 4px;
    overflow: visible !important;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    visibility: visible !important;
    z-index: 1;
}

.weather-hourly-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    visibility: visible !important;
    max-height: 300px;
    position: relative;
    z-index: 2;
}
