/* Network Weather Styles */

.weather-current {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.weather-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.weather-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--gold), var(--crimson));
}

.weather-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.weather-emoji {
    font-size: 2.5rem;
}

.weather-condition {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--emerald);
}

.weather-temp {
    margin-bottom: 8px;
}

.temp-value {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--gold);
}

.temp-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.weather-network {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.weather-forecast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forecast-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.forecast-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.forecast-emoji {
    font-size: 1.8rem;
}

.forecast-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.forecast-prob {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.prob-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--crimson);
}

/* Signals Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.2s;
}

.signal-card:hover {
    border-color: var(--border-hover);
}

.signal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.signal-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.signal-level {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}

.signal-level.extreme { background: var(--glow-crimson); color: var(--crimson); }
.signal-level.high { background: var(--glow-gold); color: var(--gold); }
.signal-level.medium { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.signal-level.low { background: var(--glow-emerald); color: var(--emerald); }

.signal-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.signal-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.signal-bar.gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.signal-bar.crimson { background: linear-gradient(90deg, #b91c1c, var(--crimson)); }
.signal-bar.emerald { background: linear-gradient(90deg, var(--emerald-dark), var(--emerald)); }
.signal-bar.blue { background: linear-gradient(90deg, #1d4ed8, var(--blue)); }

.signal-value {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text);
}

/* Activity Chart */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--emerald);
    text-transform: uppercase;
}

.live-dot {
    width: 6px; height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.activity-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 120px;
    padding: 0 4px;
    overflow: hidden;
    width: 100%;
}

.chart-bar {
    flex: 1 1 0;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 0;
    max-width: 12px;
    cursor: pointer;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-bar.low { background: rgba(52, 211, 153, 0.6); }
.chart-bar.medium { background: rgba(212, 168, 83, 0.6); }
.chart-bar.high { background: rgba(244, 63, 94, 0.6); }

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.metric-item {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
}

.metric-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text);
}

/* API Card */
.api-card {
    border-color: rgba(212, 168, 83, 0.1);
}

.api-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.api-method {
    padding: 4px 10px;
    background: var(--glow-emerald);
    color: var(--emerald);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.api-url {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.api-response {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    border: 1px solid var(--border-subtle);
}

/* Responsive */
@media (max-width: 768px) {
    .weather-current { grid-template-columns: 1fr; }
    .signals-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .temp-value { font-size: 2.5rem; }

    .activity-chart {
        gap: 1px;
        height: 100px;
    }

    .chart-bar {
        max-width: 8px;
    }

    .weather-chart-card {
        overflow: hidden;
    }
}
