/* ================================================================
   ALT NAVİGASYON BARI — Dark Floating Pill
   Artık tüm ekranlarda görünür: mobilde normal boyut,
   masaüstünde (min-width: 769px) büyütülmüş + ortalı.
================================================================ */

/* --- Temel görünüm: her ekranda aktif --- */
.us-mobile-nav {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: auto;
    -webkit-transform: translateX(-50%) translateZ(0);
    transform: translateX(-50%) translateZ(0);
}

/* --- Floating pill bar --- */
.us-mobile-nav__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #171233;
    border-radius: 36px;
    padding: 10px 20px;
    gap: 6px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    min-width: 240px;
}

/* --- Safe area --- */
.us-mobile-nav__safe-area {
    display: none;
}

/* --- Sayfa içeriğinin bar arkasında kalmaması --- */
body {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

/* --- Her bir nav item --- */
.us-mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    text-decoration: none;
    color: #a3a1b8;
    transition: color 0.2s ease, transform 0.15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
}

.us-mobile-nav__item:active {
    transform: scale(0.85);
}

/* --- İkon --- */
.us-mobile-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.us-mobile-nav__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: stroke 0.2s ease;
}

/* Etiket gizli */
.us-mobile-nav__label {
    display: none;
}

/* --- Aktif item --- */
.us-mobile-nav__item.is-active {
    color: #f5b400;
}

/* ============================================================
   + BUTONU — Cyan glow ring
============================================================ */
.us-mobile-nav__item--plus {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0 4px;
    padding: 0;
}

.us-mobile-nav__item--plus::after {
    display: none;
}

.us-mobile-nav__plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #171233;
    border: 2px solid #f5b400;
    box-shadow:
        0 0 0 3px rgba(245,180,0,0.15),
        0 0 16px rgba(245,180,0,0.35),
        0 0 32px rgba(245,180,0,0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    color: #f5b400;
    position: relative;
}

/* Glow halkası animasyonu */
.us-mobile-nav__plus-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(245,180,0,0.25);
    animation: plus-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes plus-ring-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.12); }
}

.us-mobile-nav__plus-btn svg {
    width: 22px;
    height: 22px;
    stroke: #f5b400;
}

.us-mobile-nav__item--plus:active .us-mobile-nav__plus-btn {
    transform: scale(0.90) rotate(45deg);
    box-shadow:
        0 0 0 3px rgba(245,180,0,0.25),
        0 0 24px rgba(245,180,0,0.5);
}

/* ---------------------------------------------------------------
   ÇIKIŞ BUTONU
---------------------------------------------------------------- */
.us-mobile-nav__item--logout {
    background: none;
    border: none;
    cursor: pointer;
    color: #a3a1b8;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 0;
    font-family: inherit;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

.us-mobile-nav__item--logout:active {
    color: #ef4444;
    transform: scale(0.85);
}

.us-mobile-nav__item--logout .us-mobile-nav__icon svg {
    stroke: currentColor;
}

.us-mobile-nav__item--logout .us-mobile-nav__label {
    display: none;
}

/* ================================================================
   MASAÜSTÜ — büyütülmüş ve ortalı hali (min-width: 769px)
================================================================ */
@media (min-width: 769px) {

    .us-mobile-nav {
        bottom: 28px;
    }

    .us-mobile-nav__bar {
        border-radius: 44px;
        padding: 14px 28px;
        gap: 10px;
        min-width: 320px;
    }

    body {
        padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .us-mobile-nav__item,
    .us-mobile-nav__item--logout {
        width: 52px;
        height: 52px;
    }

    .us-mobile-nav__icon {
        width: 28px;
        height: 28px;
    }

    .us-mobile-nav__icon svg {
        width: 26px;
        height: 26px;
    }

    .us-mobile-nav__item--plus {
        width: 62px;
        height: 62px;
        margin: 0 6px;
    }

    .us-mobile-nav__plus-btn {
        width: 62px;
        height: 62px;
    }

    .us-mobile-nav__plus-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Masaüstünde fare imleci için ipucu */
    .us-mobile-nav__item,
    .us-mobile-nav__item--logout {
        cursor: pointer;
    }

    .us-mobile-nav__item:hover {
        color: #9ca3af;
        transform: translateY(-2px);
    }

    .us-mobile-nav__item.is-active:hover {
        color: #f5b400;
    }

    .us-mobile-nav__item--plus:hover .us-mobile-nav__plus-btn {
        transform: scale(1.06);
        box-shadow:
            0 0 0 3px rgba(245,180,0,0.2),
            0 0 22px rgba(245,180,0,0.45);
    }

    .us-mobile-nav__item--logout:hover {
        color: #ef4444;
    }
}
