/* Meteoext Weather Widget Styles */

:root {
    --color-primary: #3498db;
    --color-secondary: #2c3e50;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
    --color-light: #ecf0f1;
    --color-border: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.meteoext-container {
    max-width: 500px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.meteoext-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.meteoext-city-input {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.meteoext-city-input input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-secondary);
}

.meteoext-city-input input::placeholder {
    color: #95a5a6;
}

.meteoext-city-input input:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.meteoext-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.meteoext-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.meteoext-btn:active {
    transform: translateY(0);
}

.meteoext-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.meteoext-geolocation-btn {
    padding: 10px 15px;
    background-color: var(--color-success);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.meteoext-geolocation-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

.meteoext-loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.meteoext-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.meteoext-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.meteoext-main-temp {
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: flex-start;
}

.meteoext-unit {
    font-size: 24px;
    margin-left: 8px;
}

.meteoext-description {
    font-size: 18px;
    text-align: right;
    flex: 1;
    min-width: 150px;
}

.meteoext-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.meteoext-detail-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.meteoext-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

.meteoext-detail-value {
    font-size: 24px;
    font-weight: bold;
}

.meteoext-refresh-time {
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 15px;
}

.meteoext-error {
    background-color: var(--color-danger);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.meteoext-success {
    background-color: rgba(39, 174, 96, 0.8);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .meteoext-container {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
    }

    .meteoext-header {
        flex-direction: column;
    }

    .meteoext-city-input {
        width: 100%;
        min-width: unset;
    }

    .meteoext-content {
        flex-direction: column;
        text-align: center;
    }

    .meteoext-description {
        text-align: center;
    }

    .meteoext-main-temp {
        justify-content: center;
    }

    .meteoext-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .meteoext-container {
        padding: 15px;
        border-radius: 10px;
    }

    .meteoext-main-temp {
        font-size: 36px;
    }

    .meteoext-description {
        font-size: 16px;
    }

    .meteoext-detail-value {
        font-size: 20px;
    }

    .meteoext-city-input input,
    .meteoext-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}
