/* ROSEVELVET BOUTIQUE LLC - Modern Mobile App Navigation Bar */
/* Theme 2 - Floating Bottom Navigation */

/* Add padding to body when mobile nav is active */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px !important;
    }
}

.mobile-app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none !important; /* Hidden by default, shown only on mobile */
    padding: 8px 0 12px;
    border-top: 1px solid rgba(231, 84, 128, 0.1);
}

.mobile-app-nav.active {
    display: block;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 80px;
    padding: 5px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #E75480;
    transform: translateY(-2px);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mobile-nav-item.active .mobile-nav-icon {
    animation: navBounce 0.5s ease;
}

@keyframes navBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    margin-top: 2px;
}

.mobile-nav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: linear-gradient(135deg, #E75480 0%, #C04060 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(231, 84, 128, 0.3);
}

/* Center FAB Button */
.mobile-nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #E75480 0%, #C04060 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(231, 84, 128, 0.4);
    margin-top: -28px;
    border: 4px solid #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(231, 84, 128, 0.5);
}

.mobile-nav-fab svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Show only on mobile devices - Hidden on desktop/tablet */
@media (max-width: 768px) {
    .mobile-app-nav {
        display: block !important;
    }
}

/* Ensure hidden on desktop and large tablets */
@media (min-width: 769px) {
    .mobile-app-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 576px) {
    .mobile-nav-item {
        max-width: 70px;
    }
    
    .mobile-nav-label {
        font-size: 10px;
    }
    
    .mobile-nav-icon {
        width: 22px;
        height: 22px;
    }
}

/* Ripple effect on tap */
.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(231, 84, 128, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.mobile-nav-item:active::before {
    width: 60px;
    height: 60px;
}

/* Safe area for iPhone notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-app-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    @media (max-width: 768px) {
        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}
