﻿/* Spacer is controlled via JS */
#pmn-banner-spacer {
    height: 0;
}

:root {
    --pmn-c1: #6a5af9;
    --pmn-c2: #13c6ff;
    --pmn-c3: #00d4a6;
    --pmn-bg: #0c1220;
    --pmn-text: #fff;
    --pmn-muted: rgba(255,255,255,.85);
    --pmn-border: rgba(255,255,255,.18);
    --pmn-height: 44px;
    --pmn-radius: 12px;
    --pmn-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.pmn-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg,var(--pmn-c1),var(--pmn-c2),var(--pmn-c3));
    background-size: 200% 200%;
    animation: pmn-shift 10s linear infinite;
    box-shadow: var(--pmn-shadow);
}

@media (prefers-reduced-motion: reduce) {
    .pmn-update-banner {
        animation: none;
    }
}

.pmn-ub__inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: var(--pmn-height);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--pmn-border);
}

.pmn-ub__left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pmn-text);
    font: 600 13px/1.2 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    letter-spacing: .2px;
}

.pmn-ub__pulse {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pmn-bg);
    box-shadow: 0 0 0 0 rgba(12,18,32,.6);
    animation: pmn-pulse 2.2s ease-in-out infinite;
}

.pmn-ub__title {
    padding: 4px 10px;
    background: rgba(12,18,32,.18);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.pmn-ub__sep {
    opacity: .6;
}

.pmn-ub__msg {
    color: var(--pmn-muted);
    font-weight: 600;
    white-space: nowrap;
}

.pmn-ub__right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pmn-ub__cta {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--pmn-radius);
    background: var(--pmn-bg);
    color: #fff;
    text-decoration: none;
    font: 700 12px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    border: 1px solid rgba(255,255,255,.12);
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

    .pmn-ub__cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
    }

    .pmn-ub__cta:active {
        transform: translateY(0);
        opacity: .92;
    }

.pmn-ub__close {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--pmn-radius);
    background: transparent;
    border: 1px solid rgba(255,255,255,.22);
    color: var(--pmn-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, opacity .15s ease, border-color .15s ease;
}

    .pmn-ub__close:hover {
        background: rgba(12,18,32,.15);
        transform: translateY(-1px);
    }

.pmn-update-banner.pmn-hide {
    opacity: 0;
    transform: translateY(-6px);
    transition: all .18s ease;
}

@keyframes pmn-shift {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 200% 50%
    }
}

@keyframes pmn-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(12,18,32,.45)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(12,18,32,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(12,18,32,0)
    }
}

@media (max-width:640px) {
    :root {
        --pmn-height: 42px
    }

    .pmn-ub__msg {
        display: none
    }
}
