/* ========================================
   Mobile Bottom Navigation Styles
   ======================================== */

/* Main Navigation Container */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4),
        0 -2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    transform: translateZ(0);
    will-change: transform;
}

/* Navigation Container */
.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
}

/* Individual Navigation Items */
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 16px;
    position: relative;
    min-width: 60px;
    flex: 1;
    max-width: 80px;
}

/* Navigation Item Hover Effect */
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active {
    color: var(--main-color);
    background: rgba(95, 230, 219, 0.1);
    transform: translateY(-2px);
}

/* Active State Indicator */
.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--main-color);
    border-radius: 0 0 3px 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav .nav-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Icon Container */
.mobile-bottom-nav .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-bottom-nav .nav-item:hover .nav-icon {
    transform: scale(1.15);
}

/* Icon Glow Effect on Hover */
.mobile-bottom-nav .nav-item:hover .nav-icon i {
    filter: drop-shadow(0 0 8px rgba(95, 230, 219, 0.6));
}

/* Label Text */
.mobile-bottom-nav .nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.mobile-bottom-nav .nav-item:hover .nav-label {
    opacity: 1;
    font-weight: 600;
}

/* ========================================
   CENTER RESERVATION BUTTON (EMPHASIZED)
   ======================================== */

.mobile-bottom-nav .nav-item-center {
    position: relative;
    margin: 0 8px;
    padding: 8px 12px;
    min-width: 70px;
    max-width: 90px;
    transform: translateY(-16px);
    transition: all 0.3s ease;
}

/* Remove all circular backgrounds */
.mobile-bottom-nav .nav-item-center::after,
.mobile-bottom-nav .nav-item-center::before {
    display: none;
}

/* Center Button Icon - Larger */
.mobile-bottom-nav .nav-icon-large {
    width: 40px;
    height: 40px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav .nav-item-center:hover .nav-icon-large {
    transform: scale(1.15);
    color: var(--main-color);
}

.mobile-bottom-nav .nav-item-center .nav-icon-large i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mobile-bottom-nav .nav-item-center:hover .nav-icon-large i {
    filter: drop-shadow(0 0 8px rgba(95, 230, 219, 0.6));
}

/* Center Button Label */
.mobile-bottom-nav .nav-item-center .nav-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav .nav-item-center:hover .nav-label {
    color: var(--main-color);
}

/* ========================================
   RESERVATION DROPDOWN MENU
   ======================================== */

.mobile-bottom-nav .reservation-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(95, 230, 219, 0.3);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 15px;
    min-width: 200px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    display: none;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    pointer-events: none;
    /* Initially none to prevent blocking */
}

/* Robust hover and active states */
.mobile-bottom-nav .nav-item-center:hover .reservation-dropdown,
.mobile-bottom-nav .nav-item-center.active .reservation-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: all !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Dropdown arrow */
.mobile-bottom-nav .reservation-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(25, 25, 25, 0.98);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Dropdown Title */
.mobile-bottom-nav .dropdown-title {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dropdown Items - Professional Design */
.mobile-bottom-nav .dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}


/* Icon styling */
.mobile-bottom-nav .dropdown-item i {
    font-size: 22px;
    margin-bottom: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item label */
.mobile-bottom-nav .dropdown-item .item-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hover/Active effect with gradient background */
.mobile-bottom-nav .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, rgba(95, 230, 219, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.mobile-bottom-nav .dropdown-item:hover::before,
.mobile-bottom-nav .dropdown-item:active::before {
    opacity: 1;
}

.mobile-bottom-nav .dropdown-item:hover,
.mobile-bottom-nav .dropdown-item:active {
    color: #000000;
    border-color: var(--main-color);
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(95, 230, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-bottom-nav .dropdown-item:hover i,
.mobile-bottom-nav .dropdown-item:active i {
    transform: scale(1.1);
}

/* Delivery specific styling */
.mobile-bottom-nav .dropdown-item.delivery-option i {
    color: rgba(255, 255, 255, 0.9);
}

/* On-site specific styling */
.mobile-bottom-nav .dropdown-item.onsite-option i {
    color: rgba(255, 255, 255, 0.9);
}


/* ========================================
   HEADER ADJUSTMENTS FOR SMALL SCREENS
   ======================================== */

/* Hide header book a table button on very small screens (390px or less) */
@media (max-width: 390px) {
    .main-header .link-btn {
        display: none !important;
    }
}


/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Small Phones */
@media (max-width: 360px) {
    .mobile-bottom-nav .nav-item {
        min-width: 50px;
        max-width: 65px;
        padding: 6px 8px;
    }

    .mobile-bottom-nav .nav-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .mobile-bottom-nav .nav-label {
        font-size: 10px;
    }

    .mobile-bottom-nav .nav-icon-large {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .mobile-bottom-nav .reservation-dropdown {
        min-width: 120px;
        padding: 6px;
    }

    .mobile-bottom-nav .dropdown-item {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Tablets and Larger - Hide Mobile Nav */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ======================================== */

/* Increase touch target size */
.mobile-bottom-nav .nav-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Focus states for accessibility */
.mobile-bottom-nav .nav-item:focus {
    outline: 2px solid rgba(95, 230, 219, 0.5);
    outline-offset: 2px;
}

.mobile-bottom-nav .nav-item:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling compensation */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Pulse animation for center button (optional - can be enabled on page load) */
@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Add this class to center button for attention-grabbing effect */
.nav-item-center.pulse::after {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}



.reservation-dropdown.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: all !important;
    z-index: 999999 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

.dropdown-content #reservationBtn {
    display: none;
}

.dropdown-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    pointer-events: all;
    position: relative;
    z-index: 1000000;
}

.dropdown-content .dropdown-item {
    pointer-events: all !important;
    cursor: pointer;
    position: relative;
    z-index: 1000001;
}