/* Mausam Widget – mausam.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600&family=Baloo+2:wght@500;700&display=swap');

.mausam-widget {
    font-family: 'Noto Sans Devanagari', 'Baloo 2', sans-serif;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    overflow: hidden;
    max-width: 340px;
    transition: box-shadow 0.2s;
}
.mausam-widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── HEADER ── */
.mw-header {
    background: #1b4332;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mw-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.mw-header-icon {
    opacity: 0.9;
}
.mw-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.mw-location-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 11px;
    font-family: inherit;
    padding: 5px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.mw-location-btn:hover {
    background: rgba(255,255,255,0.30);
}
.mw-location-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ── BODY ── */
.mw-body {
    padding: 18px 16px 14px;
}
.mw-loading {
    text-align: center;
    padding: 28px 16px;
    color: #888;
    font-size: 13px;
}
.mw-error {
    text-align: center;
    padding: 20px 16px;
    color: #c0392b;
    font-size: 13px;
}

/* spinner */
.mw-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #1b4332;
    border-radius: 50%;
    animation: mw-spin 0.8s linear infinite;
    margin-bottom: 10px;
}
@keyframes mw-spin { to { transform: rotate(360deg); } }

/* ── CURRENT WEATHER ── */
.mw-city-name {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.mw-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
}
.mw-weather-emoji {
    font-size: 42px;
    line-height: 1;
}
.mw-temp-display {
    font-family: 'Baloo 2', sans-serif;
    font-size: 54px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.mw-temp-display sup {
    font-size: 22px;
    font-weight: 500;
    vertical-align: super;
}
.mw-description {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

/* ── STATS ── */
.mw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.mw-stat-card {
    background: #f5f6f5;
    border-radius: 10px;
    padding: 9px 6px;
    text-align: center;
}
.mw-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}
.mw-stat-label {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* ── FORECAST ── */
.mw-forecast {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
}
.mw-forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 2px;
}
.mw-fc-name {
    font-size: 11px;
    color: #888;
}
.mw-fc-icon {
    font-size: 20px;
}
.mw-fc-temp {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

/* ── FOOTER ── */
.mw-footer {
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mw-footer-updated {
    font-size: 10px;
    color: #aaa;
}
.mw-footer-link {
    font-size: 10px;
    color: #1b4332;
    text-decoration: none;
    font-weight: 500;
}
.mw-footer-link:hover {
    text-decoration: underline;
}

/* ── DARK MODE ── */
@media (prefers-color-scheme: dark) {
    .mausam-widget {
        background: #1a1a1a;
        border-color: #333;
    }
    .mw-city-name   { color: #999; }
    .mw-temp-display { color: #eee; }
    .mw-description { color: #888; }
    .mw-stat-card   { background: #252525; }
    .mw-stat-value  { color: #e5e5e5; }
    .mw-stat-label  { color: #666; }
    .mw-forecast    { border-top-color: #2a2a2a; }
    .mw-fc-name     { color: #777; }
    .mw-fc-temp     { color: #e0e0e0; }
    .mw-footer      { background: #141414; border-top-color: #2a2a2a; }
    .mw-footer-updated { color: #555; }
    .mw-footer-link { color: #5dcaa5; }
    .mw-spinner     { border-color: #333; border-top-color: #5dcaa5; }
}
