/* --- simple-weather/public/css/simple-weather-public.css --- */
/* Existing styles for the main shortcode */
#simple-weather-display {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

#simple-weather-display h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0073aa;
}

#simple-weather-display p {
    font-size: 1.2em;
    margin-bottom: 5px;
}

#simple-weather-display img {
    width: 80px;
    height: 80px;
    vertical-align: middle;
}

/* Updated: Styles for the Simple Location Weather Widget to mimic styble-infobox */
.simple-weather-location-widget {
    font-family: 'Inter', sans-serif;
    background: #ffffff; /* White background */
    border: 2px solid #6b6663; /* Solid border */
    border-radius: 4px; /* Slightly rounded corners */
    box-shadow: none; /* No box shadow as per styble-infobox example */
    padding: 10px; /* Reduced padding */
    margin: 0px auto 20px auto; /* Centered with bottom margin */
    transition: all 0.3s; /* Smooth transition for hover effects */
    text-align: center;
    color: #333;
    max-width: 350px; /* Constrain width for a typical widget */
}

/* Hover effects for the main widget container */
.simple-weather-location-widget:hover {
    background: #fff3e0; /* Light orange background on hover */
    border-color: #f26c0d; /* Orange border on hover */
}

.simple-weather-location-widget .sw-current-weather {
    margin-bottom: 10px; /* Reduced margin */
    padding-bottom: 10px; /* Reduced padding */
    border-bottom: 1px solid #f0f0f0;
}

.simple-weather-location-widget .sw-city-name {
    font-size: 14px; /* Adjusted to match styble-infobox exactly */
    color: #4b4744; /* Darker grey color */
    margin: 0px; /* Adjusted to match styble-infobox exactly */
    line-height: 18px; /* Adjusted to match styble-infobox exactly */
    transition: all 0.3s; /* Smooth transition for hover */
}

/* Hover effect for city name */
.simple-weather-location-widget:hover .sw-city-name {
    color: #f26c0d; /* Orange color on hover */
}

.simple-weather-location-widget .sw-temperature {
    font-size: 2.2em; /* Slightly smaller temperature font */
    font-weight: bold;
    color: #3498db; /* Blue color for temperature */
    margin-bottom: 5px;
}

.simple-weather-location-widget .sw-description {
    font-size: 1em; /* Adjusted font size */
    color: #7f8c8d;
    text-transform: capitalize;
}

.simple-weather-location-widget .sw-icon {
    width: 50px; /* Adjusted icon size */
    height: 50px; /* Adjusted icon size */
    vertical-align: middle;
    margin: 0px; /* Adjusted to match styble-infobox image margin */
}

.simple-weather-location-widget .sw-forecast h4 {
    font-size: 1.2em; /* Adjusted font size */
    color: #4b4744; /* Darker grey color */
    margin-top: 10px; /* Reduced margin */
    margin-bottom: 10px; /* Reduced margin */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px; /* Reduced padding */
}

.simple-weather-location-widget .sw-forecast-days {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px; /* Slightly reduced gap */
}

.simple-weather-location-widget .sw-forecast-day {
    flex: 1 1 calc(20% - 8px); /* Adjusting for new gap */
    min-width: 80px; /* Adjusted min-width */
    background-color: #f8f8f8;
    border-radius: 6px; /* Slightly more rounded corners */
    padding: 8px 4px; /* Reduced padding */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); /* Subtle shadow for individual days */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: background-color 0.2s ease-in-out; /* Smooth transition */
}

.simple-weather-location-widget .sw-forecast-day:hover {
    background-color: #f0f0f0; /* Slight background change on hover */
}

@media (max-width: 600px) {
    .simple-weather-location-widget .sw-forecast-day {
        flex: 1 1 calc(33.33% - 8px);
    }
}

@media (max-width: 400px) {
    .simple-weather-location-widget .sw-forecast-day {
        flex: 1 1 calc(50% - 8px);
    }
}


.simple-weather-location-widget .sw-day-name {
    font-size: 0.85em; /* Adjusted font size */
    font-weight: bold;
    color: #555;
    margin-bottom: 3px; /* Reduced margin */
}

.simple-weather-location-widget .sw-day-icon {
    width: 35px; /* Adjusted icon size */
    height: 35px; /* Adjusted icon size */
    margin-bottom: 3px; /* Reduced margin */
}

.simple-weather-location-widget .sw-day-temp {
    font-size: 1em; /* Adjusted font size */
    font-weight: bold;
    color: #3498db;
    margin-bottom: 3px; /* Reduced margin */
}

.simple-weather-location-widget .sw-day-description {
    font-size: 0.75em; /* Adjusted font size */
    color: #7f8c8d;
    text-transform: capitalize;
}

.simple-weather-location-widget .sw-loading-indicator,
.simple-weather-location-widget .sw-error-message {
    padding: 10px;
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    border-radius: 5px;
    margin-top: 15px;
}

.simple-weather-location-widget .sw-loading-indicator {
    background-color: #d9edf7;
    color: #31708f;
    border-color: #bce8f1;
}
