/* Shared application navbar shell, back action, and safe desktop defaults. */

:root {
    --app-content-width: 500px;
}

.spa-shell-body {
    min-height: 100vh;
    background: #100b08;
}

.spa-shell-loading {
    min-height: calc(100vh - 54px);
    display: grid;
    place-items: center;
    background: #100b08;
}

.spa-shell-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(242, 90, 0, 0.22);
    border-top-color: #f25a00;
    border-radius: 50%;
    animation: spa-shell-loading-spin 700ms linear infinite;
}

@keyframes spa-shell-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.app-navbar {
    min-height: 54px;
    padding: 0;
    background: #160e0a;
    border-bottom: 1px solid #ef5a00;
}

/* Keep the legacy container selector working until the React bundles are rebuilt. */
.app-navbar-inner,
.app-navbar > .container {
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    direction: ltr;
}

.app-mobile-search-link,
.app-mobile-notification-link {
    display: none;
    text-decoration: none;
}

a.app-navbar-back-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 999px;
    color: #f6eee9;
    text-decoration: none;
}

.app-navbar-back-link:hover,
.app-navbar-back-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.app-navbar-back-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-bottom-nav {
    display: none;
}

.react-mobile-layout {
    display: none;
}

@media (min-width: 768px) {
    .app-navbar {
        min-height: 56px;
    }

    .app-navbar-inner,
    .app-navbar > .container {
        min-height: 56px;
        padding: 0 24px;
    }
}

@media (max-width: 991.98px) {
    .spa-shell-loading {
        min-height: calc(100vh - 44px);
    }

    .app-navbar {
        min-height: 44px;
        background: #120905;
    }

    .app-navbar-inner,
    .app-navbar > .container {
        min-height: 44px;
        padding: 0 12px;
        position: relative;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spa-shell-loading-spinner {
        animation: none;
    }
}

.back-btn {
    transition: opacity 0.2s ease;
}

.back-btn:hover {
    opacity: 0.85;
}
