/* ===================================
   BlueConnect Weather Widget Styles
   =================================== */

.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 20px 0;
    max-width: 500px;
    transition: all 0.3s ease;
}

.weather-widget:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.weather-widget-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header Section */
.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.weather-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-name {
    font-size: 18px;
    font-weight: 600;
}

.location-country {
    font-size: 12px;
    opacity: 0.85;
}

.weather-update-time {
    font-size: 11px;
    opacity: 0.75;
    text-align: right;
}

/* Main Weather Display */
.weather-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.weather-icon-temp {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.weather-temp {
    display: flex;
    flex-direction: column;
}

.temp-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.temp-feels {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.weather-condition {
    flex: 1;
}

.condition-text {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Details Grid */
.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-icon {
    font-size: 24px;
}

.detail-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
}

/* Loading & Error States */
.weather-loading,
.weather-error {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: white;
    animation: pulse 2s infinite;
}

.weather-error {
    background: rgba(255, 0, 0, 0.2);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Footer with Refresh Button */
.weather-footer {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weather-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.weather-refresh-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 600px) {
    .weather-widget {
        padding: 16px;
        margin: 16px 0;
    }

    .weather-header {
        flex-direction: column;
        gap: 8px;
    }

    .weather-update-time {
        text-align: left;
    }

    .weather-icon {
        width: 64px;
        height: 64px;
    }

    .temp-value {
        font-size: 28px;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .detail {
        padding: 6px;
    }

    .detail-icon {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .weather-widget {
        padding: 12px;
    }

    .location-name {
        font-size: 16px;
    }

    .temp-value {
        font-size: 24px;
    }

    .weather-icon {
        width: 56px;
        height: 56px;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .weather-widget {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
    }
}
