/* =============================================================================
   MOBILE-NAV.CSS — shawnjason.com
   Bottom navigation bar for small screens, hidden on desktop.
   ============================================================================= */

.sj-mobile-bar {
    display: none;
}

@media (max-width: 780px) {
        .sj-mobile-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        background-color: var(--rust);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        transition: height 0.3s ease;
        height: 58px;
        z-index: 999;
    }

        .sj-mobile-bar.is-open {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }


    .sj-mobile-bar-row {
        display: flex;
        height: 58px;
    }
    .sj-mobile-bar-row a,
    .sj-mobile-bar-row button {
        flex: 1;
        background: none;
        border: none;
        border-right: 1px solid rgba(33, 31, 28, 0.15);
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 400;
        color: var(--paper);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        letter-spacing: 0.03em;
        -webkit-tap-highlight-color: transparent;
        padding: 0;
        gap: 4px;
    }
    .sj-mobile-bar-row button {
        border-right: none;
    }
    .sj-mobile-bar-row button {
        color: var(--ink);
    }
            .sj-mobile-more-arrow {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid var(--ink);
        transition: transform 0.3s ease;
        animation: sjMoreNudge 90s ease-in-out infinite;
        animation-delay: 0s;
    }
    .sj-mobile-bar-row a svg {
        display: inline-block;
        animation: sjMoreNudge 90s ease-in-out infinite;
    }
    .sj-mobile-bar-row a:nth-child(1) svg {
        animation-delay: 20s;
    }
    .sj-mobile-bar-row a:nth-child(2) svg {
        animation-delay: 45s;
    }
    .sj-mobile-bar-row a:nth-child(3) svg {
        animation-delay: 65s;
    }


    @keyframes sjMoreNudge {
        0%, 90%, 100% {
            transform: translateY(0) scale(1);
        }
        92% {
            transform: translateY(-6px) scale(1.3);
        }
        94% {
            transform: translateY(0) scale(1);
        }
        96% {
            transform: translateY(-6px) scale(1.3);
        }
        98% {
            transform: translateY(0) scale(1);
        }
    }
    .sj-mobile-bar.is-open .sj-mobile-more-arrow {
        transform: rotate(180deg);
    }

        .sj-mobile-bar-panel {
        padding: 16px 18px;
        background-color: var(--ink);
    }
    
    .sj-mobile-promo-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }
    .sj-mobile-promo-btn {
        background-color: rgba(239, 234, 225, 0.08);
        border: 1px solid rgba(239, 234, 225, 0.2);
        border-radius: 6px;
        padding: 10px;
        text-align: center;
        color: var(--paper);
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.03em;
    }

    .sj-mobile-whatnot {
        display: block;
        text-align: center;
        background-color: var(--rust);
        color: var(--paper);
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 600;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 18px;
        letter-spacing: 0.03em;
    }

    .sj-mobile-footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 16px;
    }
    .sj-mobile-footer-links a {
        color: #c9c3b6;
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 11px;
    }

    .sj-mobile-signature {
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 900;
        font-size: 22px;
        color: var(--paper);
    }

        /* Prevent the fixed bar from covering page content */
    body {
        padding-top: 58px;
        padding-bottom: 0;
    }

