/* WeatherCast AI Showcase CSS - Command & Control Center Theme */

:root {
    --weathercast-cyan: #00f0ff;
    --weathercast-blue: #3b82f6;
    --weathercast-neon-green: #00e676;
    --weathercast-neon-red: #ff3b30;
    --weathercast-neon-orange: #ff9f00;
    --weathercast-bg: #070b15;
    --weathercast-card-bg: rgba(11, 18, 36, 0.7);
    --weathercast-border-glow: rgba(0, 240, 255, 0.15);
    --weathercast-text: #f1f5f9;
    --weathercast-text-muted: #94a3b8;
}

body.weathercast-page {
    background-color: var(--weathercast-bg);
    color: var(--weathercast-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Gridlines Pattern Background */
.weathercast-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

.weathercast-mesh-bg {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 100%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

/* Hero Layout */
.weathercast-hero {
    position: relative;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 90vh;
    z-index: 1;
}

.weathercast-hero-content {
    max-width: 650px;
}

.weathercast-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 100px;
    color: var(--weathercast-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weathercast-hero-content h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--weathercast-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weathercast-hero-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--weathercast-text-muted);
    margin-bottom: 36px;
}

.weathercast-hero-buttons {
    display: flex;
    gap: 16px;
}

/* Interactive Neon Button */
.btn-neon-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--weathercast-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    letter-spacing: 0.02em;
}

.btn-neon-cyan:hover {
    background: var(--weathercast-cyan);
    color: #070b15;
    box-shadow: 0 4px 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

/* Console Display Frame for Dashboards */
.console-frame {
    position: relative;
    width: 100%;
    border-radius: 12px;
    background: #0b0f19;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--weathercast-border-glow);
    overflow: hidden;
    transition: all 0.4s ease;
}

.console-frame:hover {
    border-color: var(--weathercast-cyan);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 240, 255, 0.3);
    transform: scale(1.01);
}

.console-bar {
    height: 36px;
    background: #0e1424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.console-dot.red { background-color: #ef4444; }
.console-dot.yellow { background-color: #f59e0b; }
.console-dot.green { background-color: #10b981; }

.console-title {
    color: var(--weathercast-text-muted);
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.1em;
}

.console-screen {
    position: relative;
    width: 100%;
    line-height: 0;
}

.console-screen img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Floating labels for desktop widgets */
.console-tag {
    position: absolute;
    background: rgba(11, 18, 36, 0.9);
    border: 1px solid var(--weathercast-cyan);
    border-radius: 6px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 0.7rem;
    font-family: monospace;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Split Rows & Layout Blocks */
.weathercast-section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.weathercast-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.weathercast-split.reverse {
    grid-template-columns: 1.15fr 0.85fr;
}

.weathercast-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.weathercast-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--weathercast-text-muted);
    margin-bottom: 30px;
}

/* Features Grid */
.weathercast-capabilities {
    padding: 100px 0;
    background: rgba(11, 18, 36, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.weathercast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.weathercast-card {
    background: var(--weathercast-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.weathercast-card:hover {
    border-color: var(--weathercast-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.weathercast-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--weathercast-cyan);
    margin-bottom: 24px;
}

.weathercast-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.weathercast-card p {
    color: var(--weathercast-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Local Risk Indices Dashboard Widgets */
.indices-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.index-box {
    background: rgba(11, 18, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--weathercast-text-muted);
}

.index-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.critical {
    background: rgba(239, 68, 68, 0.12);
    color: var(--weathercast-neon-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--weathercast-neon-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.low {
    background: rgba(16, 185, 129, 0.12);
    color: var(--weathercast-neon-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Mini Progress Bar */
.mini-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1s ease-in-out;
}

/* Bullet list specs */
.weathercast-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weathercast-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.weathercast-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--weathercast-cyan);
}

.weathercast-list li span {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--weathercast-text-muted);
}

.weathercast-list li span strong {
    color: #ffffff;
}

/* Specifications Table styling */
.specs-table-wrapper {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 18, 36, 0.4);
    backdrop-filter: blur(10px);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th {
    background: #0e1424;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table td {
    padding: 18px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--weathercast-text-muted);
    vertical-align: middle;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: #ffffff;
}

/* Neon dot indicator */
.neon-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--weathercast-neon-green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--weathercast-neon-green);
}

/* Entry Animation Classes */
.st-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

body.splash-done .st-fade-up {
    animation: weathercastFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.st-delay-1 { animation-delay: 0.15s; }
.st-delay-2 { animation-delay: 0.3s; }
.st-delay-3 { animation-delay: 0.45s; }
.st-delay-4 { animation-delay: 0.6s; }

@keyframes weathercastFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for map highlights */
@keyframes weatherPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.pulse-indicator {
    animation: weatherPulse 2s infinite ease-in-out;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .weathercast-hero-content h1 {
        font-size: 3rem;
    }
    .weathercast-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .weathercast-split.reverse {
        grid-template-columns: 1fr;
    }
    .weathercast-text {
        text-align: center;
    }
    .weathercast-list li {
        text-align: left;
    }
    .console-frame {
        max-width: 700px;
        margin: 0 auto;
    }
    .indices-panel {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .weathercast-hero-content h1 {
        font-size: 2.25rem;
    }
    .weathercast-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .indices-panel {
        grid-template-columns: 1fr;
    }
    .specs-table th, .specs-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* Button & Tabs Controls */
.btn-dark-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(11, 18, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-dark-outline:hover {
    border-color: var(--weathercast-cyan);
    color: var(--weathercast-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.btn-dark-outline.active-tab-btn {
    background: var(--weathercast-cyan);
    color: #070b15;
    border-color: var(--weathercast-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   Weather Forecast & Data Ingestion Styles
   ========================================================================== */

.forecast-dashboard {
    background: #070c17;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.05);
    position: relative;
    z-index: 5;
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.forecast-title-area h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.forecast-title-area p {
    font-size: 0.95rem;
    color: var(--weathercast-text-muted);
    margin: 0;
}

.forecast-kpis-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.kpi-card {
    background: rgba(11, 18, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    border-color: var(--weathercast-cyan);
    transform: translateY(-2px);
    background: rgba(11, 18, 36, 0.7);
}

.kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--weathercast-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
}

.kpi-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
}

.kpi-desc {
    font-size: 0.75rem;
    color: var(--weathercast-text-muted);
}

.forecast-main-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.dashboard-card {
    background: rgba(11, 18, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seven-day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    background: rgba(7, 12, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.day-column:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.2);
}

.day-column.today {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--weathercast-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.day-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.day-temp-high {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.day-temp-low {
    font-size: 0.85rem;
    color: var(--weathercast-text-muted);
    margin-bottom: 12px;
}

.day-pop {
    font-size: 0.75rem;
    color: var(--weathercast-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hourly Timeline layout */
.hourly-timeline {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    padding: 10px;
}

.hourly-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--weathercast-text-muted);
    margin-bottom: 8px;
}

.hourly-temp {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 8px;
    margin-bottom: 4px;
}

.hourly-pop {
    font-size: 0.7rem;
    color: var(--weathercast-cyan);
}

/* Bar Chart styling */
.chart-container {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 10px;
}

.chart-bar {
    width: 24px;
    background: linear-gradient(180deg, var(--weathercast-blue) 0%, rgba(59, 130, 246, 0.4) 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.6s ease;
    cursor: pointer;
    min-height: 2px;
}

.chart-bar:hover {
    background: linear-gradient(180deg, var(--weathercast-cyan) 0%, rgba(0, 240, 255, 0.4) 100%);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.chart-label {
    font-size: 0.75rem;
    color: var(--weathercast-text-muted);
}

.chart-bar-value {
    font-size: 0.7rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Severe Outlook item */
.severe-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.severe-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.severe-indicator {
    width: 8px;
    height: 32px;
    border-radius: 4px;
}

.severe-indicator.critical { background-color: var(--weathercast-neon-red); }
.severe-indicator.warning { background-color: var(--weathercast-neon-orange); }
.severe-indicator.low { background-color: var(--weathercast-neon-green); }

.severe-content {
    flex: 1;
}

.severe-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 3px;
}

.severe-desc {
    font-size: 0.75rem;
    color: var(--weathercast-text-muted);
}

.severe-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Data Ingestion Feed Directory Section */
.sources-section {
    padding: 90px 0;
    background: rgba(11, 18, 36, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.source-card {
    background: rgba(7, 11, 21, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.source-card:hover {
    border-color: var(--weathercast-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.05);
}

.source-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-card h3 svg {
    color: var(--weathercast-cyan);
    flex-shrink: 0;
}

.source-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-card-list li {
    font-size: 0.88rem;
    color: var(--weathercast-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.source-card-list li svg {
    color: var(--weathercast-cyan);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Responsiveness adjustments for Forecast */
@media (max-width: 1024px) {
    .forecast-kpis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .forecast-main-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .forecast-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .seven-day-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .forecast-kpis-grid {
        grid-template-columns: 1fr;
    }
    .seven-day-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

