/* Mobile Bottom Filter Component */

.mobile-bottom-filter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-bottom-filter-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.mobile-bottom-filter-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.mobile-bottom-filter-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-bottom-filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    min-width: 70px;
    max-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
    
    /* Remove touch highlights */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-bottom-filter-tab i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-bottom-filter-tab span {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-bottom-filter-tab:hover {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-bottom-filter-tab.active {
    background: linear-gradient(45deg, rgba(233, 69, 96, 0.8), rgba(233, 69, 96, 0.6));
    border-color: #e94560;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    transform: translateY(-3px);
}

.mobile-bottom-filter-tab:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Custom filter colors */
.mobile-bottom-filter-tab[data-filter="all"].active {
    background: linear-gradient(45deg, rgba(233, 69, 96, 0.8), rgba(233, 69, 96, 0.6));
    border-color: #e94560;
}

.mobile-bottom-filter-tab[data-filter="band"].active {
    background: linear-gradient(45deg, rgba(233, 69, 96, 0.8), rgba(233, 69, 96, 0.6));
    border-color: #e94560;
}

.mobile-bottom-filter-tab[data-filter="concerts"].active {
    background: linear-gradient(45deg, rgba(23, 162, 184, 0.8), rgba(23, 162, 184, 0.6));
    border-color: #17a2b8;
}

.mobile-bottom-filter-tab[data-filter="backstage"].active {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.8), rgba(255, 193, 7, 0.6));
    border-color: #ffc107;
    color: #000;
}

/* Ensure content doesn't get hidden behind the bottom filter */
.mobile-bottom-filter-spacer {
    height: 90px; /* Adjust based on filter height */
    display: block;
}

@media (max-width: 991.98px) {
    .mobile-bottom-filter {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-filter {
        display: none !important;
    }
    
    .mobile-bottom-filter-spacer {
        display: none;
    }
}

/* Safe area support for devices with notches */
@supports (padding: max(0px)) {
    .mobile-bottom-filter {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* Animation for showing/hiding */
.mobile-bottom-filter.hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-bottom-filter.visible {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Compact mode for smaller screens */
@media (max-width: 375px) {
    .mobile-bottom-filter-tab {
        min-width: 60px;
        max-width: 75px;
        padding: 8px 12px;
    }
    
    .mobile-bottom-filter-tab i {
        font-size: 1.1rem;
    }
    
    .mobile-bottom-filter-tab span {
        font-size: 0.65rem;
    }
}

/* Touch feedback animation */
.mobile-bottom-filter-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

.mobile-bottom-filter-tab.touched::before {
    width: 100%;
    height: 100%;
}