@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
    --fonte: 'Inter Tight', sans-serif;
}

.weather-widget {
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.current-weather {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    position: relative;
}

.current-weather h3 {
    font-size: 10px;
    font-family: var(--fonte);
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 2px;
}

.weather-icon {
    font-size: 32px;
    font-family: var(--fonte);
    line-height: 1;
    margin: 2px 0;
}

.temp {
    font-size: 20px;
    font-family: var(--fonte);
    font-weight: 700;
    line-height: 1;
}

.city {
    font-size: 12px;
    font-family: var(--fonte);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 8px;
}

.forecast {
    flex: 1;
    display: flex;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.day-forecast {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.day-forecast:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.day-forecast:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.day {
    font-size: 10px;
    font-family: var(--fonte);
    font-weight: 600;
    opacity: 0.9;
}

.day-forecast .weather-icon {
    font-size: 18px;
    font-family: var(--fonte);
    margin: 2px 0;
}

.temp-high-low {
    font-size: 10px;
    font-family: var(--fonte);
    font-weight: 500;
}

.temp-high-low span:first-child {
    font-weight: 700;
}

.settings-button {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    font-family: var(--fonte);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.settings-button:hover {
    opacity: 1;
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.settings-modal.active {
    display: flex;
}

.settings-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    color: white;
}

.settings-content h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-family: var(--fonte);
}

.settings-content label {
    display: block;
    margin-bottom: 15px;
    font-size: 12px;
    font-family: var(--fonte);
}

.settings-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-size: 12px;
    font-family: var(--fonte);
}

.settings-content input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.settings-content small {
    display: block;
    margin-top: 2px;
    opacity: 0.7;
    font-size: 9px;
    font-family: var(--fonte);
}

.settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.settings-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-family: var(--fonte);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#save-settings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

#cancel-settings {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.settings-buttons button:hover {
    opacity: 0.8;
}

@media (hover: hover) {
    .weather-widget:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weather-widget {
        animation: none;
    }

    .weather-widget:hover {
        transform: none;
    }
}