/* Base Mobile-First Styles (Stacked Layout) */
.weather-widget-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    max-width: 360px;
    margin: 20px auto;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.weather-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    text-align: left;
}

.weather-card.current {
    padding: 1rem;
    margin-bottom: 1rem;
}

.weather-card.current .top {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.weather-card.current .top img {
    width: 50px;
    height: 50px;
}

.weather-card.current .top div {
    flex-grow: 1;
}

.weather-card.current h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.1rem 0;
}

.weather-card.current p {
    font-size: 0.78rem;
    color: #566573;
    margin: 0.2rem 0;
    line-height: 1.4;
}

.weather-card.current p strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: #17202a;
}

.forecast-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    padding: 0 0.25rem 0.25rem 0.25rem;
}

.weather-card.forecast {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.weather-card.forecast:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.weather-card.forecast img {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.2rem auto;
}

.weather-card.forecast h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 0.2rem 0;
}

.weather-card.forecast p {
    font-size: 0.68rem;
    color: #627d98;
    margin: 0.05rem 0;
    line-height: 1.3;
}

/* Typography Helpers */
.weather-widget-card p,
.weather-widget-card h2,
.weather-widget-card h4 {
    line-height: 1.45;
}

.weather-widget-card p strong {
    font-weight: 600;
    color: #333;
}

/* Tablet & Desktop Responsive Styles */
@media (min-width: 601px) {
    .weather-widget-card {
        display: flex;
        max-width: 740px;
        padding: 1.5rem;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .weather-card.current {
        flex: 1;
        padding: 1rem 1rem 1rem 0;
        margin-bottom: 0;
        border-right: 1px solid #eee;
    }

    .forecast-cards {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .weather-card.forecast {
        padding: 1rem 0.6rem;
    }
}

/* Larger Desktop Enhancements */
@media (min-width: 1025px) {
    .weather-widget-card {
        max-width: 900px;
    }

    .weather-card.current h2 {
        font-size: 1.2rem;
    }

    .weather-card.current p {
        font-size: 0.85rem;
    }

    .weather-card.current p strong {
        font-size: 1.6rem;
    }

    .weather-card.forecast h4 {
        font-size: 0.75rem;
    }

    .weather-card.forecast p {
        font-size: 0.7rem;
    }
}
