/* Permafrost Methane Crisis Alert Banner - Level 3 Emergency */

@keyframes permafrostPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes permafrostFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

@keyframes permafrostSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes permafrostSlideUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

.permafrost-crisis-alert-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0a2463 0%, #1e3a8a 30%, #06b6d4 70%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: permafrostFlash 4s infinite, permafrostSlideDown 0.5s ease-out;
    z-index: 2000;
    border-bottom: 3px solid #06b6d4;
    box-shadow: 0 5px 25px rgba(6, 182, 212, 0.5);
}

.permafrost-crisis-alert-banner.closing {
    animation: permafrostSlideUp 0.5s ease-in forwards;
}

.permafrost-crisis-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 20px;
}

.permafrost-crisis-icon {
    flex-shrink: 0;
    font-size: 2rem;
    color: #fff;
}

.permafrost-pulse {
    animation: permafrostPulse 2s infinite;
    display: inline-block;
}

.permafrost-crisis-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.permafrost-crisis-level {
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.permafrost-crisis-title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
}

.permafrost-crisis-action {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.permafrost-crisis-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.permafrost-crisis-btn {
    background: linear-gradient(45deg, #fff, #e0f2fe);
    color: #0a2463;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: permafrostPulse 2.5s infinite;
}

.permafrost-crisis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    color: #06b6d4;
}

.permafrost-crisis-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.permafrost-crisis-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Navbar adjustment */
body.permafrost-crisis-alert-shown .navbar {
    top: 80px;
}

body.permafrost-crisis-alert-shown #main-content {
    margin-top: 80px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .permafrost-crisis-alert-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
        text-align: center;
    }

    .permafrost-crisis-text {
        text-align: center;
    }

    .permafrost-crisis-level {
        font-size: 0.95rem;
    }

    .permafrost-crisis-title {
        font-size: 0.85rem;
    }

    .permafrost-crisis-action {
        font-size: 0.78rem;
    }

    .permafrost-crisis-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    body.permafrost-crisis-alert-shown .navbar {
        top: 130px;
    }

    body.permafrost-crisis-alert-shown #main-content {
        margin-top: 130px;
    }
}
