/* ─── Shared base ────────────────────────────────────────────────── */
.hgw-widget,
.hgw-hoje {
    font-family: 'Inter Tight', system-ui, sans-serif;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════
   WIDGET SEMANAL — [hg_weather]
   ════════════════════════════════════════════════════ */

.hgw-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.hgw-current-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hgw-icon {
    font-size: 48px;
    line-height: 1;
    display: block;
}

.hgw-temp {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
    color: #111111;
}

.hgw-desc {
    font-size: 13px;
    color: #888888;
    margin: 5px 0 0;
    text-transform: capitalize;
}

.hgw-current-right {
    text-align: right;
    flex-shrink: 0;
}

.hgw-city {
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.hgw-meta {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 8px;
}

.hgw-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666666;
}

.hgw-updated {
    font-size: 11px;
    color: #bbbbbb;
    margin: 0;
}

/* ── Forecast strip ─────────────────────────────────── */
.hgw-forecast {
    display: grid;
    grid-template-columns: repeat(var(--days, 7), 1fr);
    background: #fafafa;
    overflow-x: auto;
}

.hgw-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.15s ease;
    min-width: 52px;
}

.hgw-day:last-child {
    border-right: none;
}

.hgw-day:hover {
    background: #f2f2f2;
}

.hgw-day-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #999999;
    text-transform: uppercase;
}

.hgw-day-date {
    font-size: 10px;
    color: #c0c0c0;
    letter-spacing: 0.2px;
}

.hgw-day-icon {
    font-size: 20px;
    line-height: 1;
    margin: 2px 0;
}

.hgw-day-max {
    font-size: 13px;
    font-weight: 500;
    color: #111111;
}

.hgw-day-min {
    font-size: 12px;
    color: #aaaaaa;
}

.hgw-day-rain {
    font-size: 10px;
    color: #6aa8d8;
    font-weight: 500;
}

/* ════════════════════════════════════════════════════
   WIDGET HOJE — [hg_weather_hoje]
   ════════════════════════════════════════════════════ */

.hgw-hoje-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hgw-hoje-icon {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
}

.hgw-hoje-info {
    flex: 1;
}

.hgw-hoje-temp {
    font-size: 44px;
    font-weight: 300;
    letter-spacing: -2.5px;
    margin: 0 0 2px;
    color: #111111;
    line-height: 1;
}

.hgw-hoje-temp span {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    color: #aaaaaa;
    margin-left: 2px;
}

.hgw-hoje-desc {
    font-size: 14px;
    color: #777777;
    margin: 4px 0 2px;
    text-transform: capitalize;
}

.hgw-hoje-city {
    font-size: 13px;
    font-weight: 500;
    color: #bbbbbb;
    margin: 0;
    letter-spacing: 0.2px;
}

/* ── Detail grid ────────────────────────────────────── */
.hgw-hoje-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #f0f0f0;
}

.hgw-hoje-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.hgw-hoje-cell:nth-child(4n) {
    border-right: none;
}

.hgw-hoje-cell:nth-last-child(-n+4) {
    border-bottom: none;
}

.hgw-hoje-cell-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbbbbb;
}

.hgw-hoje-cell-val {
    font-size: 15px;
    font-weight: 500;
    color: #111111;
    letter-spacing: -0.3px;
}

.hgw-hoje-updated {
    font-size: 11px;
    color: #cccccc;
    margin: 0;
    padding: 10px 16px;
    text-align: right;
}

/* ─── Error ──────────────────────────────────────────── */
.hgw-error {
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 13px;
    color: #cc3333;
    padding: 12px 16px;
    border: 1px solid #fbd3d3;
    border-radius: 8px;
    background: #fff5f5;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .hgw-widget, .hgw-hoje {
        max-width: 100%;
        border-radius: 12px;
    }

    .hgw-current {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }

    .hgw-current-right {
        text-align: left;
        width: 100%;
    }

    .hgw-meta {
        justify-content: flex-start;
    }

    .hgw-hoje-top {
        padding: 18px 20px 16px;
    }

    .hgw-hoje-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hgw-hoje-cell:nth-child(4n) {
        border-right: 1px solid #f0f0f0;
    }

    .hgw-hoje-cell:nth-child(2n) {
        border-right: none;
    }

    .hgw-hoje-cell:nth-last-child(-n+4) {
        border-bottom: 1px solid #f0f0f0;
    }

    .hgw-hoje-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }
}
