/* EVC Weather Widget Styles */

.evc-weather-widget-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    /* border-radius: 15px; Removed border-radius */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #333;
    transition: background-image 0.5s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

/* 16x9 Aspect Ratio Container */
.evc-weather-widget-16x9-container {
    min-height: unset;
    padding-top: 0;
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    display: block;
}

/* Content wrapper for 16x9 view */
.evc-weather-widget-16x9-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space vertically */
    align-items: center;
    padding: 15px 20px; /* Adjust padding for better fit */
    box-sizing: border-box;
}


/* Overlay for better text readability on various backgrounds */
.evc-weather-widget-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); Removed background overlay */
    z-index: 1;
}

.evc-weather-widget-loading,
.evc-weather-widget-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    color: #eee;
}

/* Default View Styles */
.evc-weather-widget-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.evc-weather-city {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.evc-weather-icon img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-out;
}

.evc-weather-temperature {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.evc-weather-forecast {
    font-size: 1.5em;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}


/* 16x9 View Specific Styles */

.evc-weather-city-top {
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.evc-weather-main-info-16x9 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.evc-weather-temperature-16x9-col,
.evc-weather-forecast-16x9-col {
    flex: 1;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.evc-weather-temperature-16x9-col {
    font-size: 2.5em;
}

.evc-weather-icon-16x9-col {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.evc-weather-icon-16x9-col img {
    width: 180px; /* Increased icon size */
    height: 180px; /* Increased icon size */
    animation: fadeIn 1s ease-out;
    position: absolute;
}

.evc-weather-forecast-16x9-col {
    font-size: 1em;
}

.evc-weather-additional-info-16x9 {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    /*flex-wrap: wrap;*/
}

.evc-weather-detail {
    flex: 1 1 30%;
    text-align: center;
    padding: 5px 0;
}


/* Responsive adjustments for default view */
@media (max-width: 768px) {
    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) {
        min-height: 200px;
        padding: 15px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-city {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-icon img {
        width: 100px;
        height: 100px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-temperature {
        font-size: 2.8em;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-forecast {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) {
        min-height: 180px;
        padding: 10px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-city {
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-icon img {
        width: 80px;
        height: 80px;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-temperature {
        font-size: 2.2em;
    }

    .evc-weather-widget-container:not(.evc-weather-widget-16x9-container) .evc-weather-forecast {
        font-size: 1em;
    }
}

/* Responsive adjustments for 16x9 view */
@media (max-width: 768px) {
    .evc-weather-widget-16x9-content {
        padding: 10px 15px;
    }
    .evc-weather-city-top {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .evc-weather-temperature-16x9-col {
        font-size: 2.0em;
    }
    .evc-weather-icon-16x9-col img {
        width: 180px; /* Adjusted icon size for smaller screens */
        height: 180px; /* Adjusted icon size for smaller screens */
    }
    .evc-weather-forecast-16x9-col {
        font-size: 0.9em;
    }
    .evc-weather-additional-info-16x9 {
        font-size: 0.8em;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .evc-weather-widget-16x9-content {
        padding: 8px 10px;
    }
    .evc-weather-city-top {
        font-size: 0.9em;
        margin-bottom: 5px;
    }
    .evc-weather-temperature-16x9-col {
        font-size: 1.5em;
    }
    .evc-weather-icon-16x9-col img {
        width: 190px; /* Adjusted icon size for smallest screens */
        height: 190px; /* Adjusted icon size for smallest screens */
        margin: 0px !important;
        padding: 0px !important;
        position: absolute;
    }
    .evc-weather-forecast-16x9-col {
        font-size: 0.7em;
    }
    .evc-weather-additional-info-16x9 {
        font-size: 0.7em;
        margin-top: 5px;
    }
    .evc-weather-detail {
        flex: 1 1 45%;
    }
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
