/* ============================================
   Weather Forecast Plugin – Stylesheet
   Fidelidade ao layout da imagem (verde escuro)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

/* ---------- Container ---------- */
.wf-widget {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(145deg, #1a7a3c 0%, #157035 50%, #0f5828 100%);
    border-radius: 20px;
    padding: 20px 22px 18px;
    max-width: 320px;
    width: 100%;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* subtle texture overlay */
.wf-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 10%, rgba(255,255,255,.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- Error ---------- */
.wf-widget.wf-error {
    background: #b32121;
    min-height: 60px;
    display: flex;
    align-items: center;
}
.wf-widget.wf-error p {
    margin: 0;
    font-size: .9rem;
}

/* ---------- Header ---------- */
.wf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.wf-label {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    opacity: .95;
}

.wf-location-icon {
    font-size: 1.1rem;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, transform .2s;
    user-select: none;
}
.wf-location-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ---------- Main section ---------- */
.wf-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.wf-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-main-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
    margin-bottom: 2px;
}

.wf-city-name {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.wf-desc {
    font-size: .78rem;
    font-weight: 600;
    opacity: .8;
    margin-top: 2px;
}

/* ---------- Temp + details (right) ---------- */
.wf-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wf-temp {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
    display: flex;
    align-items: flex-start;
}

.wf-unit {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 6px;
    margin-left: 2px;
    opacity: .9;
}

.wf-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
}

.wf-detail-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    font-weight: 600;
    opacity: .88;
}

.wf-detail-icon {
    font-size: .85rem;
    opacity: .7;
}

/* ---------- Divider ---------- */
.wf-divider {
    height: 1px;
    background: rgba(255,255,255,.18);
    margin: 16px 0 14px;
}

/* ---------- Forecast strip ---------- */
.wf-forecast {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.wf-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 6px 4px 4px;
    border-radius: 10px;
    transition: background .2s;
}
.wf-day:hover {
    background: rgba(255,255,255,.1);
}

.wf-day-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}

.wf-day-temp {
    font-size: .8rem;
    font-weight: 800;
}

.wf-day-name {
    font-size: .72rem;
    font-weight: 600;
    opacity: .75;
    text-transform: lowercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
    .wf-widget {
        padding: 16px;
    }
    .wf-temp {
        font-size: 2.6rem;
    }
    .wf-city-name {
        font-size: 1.1rem;
    }
}
