/* EVC Detailed Weather Card Styles */

.evc-weather-details-card-container {
    position: relative;
    width: 100%;
    /* Aspect ratio hack */
    padding-bottom: 56.25%; /* 9 / 16 = 0.5625 */
    height: 0;
    overflow: hidden; /* Ensure content stays within bounds */
    background-color: #f0f4f7; /* Light blue-gray background */
    border: 1px solid #dbe3e8;
    /*border-radius: 8px;*/
    font-family: 'Inter', sans-serif;
    color: #343a40; /* Dark text for contrast */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.evc-weather-details-inner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px; /* Padding applied to inner content */
    box-sizing: border-box;
}


.evc-weather-details-loading,
.evc-weather-details-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    font-weight: bold;
    color: #6c757d;
}

.evc-details-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    margin-top: 0;
}

.evc-details-feels-like {
    text-align: left;
}

.evc-details-feels-like .label {
    display: block;
    font-size: 0.75em;
    color: #6c757d;
    margin-bottom: 2px;
}

.evc-details-feels-like .value {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.evc-details-sunrise-sunset {
    text-align: right;
    font-size: 0.75em;
    color: #6c757d;
}

.evc-details-sunrise-sunset .icon {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 2px;
    color: #f0c200;
}

.evc-details-sunrise-sunset .time {
    vertical-align: middle;
    margin-right: 6px;
}

.evc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for desktop */
    gap: 8px 10px;
    flex-grow: 1;
    align-content: start;
    margin-top: 5px;
}

.evc-details-item {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #495057;
}

.evc-details-item .icon {
    font-size: 1.1em;
    margin-right: 6px;
    color: #007bff;
    width: 20px;
    text-align: center;
}

.evc-details-item .label {
    font-weight: 500;
    margin-right: 4px;
    white-space: nowrap;
}

.evc-details-item .value {
    font-weight: 600;
    color: #212529;
    flex-grow: 1;
    text-align: right;
}

.evc-details-footer {
    text-align: right;
    font-size: 0.7em;
    color: #6c757d;
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments - Largest screens first (min-width) */

@media (min-width: 2304px) {
    .evc-details-grid {
        gap: 30px 65px; /* User's adjustment */
        font-size: 1.5em; /* User's adjustment */
    }
    .evc-details-feels-like .value {
        font-size: 3.8em; /* Scale up feels like */
    }
    .evc-details-sunrise-sunset {
        font-size: 1em; /* Scale up sunrise/sunset */
    }
    .evc-details-item .icon {
        font-size: 1.5em; /* Scale up icons */
        width: 25px;
    }
    .evc-details-footer {
        font-size: 0.8em; /* Scale up footer */
    }
}

@media (min-width: 2023px) {
    .evc-details-grid {
        gap: 17px 10px; /* User's adjustment */
        font-size: 1.5em; /* User's adjustment */
    }
    .evc-details-feels-like .value {
        font-size: 3.5em; /* Scale up feels like */
    }
    .evc-details-sunrise-sunset {
        font-size: 0.9em; /* Scale up sunrise/sunset */
    }
    .evc-details-item .icon {
        font-size: 1.4em; /* Scale up icons */
        width: 22px;
    }
    .evc-details-footer {
        font-size: 0.75em; /* Scale up footer */
    }
}

@media (min-width: 1890px) {
    .evc-weather-details-inner-content {
        padding: 25px; /* Increased padding */
    }
    .evc-details-feels-like .value {
        font-size: 3.2em; /* Slightly larger font size */
    }
    .evc-details-sunrise-sunset {
        font-size: 0.85em; /* Slightly larger font size */
    }
    .evc-details-grid {
        gap: 12px 15px; /* Slightly larger gap */
        font-size: 1em; /* Base font size for grid items at this width */
    }
    .evc-details-item .icon {
        font-size: 1.3em; /* Slightly larger icon size */
        width: 22px;
    }
    .evc-details-footer {
        font-size: 0.75em; /* Slightly larger font size */
    }
}


/* Adjustments for widths <= 1810px */
@media (max-width: 1810px) {
    .evc-weather-details-inner-content {
        padding: 18px;
    }
    .evc-details-feels-like .value {
        font-size: 2.6em;
    }
    .evc-details-grid {
        gap: 7px 9px;
    }
    .evc-details-item {
        font-size: 0.8em;
    }
    .evc-details-item .icon {
        font-size: 1em;
        width: 18px;
    }
}

/* Adjustments for widths <= 1583px */
@media (max-width: 1583px) {
    .evc-weather-details-inner-content {
        padding: 15px;
    }
    .evc-details-main {
        margin-bottom: 8px;
        padding-bottom: 0px;
    }
    .evc-details-feels-like .value {
        font-size: 2.2em;
    }
    .evc-details-sunrise-sunset {
        font-size: 0.7em;
    }
    .evc-details-grid {
        gap: 1px 10px;
        margin-top: 0px;
        font-size: 0.9em !important;
    }
    .evc-details-footer {
        margin-top: 0px;
        padding-top: 5px;
    }
}

/* Adjustments for widths <= 1380px (maintaining 2 columns) */
@media (max-width: 1380px) {
    .evc-weather-details-inner-content {
        padding: 10px;
    }

    .evc-details-main {
        flex-direction: row;
        align-items: center;
        margin-bottom: 8px;
        padding-bottom: 5px;
    }

    .evc-details-feels-like .label {
        font-size: 0.65em;
    }
    .evc-details-feels-like .value {
        font-size: 1.8em;
    }

    .evc-details-sunrise-sunset {
        font-size: 0.6em;
        text-align: right;
        width: auto;
    }
    .evc-details-sunrise-sunset .icon {
        font-size: 1em;
    }

    .evc-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px 8px;
        margin-top: 3px;
    }

    .evc-details-item {
        font-size: 0.7em;
    }
    .evc-details-item .icon {
        font-size: 0.9em;
        margin-right: 4px;
        width: 16px;
    }
    .evc-details-item .label {
        margin-right: 2px;
    }

    .evc-details-footer {
        font-size: 0.6em;
        margin-top: 8px;
        padding-top: 4px;
    }
}

/* New breakpoint for widths <= 601px (desktop shrinking) */
@media (max-width: 601px) {
    .evc-weather-details-inner-content {
        padding: 8px;
    }
    .evc-details-main {
        margin-bottom: 6px;
        padding-bottom: 3px;
    }
    .evc-details-feels-like .label {
        font-size: 0.55em;
    }
    .evc-details-feels-like .value {
        font-size: 1.5em;
    }
    .evc-details-sunrise-sunset {
        font-size: 0.5em;
    }
    .evc-details-sunrise-sunset .icon {
        font-size: 0.9em;
    }
    .evc-details-grid {
        gap: 3px 6px;
        margin-top: 2px;
    }
    .evc-details-item {
        font-size: 0.6em;
    }
    .evc-details-item .icon {
        font-size: 0.7em;
        margin-right: 2px;
        width: 12px;
    }
    .evc-details-item .label {
        margin-right: 1px;
    }
    .evc-details-footer {
        font-size: 0.5em;
        margin-top: 4px;
        padding-top: 2px;
    }
}

/* Adjustments for widths <= 480px (very small mobile screens, still 2 columns) */
@media (max-width: 480px) {
    .evc-weather-details-inner-content {
        padding: 4px;
    }

    .evc-details-main {
        margin-bottom: 2px;
        padding-bottom: 0px;
    }

    .evc-details-feels-like .label {
        font-size: 0.5em;
    }
    .evc-details-feels-like .value {
        font-size: 1.5em;
    }

    .evc-details-sunrise-sunset {
        font-size: 0.85em;
    }
    .evc-details-sunrise-sunset .icon {
        font-size: 0.7em;
    }

    .evc-details-grid {
        margin-top: 0px;
        gap: 13px 30px;
        font-size: 1.5em !important;
    }

    .evc-details-item {
        font-size: 0.55em;
    }
    .evc-details-item .icon {
        font-size: 0.6em;
        margin-right: 1px;
        width: 10px;
    }
    .evc-details-item .label {
        margin-right: 0px;
    }

    .evc-details-footer {
        font-size: 0.45em;
        margin-top: 1px;
        padding-top: 0px;
    }
}
