.weather-widget {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-family: Arial, sans-serif;
    max-width: 350px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.weather-loading {
    text-align: center;
    font-style: italic;
    padding: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.weather-content {
    text-align: center;
}

.weather-location {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-datetime {
    font-size: 0.85em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.weather-condition-icon {
    font-size: 3.5em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.weather-temp {
    font-size: 2.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    /* Ensure clean font rendering */
    font-family: Arial, Helvetica, sans-serif;
}

.weather-description {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-style: italic;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.85em;
}

.weather-detail-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
}

.detail-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.detail-label {
    font-weight: 600;
    opacity: 0.9;
    /* Ensure clean font rendering */
    font-family: Arial, Helvetica, sans-serif;
}

.detail-value {
    font-weight: 600;
    /* Ensure clean font rendering - no special characters */
    font-family: Arial, Helvetica, sans-serif;
}

.weather-error {
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    color: #d63031;
    border: 1px solid #ff7675;
    /* Ensure clean font rendering */
    font-family: Arial, Helvetica, sans-serif;
}

.weather-retry {
    margin-top: 10px;
    padding: 8px 16px;
    background: #0984e3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    /* Ensure clean font rendering */
    font-family: Arial, Helvetica, sans-serif;
}

.weather-retry:hover {
    background: #074b83;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 480px) {
    .weather-widget {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }
    
    .weather-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .weather-condition-icon {
        font-size: 3em;
    }
    
    .weather-temp {
        font-size: 2.5em;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .weather-detail-item {
        padding: 6px 8px;
        min-height: 35px;
    }
}