/* =============================================
   WEATHER DASHBOARD — Premium Compact Styles
   ============================================= */

/* === PAGE === */
.weather-page {
    padding: 20px 0 !important;
    background: #f1f5f9;
}

.weather-page>.container {}

/* === HERO — Light, Compact, Horizontal === */
.wx-hero {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.wx-hero-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.wx-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.wx-temp-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.wx-temp-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: #1e293b;
}

.wx-temp-icon {
    font-size: 36px;
    filter: none;
}

.wx-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid #e2e8f0;
    padding-left: 16px;
}

.wx-weather-desc {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
}

.wx-temp-feels {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wx-location {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wx-update-time {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Right side detail pills — horizontal row */
.wx-hero-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.wx-detail-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 70px;
}

.wx-detail-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.wx-detail-pill .pill-icon {
    font-size: 14px;
    margin-bottom: 2px;
    display: block;
}

.wx-detail-pill .pill-label {
    font-size: 9px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 1px;
}

.wx-detail-pill .pill-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.wx-detail-pill .pill-unit {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
}

/* Sunrise/Sunset bar — inline compact */
.wx-sun-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.wx-sun-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #334155;
}

.wx-sun-item i {
    font-size: 14px;
}

.wx-sun-item .sun-label {
    display: none;
}

.wx-sun-item strong {
    font-size: 13px;
}

.wx-daylight-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    min-width: 40px;
}

.wx-daylight-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
}

/* === TABS === */
.wx-tabs {
    display: flex;
    gap: 3px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.wx-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.wx-tab:hover {
    color: #334155;
    background: #f1f5f9;
}

.wx-tab.active {
    background: var(--primary, #667eea);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wx-section-block {
    margin-bottom: 24px;
}

/* === FORECAST SECTION === */
.wx-forecast-section {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.wx-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.wx-section-title i {
    color: var(--primary, #667eea);
    font-size: 14px;
}

.wx-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Compact forecast row */
.wx-forecast-list.wx-compact .wx-day-row {
    display: grid;
    grid-template-columns: 80px 32px 1fr 1fr 60px 60px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.wx-forecast-list.wx-compact .wx-day-row:last-child {
    border-bottom: none;
}

.wx-forecast-list.wx-compact .wx-day-row:hover {
    background: #f8fafc;
}

.wx-forecast-list.wx-compact .wx-day-row.is-today {
    background: rgba(102, 126, 234, 0.04);
    border-bottom-color: rgba(102, 126, 234, 0.1);
}

.wx-forecast-list.wx-compact .wx-day-row.has-rain {
    background: rgba(59, 130, 246, 0.03);
    border-left: 3px solid #3b82f6;
    padding-left: 7px;
}

.wx-day-name {
    font-weight: 600;
    color: #334155;
    font-size: 12px;
}

.wx-day-name small {
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
    font-size: 11px;
}

.wx-day-icon {
    font-size: 18px;
    text-align: center;
}

.wx-day-icon.wx-sun {
    color: #f59e0b;
}

.wx-day-icon.wx-cloud-sun {
    color: #fbbf24;
}

.wx-day-icon.wx-cloud {
    color: #94a3b8;
}

.wx-day-icon.wx-rain {
    color: #3b82f6;
}

.wx-day-icon.wx-snow {
    color: #93c5fd;
}

.wx-day-icon.wx-storm {
    color: #6366f1;
}

.wx-day-icon.wx-fog {
    color: #a8a29e;
}

.wx-day-desc {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Temperature range bar */
.wx-temp-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wx-temp-range .temp-min {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    min-width: 28px;
    text-align: right;
}

.wx-temp-range .temp-max {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    min-width: 28px;
}

.wx-range-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.wx-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #f59e0b, #ef4444);
}

.wx-day-wind {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.wx-day-precip {
    font-size: 11px;
    color: #3b82f6;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

/* === CHARTS === */
.wx-charts-section {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.wx-chart-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.wx-chart-pill {
    padding: 6px 14px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.wx-chart-pill:hover {
    border-color: var(--primary, #667eea);
    color: var(--primary, #667eea);
}

.wx-chart-pill.active {
    background: var(--primary, #667eea);
    border-color: var(--primary, #667eea);
    color: white;
}

.wx-chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* === HOURLY === */
.wx-hourly-section {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.wx-hourly-scroll {
    overflow-x: auto;
    padding-bottom: 6px;
}

.wx-hourly-scroll::-webkit-scrollbar {
    height: 4px;
}

.wx-hourly-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.wx-hourly-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.wx-hourly-grid {
    display: flex;
    gap: 1px;
    min-width: max-content;
}

.wx-hour-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 56px;
    transition: background 0.15s;
}

.wx-hour-card:hover {
    background: #f8fafc;
}

.wx-hour-card.is-now {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.wx-hour-card .hour-time {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
}

.wx-hour-card .hour-icon {
    font-size: 16px;
}

.wx-hour-card .hour-temp {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.wx-hour-card .hour-detail {
    font-size: 9px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 2px;
}

.wx-hour-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 3px;
    font-size: 9px;
    font-weight: 700;
    color: var(--primary, #667eea);
    text-transform: uppercase;
    border-left: 2px dashed #e2e8f0;
}

/* === FAQ === */
.wx-faq-section {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.wx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wx-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.wx-faq-item[open] {
    border-color: rgba(102, 126, 234, 0.3);
}

.wx-faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    transition: background 0.2s;
}

.wx-faq-item summary::-webkit-details-marker {
    display: none;
}

.wx-faq-item summary::before {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.wx-faq-item[open] summary::before {
    transform: rotate(180deg);
    color: var(--primary, #667eea);
}

.wx-faq-item summary:hover {
    background: #f8fafc;
}

.wx-faq-answer {
    padding: 0 14px 14px 34px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

/* === SOURCE === */
.wx-source {
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.wx-source p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.wx-source a {
    color: var(--primary, #667eea);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* === BREADCRUMBS === */
.wx-breadcrumbs {
    margin-bottom: 14px;
    font-size: 13px;
    color: #94a3b8;
}

.wx-breadcrumbs a {
    color: var(--primary, #667eea);
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .wx-forecast-list.wx-compact .wx-day-row {
        grid-template-columns: 70px 28px 1fr 50px;
    }

    .wx-day-precip {
        display: none;
    }
}

@media (max-width: 768px) {
    .wx-hero {
        padding: 16px;
    }

    .wx-hero-grid {
        gap: 12px;
    }

    .wx-hero-left {
        gap: 10px;
    }

    .wx-temp-value {
        font-size: 38px;
    }

    .wx-temp-icon {
        font-size: 28px;
    }

    .wx-hero-meta {
        border-left: none;
        padding-left: 0;
    }

    .wx-hero-right {
        justify-content: flex-start;
        gap: 4px;
    }

    .wx-detail-pill {
        padding: 6px 8px;
        min-width: 55px;
    }

    .wx-detail-pill .pill-value {
        font-size: 13px;
    }

    .wx-tabs {
        padding: 3px;
    }

    .wx-tab {
        padding: 8px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .wx-tab span.tab-text {
        display: none;
    }

    .wx-forecast-list.wx-compact .wx-day-row {
        grid-template-columns: 60px 24px 1fr;
        gap: 6px;
        padding: 6px 8px;
    }

    .wx-day-wind,
    .wx-day-precip {
        display: none;
    }

    .wx-chart-container {
        height: 220px;
    }

    .wx-forecast-section,
    .wx-charts-section,
    .wx-hourly-section,
    .wx-faq-section {
        padding: 12px 14px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .wx-hero {
        padding: 12px;
    }

    .wx-temp-value {
        font-size: 32px;
    }

    .wx-hero-right {
        gap: 3px;
    }

    .wx-sun-bar {
        display: none;
    }
}