:root {
    --pc-bg: #25324a;
    --pc-card: #2f3d56;
    --pc-text: #ffffff;
    --pc-soft: #c9d4e6;
    --pc-radius: 10px;
    --pc-gap: 14px;
    --pc-border: rgba(255, 255, 255, 0.08);
}

.pc-weather {
    width: 100%;
    padding: 18px;
    border-radius: var(--pc-radius);
    background: var(--pc-bg);
    color: var(--pc-text);
    box-sizing: border-box;
    overflow: hidden;
}

/* Header */
.pc-header {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 14px;
}

.pc-updated {
    opacity: 0.75;
}

/* Current Conditions */
.pc-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--pc-card);
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-border);
    padding: 16px 14px;
    width: 230px;
    box-sizing: border-box;
}

.pc-current-temp {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pc-current-desc {
    font-size: 15px;
    opacity: 0.85;
}

/* Forecast Row */
.pc-days {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: var(--pc-gap);
    margin-left: var(--pc-gap);
    overflow-x: auto;
    scrollbar-width: none;
}

.pc-days::-webkit-scrollbar {
    display: none;
}

/* Tile */
.pc-day {
    min-width: 110px;
    background: var(--pc-card);
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-border);
    text-align: center;
    padding: 12px 4px;
    flex: 1;
}

.pc-day-name {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.pc-day-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

.pc-day-hi {
    font-size: 18px;
    font-weight: 600;
    color: var(--pc-text);
}

.pc-day-lo {
    font-size: 14px;
    color: var(--pc-soft);
}

/* Layout Container */
.pc-weather-inner {
    display: flex;
    align-items: stretch;
}

/* --- MOBILE BREAKPOINT --- */
@media (max-width: 780px) {
    .pc-weather-inner {
        flex-direction: column;
        gap: var(--pc-gap);
    }

    .pc-current {
        width: 100%;
    }

    .pc-days {
        margin-left: 0;
        padding-bottom: 4px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .pc-day {
        min-width: 95px;
    }
}

/* ──────────────────────────────────────────────── */
/*  INLINE WEATHER WIDGET (for camera overlays etc.) */
/* ──────────────────────────────────────────────── */

.weather-widget {
    background: var(--pc-bg);
    color: var(--pc-text);
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-family: system-ui, sans-serif;
    min-width: 230px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.weather-widget .temp {
    font-size: 1.6em;
    font-weight: 600;
}

.weather-widget .desc {
    flex: 1;
    text-align: center;
    font-size: 0.95em;
    opacity: 0.9;
    padding: 0 6px;
}

.weather-widget .wind {
    font-size: 0.9em;
    color: var(--pc-soft);
}

.weather-widget.error {
    background: #842029;
    color: #fff;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--pc-radius);
}
