/* ============================================
   Mobile Bottom Navigation - Premium App Style
   Bogura Bazar Theme
============================================ */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0 18px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 8px;
}

/* নেভিগেশন আইটেম - প্রিমিয়াম */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e93;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    padding: 6px 0 4px;
    border-radius: 12px;
}

.nav-icon-wrapper {
    position: relative;
    font-size: 22px;
    margin-bottom: 5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

/* অ্যাক্টিভ স্টেট - প্রিমিয়াম */
.mobile-nav-item.active {
    color: #00A65A;
}

.mobile-nav-item.active .nav-icon-wrapper {
    transform: translateY(-3px);
}

.mobile-nav-item.active .nav-icon-wrapper i {
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 166, 90, 0.3);
}

.mobile-nav-item.active .nav-label {
    color: #00A65A;
    font-weight: 600;
    transform: scale(0.98);
}

/* ব্যাজ স্টাইল */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* কেন্দ্রীয় বাটন - প্রিমিয়াম স্টাইল */
.mobile-nav-center {
    position: relative;
    margin: 0 8px;
}

.mobile-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00A65A, #008D4C);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    margin-top: -24px;
    box-shadow: 0 6px 20px rgba(0, 166, 90, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-center-btn i {
    font-size: 26px;
    transition: transform 0.2s ease;
}

.mobile-center-btn .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-center-btn:active {
    transform: scale(0.94);
}

.mobile-center-btn:active i {
    transform: scale(0.9);
}

/* হোভার ইফেক্ট (ডেস্কটপে) */
@media (hover: hover) {
    .mobile-nav-item:hover {
        color: #00A65A;
    }

    .mobile-nav-item:hover .nav-icon-wrapper {
        transform: translateY(-2px);
    }

    .mobile-center-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 166, 90, 0.45);
    }

    .mobile-center-btn:hover i {
        transform: scale(1.05);
    }
}

/* রিপল ইফেক্ট - প্রিমিয়াম */
.mobile-nav-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 166, 90, 0.12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.mobile-nav-item:active::after {
    width: 100px;
    height: 100px;
}

/* অ্যাক্টিভ ইন্ডিকেটর (আইওএস স্টাইল) */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #00A65A, #28B86E);
    border-radius: 3px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 24px;
        opacity: 1;
    }
}

/* ব্যাজ বাউন্স অ্যানিমেশন */
@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
}

.cart-badge.update,
.wishlist-badge.update {
    animation: badgeBounce 0.4s ease;
}

/* আইফোন নচের জন্য সুরক্ষিত এলাকা */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

/* অ্যান্ড্রয়েড নচের জন্য */
@supports (padding-bottom: constant(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        padding-bottom: calc(18px + constant(safe-area-inset-bottom));
    }
}

/* ডেস্কটপে লুকান */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

/* মোবাইলে দেখান */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
}

/* ছোট মোবাইলের জন্য অ্যাডজাস্টমেন্ট */
@media (max-width: 480px) {
    .mobile-bottom-nav {
        padding: 8px 0 16px;
    }
    .mobile-nav-container {
        padding: 0 12px;
        gap: 4px;
    }
    .mobile-center-btn {
        width: 52px;
        height: 52px;
        margin-top: -22px;
    }
    .mobile-center-btn i {
        font-size: 24px;
    }
    .nav-icon-wrapper {
        font-size: 20px;
    }
    .nav-label {
        font-size: 9px;
    }
    .mobile-nav-item.active::before {
        width: 20px;
        height: 2.5px;
    }
}

/* ডার্ক মোড সাপোর্ট */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: rgba(18, 18, 25, 0.98);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
    .mobile-nav-item {
        color: #9e9ea8;
    }
    .mobile-nav-item.active {
        color: #28B86E;
    }
}
