/* Live tool wrapper pages (lightning, future weather hub) */

.live-tool-page main {
    padding-top: 0;
}

.lightning-hero {
    padding: 120px 0 48px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(251, 191, 36, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
        var(--bg-primary);
}

.lightning-hero .hero-content {
    max-width: 720px;
}

.lightning-hero .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 35%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-hero {
    padding: 120px 0 48px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(79, 172, 254, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 30%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.weather-hero .hero-content {
    max-width: 720px;
}

.weather-hero .gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 55%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-tool-badge-weather {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
}

.live-tool-shell {
    padding: 0 0 80px;
    background: var(--bg-secondary);
}

.live-tool-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.live-tool-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.live-tool-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px 24px;
}

.live-tool-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.live-tool-card p,
.live-tool-card li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.live-tool-card ul {
    margin: 0;
    padding-left: 1.15rem;
}

.live-tool-card li:last-child {
    margin-bottom: 0;
}

.live-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 14px;
}

.live-tool-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.live-tool-frame {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.live-tool-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-color);
}

.live-tool-frame-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.live-tool-frame-dots {
    display: flex;
    gap: 6px;
}

.live-tool-frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.live-tool-frame-dots span:first-child { background: #ff5f56; }
.live-tool-frame-dots span:nth-child(2) { background: #ffbd2e; }
.live-tool-frame-dots span:nth-child(3) { background: #27c93f; }

.live-tool-frame-stormvue {
    display: flex;
    flex-direction: column;
}

.live-tool-frame-stormvue .live-tool-frame-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: min(72vh, 720px);
    min-height: 320px;
    background: rgb(49, 49, 49);
}

.live-tool-frame-stormvue iframe.live-tool-frame-lightning {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    background: rgb(49, 49, 49);
}

.live-tool-frame iframe {
    display: block;
    width: 100%;
    min-height: min(820px, 90vh);
    height: 820px;
    border: none;
    background: rgb(49, 49, 49);
}

.live-tool-frame iframe.live-tool-frame-weather {
    min-height: min(960px, 88vh);
    height: 1200px;
    background: #f5f5f5;
}

.live-tool-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 960px) {
    .live-tool-layout {
        grid-template-columns: 1fr;
    }

    .live-tool-aside {
        position: static;
        order: 2;
    }

    .live-tool-frame {
        order: 1;
    }

    .live-tool-frame-stormvue .live-tool-frame-viewport {
        aspect-ratio: 3 / 2;
        max-height: min(68vh, 560px);
        min-height: 280px;
    }

    .live-tool-frame iframe {
        min-height: min(720px, 75vh);
        height: 720px;
    }

    .live-tool-frame iframe.live-tool-frame-weather {
        min-height: min(840px, 78vh);
        height: 960px;
    }
}

@media (max-width: 768px) {
    .lightning-hero,
    .weather-hero {
        padding-top: 100px;
    }

    .lightning-hero .hero-title,
    .weather-hero .hero-title {
        font-size: 2.25rem;
    }
}
