

cp-weather-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 38px;
}

.wa-card {
    background: var(--search-bg, #ffffff);
    border: 1px solid var(--border, #e0e0db);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}


.weather-current {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.weather-curr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curr-icon-day {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.curr-temp-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 140px;
}

.temp-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    width: 28px;
    text-align: right;
}
.temp-val:first-child { text-align: left; }

.temp-bar-bg {
    flex: 1;
    height: 6px;
    background-color: var(--bg-hover, #f0f0f0);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.temp-bar-fill {
    position: absolute;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 30%, #f6d365 70%, #ff8008 100%);
    background-size: 200% 100%;
}

.weather-curr-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.curr-main-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.curr-huge-temp {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--text-main);
}

.curr-desc {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.curr-main-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.weather-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.weather-stat svg { color: #a0aec0; }


.weather-forecast-list {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.fc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.fc-row:last-child { border-bottom: none; padding-bottom: 0; }

.fc-day-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.fc-day { font-size: 0.95rem; font-weight: 700; width: 50px; color: var(--text-main); }
.fc-icon { display: flex; color: #a0aec0; width: 24px; }
.fc-range { display: flex; align-items: center; gap: 8px; width: 140px; }


.aqi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aqi-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aqi-title {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 800;
    width: 100%;
    text-align: left;
}

.aqi-gauge-wrapper {
    position: relative;
    width: 180px;
    height: 140px;
    margin: 0 auto;
}

.aqi-svg {
    width: 100%;
    height: 100%;
}

.aqi-track, .aqi-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.aqi-track { stroke: var(--bg-hover, #f0f0f0); }
.aqi-fill {
    stroke: #4ade80; 
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.aqi-center-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aqi-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -1px;
}

.aqi-status {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
}


.aqi-details-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.aqi-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}


.aqi-mini-gauge {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aqi-mini-gauge::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--search-bg, #ffffff);
    border-radius: 50%;
}

.aqi-mini-gauge span {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.aqi-detail-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .weather-aqi-widget { grid-template-columns: 1fr; }
}