/* ── Meteored Weather Plugin v4.0 ── */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ══════════════════════════════════════
   TARJETA BASE
══════════════════════════════════════ */
.mw-card {
    font-family: 'Fira Sans', sans-serif;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d6d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 10px 28px rgba(0,0,0,0.06);
}

/* franja verde superior */
.mw-topbar {
    height: 4px;
    background: #2d7a2d;
}

/* ══ CABECERA ══ */
.mw-header {
    padding: 1.6rem 2rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e8e6e0;
}

.mw-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mw-city {
    font-size: 1.9rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
    letter-spacing: -0.02em;
}

.mw-day-current-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2d7a2d;
    font-weight: 600;
    margin-top: 0.3rem;
}

.mw-condition-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.mw-emoji-big {
    font-size: 2.4rem;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mw-desc {
    font-size: 1rem;
    color: #555;
    font-weight: 400;
    font-style: italic;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* bloque temperatura derecha */
.mw-temp-block {
    text-align: right;
    flex-shrink: 0;
}

.mw-temp-main {
    font-size: 4.5rem;
    font-weight: 300;
    color: #111;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mw-deg {
    font-size: 1.5rem;
    vertical-align: super;
    font-weight: 500;
    color: #2d7a2d;
}

.mw-temp-label {
    font-size: 0.68rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* ── DATOS SUELTOS ── */
.mw-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0eeea;
}

.mw-stat {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 1rem 0.18rem 0;
    margin-right: 1rem;
    position: relative;
}

.mw-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #e0ddd8;
}

.mw-stat-label {
    font-size: 0.7rem;
    color: #2d7a2d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mw-stat-val {
    font-size: 0.88rem;
    color: #333;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ══ DÍAS ══ */
.mw-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f7f6f3;
}

.mw-day {
    padding: 1.1rem 0.75rem;
    text-align: center;
    border-right: 1px solid #e8e6e0;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    user-select: none;
}

.mw-day:last-child { border-right: none; }
.mw-day:hover { background: #eeecea; }
.mw-day-active { background: #ffffff; }

.mw-day-active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #2d7a2d;
}

.mw-day-name {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #999;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.mw-day-active .mw-day-name { color: #2d7a2d; }

.mw-day-date {
    font-size: 0.7rem;
    color: #bbb;
    margin-bottom: 0.5rem;
}

.mw-day-active .mw-day-date { color: #888; }

.mw-day-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.mw-day-temps {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem;
}

.mw-day-max { color: #111; font-weight: 700; font-size: 1.05rem; }
.mw-day-min { color: #bbb; font-weight: 400; font-size: 0.88rem; }

.mw-day-wind {
    font-size: 0.67rem;
    color: #ccc;
    margin-top: 0.4rem;
}

.mw-day-active .mw-day-wind { color: #888; }

/* ══ FOOTER ══ */
.mw-footer {
    padding: 0.55rem 2rem;
    font-size: 0.67rem;
    font-weight: 500;
    color: #bbb;
    text-align: right;
    background: #f7f6f3;
    border-top: 1px solid #e8e6e0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mw-footer a {
    color: #2d7a2d;
    text-decoration: none;
    font-weight: 700;
}
.mw-footer a:hover { opacity: 0.7; }

/* ══ ERROR ══ */
.mw-error-card {
    font-family: 'Fira Sans', sans-serif;
    padding: 1.2rem 1.5rem;
    background: #fff8f0;
    border: 1px solid #fce8cc;
    border-radius: 8px;
    color: #c07020;
    font-size: 0.9rem;
}

.mw-error {
    color: #c07020;
    font-style: italic;
    font-size: 0.85rem;
    font-family: 'Fira Sans', sans-serif;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 600px) {
    .mw-header {
        padding: 1.2rem 1.2rem 1rem;
    }
    .mw-city { font-size: 1.5rem; }
    .mw-temp-main { font-size: 3.2rem; }
    .mw-emoji-big { font-size: 2rem; }

    .mw-stats {
        justify-content: flex-start;
        gap: 0.4rem 0;
    }
    .mw-stat { margin-right: 0.7rem; padding-right: 0.7rem; }
    .mw-stat-label { font-size: 0.64rem; }
    .mw-stat-val { font-size: 0.82rem; }

    /* En móvil: columna vertical */
    .mw-days {
        grid-template-columns: 1fr;
    }
    .mw-day {
        display: flex;
        align-items: center;
        padding: 0.85rem 1.2rem;
        border-right: none;
        border-bottom: 1px solid #e8e6e0;
        text-align: left;
        gap: 1rem;
    }
    .mw-day:last-child { border-bottom: none; }
    .mw-day-active::before {
        top: 0; left: 0; right: auto; bottom: 0;
        width: 3px;
        height: 100%;
    }
    .mw-day-name {
        font-size: 0.72rem;
        margin-bottom: 0;
        min-width: 52px;
    }
    .mw-day-date {
        font-size: 0.68rem;
        margin-bottom: 0;
        min-width: 36px;
    }
    .mw-day-icon {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    .mw-day-temps {
        flex: 1;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .mw-day-wind {
        margin-top: 0;
        font-size: 0.65rem;
        text-align: right;
        flex-shrink: 0;
    }
    .mw-footer {
        text-align: center;
        padding: 0.55rem 1rem;
    }
}
