﻿/* ==========================================================================
   APP VERSION (2026-11-14) — js/app-version.js
   "WanderingWU was updated" (once per version) and "A new version is ready · Reload" (a page left open while a
   newer one goes live). Sits at the bottom, centered, above everything but modals' own toasts.
   The version itself is the sidebar's last line (.sidebar-version, sidebar.css section 5).
   ========================================================================== */
.wwu-ver-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    margin: 0 auto;
    width: fit-content;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 460px;
    padding: 8px 8px 8px 14px;
    border-radius: 12px;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .28);
    font-size: .9rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

    .wwu-ver-bar.is-on {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .wwu-ver-bar.is-updated {
        background: #1f5130;
    }

    .wwu-ver-bar > i {
        flex: 0 0 auto;
        opacity: .9;
    }

    .wwu-ver-bar > span {
        flex: 1 1 auto;
        min-width: 0;
    }

    .wwu-ver-bar button {
        flex: 0 0 auto;
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer;
    }

    .wwu-ver-bar .wwu-ver-x {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        font-size: 1.15rem;
        line-height: 1;
        opacity: .8;
    }

        .wwu-ver-bar .wwu-ver-x:hover {
            background: rgba(255, 255, 255, .12);
            opacity: 1;
        }

    .wwu-ver-bar .wwu-ver-reload {
        padding: 6px 12px;
        border-radius: 8px;
        background: #fff;
        color: #1f2937;
        font-weight: 700;
    }

        .wwu-ver-bar .wwu-ver-reload:hover {
            background: #f1f5f9;
        }

@media (prefers-reduced-motion: reduce) {
    .wwu-ver-bar {
        transition: none;
    }
}

@media print {
    .wwu-ver-bar {
        display: none !important;
    }
}
