/* Mobile Bottom Navigation Bar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(18, 8, 45, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(93, 135, 255, 0.2);
    box-shadow: 0 -2px 25px rgba(0, 0, 0, 0.4);
}

/* Dark theme support - enhanced for your theme */
[data-bs-theme="dark"] .bottom-navbar,
body .bottom-navbar {
    background: rgba(13, 10, 21, 0.95);
    border-top: 1px solid rgba(93, 135, 255, 0.3);
    box-shadow: 0 -2px 25px rgba(0, 0, 0, 0.5);
}

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

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 65px;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: #5d87ff;
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(93, 135, 255, 0.1);
}

.bottom-nav-item.active {
    color: #5d87ff;
    background: rgba(93, 135, 255, 0.15);
    box-shadow: 0 2px 8px rgba(93, 135, 255, 0.2);
}

/* Special CTA (Call-to-Action) Button - Buy Tickets */
.bottom-nav-item.bottom-nav-cta {
    background: linear-gradient(145deg, #ff6b35, #f7931e, #ffd700);
    color: #ffffff !important;
    border-radius: 25px;
    padding: 10px 18px;
    padding-top: 0px !important;
    margin: 0 10px;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 0 0 3px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.15) translateY(-8px);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.6);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: scale(1.15) translateY(-8px);
    }
    50% {
        transform: scale(1.15) translateY(-12px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.4),
            0 0 0 3px rgba(255, 215, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(255, 107, 53, 0.6),
            0 0 0 5px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.bottom-nav-item.bottom-nav-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ffd700, #f7931e, #ff6b35);
    border-radius: 25px;
    z-index: -1;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bottom-nav-item.bottom-nav-cta::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 14px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.bottom-nav-item.bottom-nav-cta:hover,
.bottom-nav-item.bottom-nav-cta:focus {
    background: linear-gradient(145deg, #ff8c42, #ffa500, #ffed4e);
    transform: scale(1.2) translateY(-12px);
    animation: pulse-glow 0.8s ease-in-out infinite, float 2s ease-in-out infinite;
    color: #ffffff !important;
}

.bottom-nav-item.bottom-nav-cta .bottom-nav-icon {
    font-size: 28px;
    margin-bottom: 3px;
    font-weight: bold;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: ticket-wiggle 2s ease-in-out infinite;
}

@keyframes ticket-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.bottom-nav-item.bottom-nav-cta .bottom-nav-label {
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bottom-nav-icon {
    font-size: 30px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 300;
    text-align: center;
    line-height: 1;
    color: inherit;
}

/* Active indicator */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 4px;
    background: linear-gradient(90deg, #5d87ff, #4c63d2);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(93, 135, 255, 0.3);
}

/* Animation for active state */
.bottom-nav-item.active .bottom-nav-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-4px) scale(1.1);
    }

    60% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .bottom-nav-item {
        padding: 4px 0px;
        min-width: 50px;
    }

    .bottom-nav-icon {
        font-size: 26px;
    }

    .bottom-nav-label {
        font-size: 10px;
    }
    
    .bottom-nav-item.bottom-nav-cta {
        padding: 10px 14px;
        padding-top: 0px !important;
        margin: 0 6px;
        transform: scale(1.1) translateY(-6px);
    }
    
    .bottom-nav-item.bottom-nav-cta:hover {
        transform: scale(1.15) translateY(-10px);
    }
    
    .bottom-nav-item.bottom-nav-cta .bottom-nav-icon {
        font-size: 24px;
    }
    
    .bottom-nav-item.bottom-nav-cta .bottom-nav-label {
        font-size: 10px;
    }
    
    @keyframes float {
        0%, 100% {
            transform: scale(1.1) translateY(-6px);
        }
        50% {
            transform: scale(1.1) translateY(-10px);
        }
    }
}

/* Safe area for newer iPhones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-navbar {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* Add bottom padding to body when bottom navbar is present */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }

    .body-wrapper {
        margin-bottom: 0 !important;
    }

    /* Ensure content doesn't get hidden behind navbar */
    .container-fluid {
        margin-bottom: 20px !important;
    }
}

/* Hide on larger screens */
@media (min-width: 992px) {
    .bottom-navbar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Enhanced glow effect for dark theme */
.bottom-navbar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(93, 135, 255, 0.4), transparent);
}