/* Mobile Swipeable Sections Styling */

/* Mobile Swipeable Sections */
.mobile-sections-container {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.mobile-sections-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 500%; /* 5 sections: about, band, music, gallery, reviews */
}

.mobile-section-slide {
    width: 20%; /* Each section takes 1/5 of wrapper width */
    flex-shrink: 0;
    padding: 0 15px;
}

/* Mobile-only swipeable sections */
@media (max-width: 991.98px) {
    .mobile-sections-container {
        display: block;
    }
    
    .desktop-sections {
        display: none;
    }
    
    /* Mobile section navigation */
    .mobile-nav-tabs {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 15px 0;
        margin: 0 -15px 20px -15px;
        background: rgba(33, 37, 41, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        gap: 10px;
    }
    
    .mobile-nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-nav-tab {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        color: white;
        padding: 12px 20px;
        min-width: 90px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: all 0.3s ease;
        cursor: pointer;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        font-size: 0.8rem;
        flex-shrink: 0;
        margin: 0 5px;
        /* Ensure minimum 44px touch target */
        box-sizing: border-box;
        /* 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-nav-tab i {
        font-size: 1rem;
    }
    
    .mobile-nav-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(-2px);
    }
    
    .mobile-nav-tab:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }
}

@media (min-width: 992px) {
    .mobile-sections-container {
        display: none;
    }
    
    .desktop-sections {
        display: block;
    }
    
    .mobile-nav-tabs {
        display: none;
    }
}

/* Swipe indicators for mobile */
.mobile-swipe-indicator {
    text-align: center;
    margin-top: 20px;
    padding: 0 15px;
    opacity: 0.8;
}

.mobile-swipe-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding: 10px 0;
}

    .mobile-dot {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        /* 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-dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        transition: all 0.3s ease;
    }

    .mobile-dot.active {
        background: rgba(233, 69, 96, 0.3);
        border: 2px solid #e94560;
        box-shadow: 0 0 12px rgba(233, 69, 96, 0.5);
    }

    .mobile-dot.active::before {
        background: #e94560;
        transform: scale(1.2);
    }

.mobile-dot.active {
    background: #e94560;
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

.mobile-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Global touch highlight removal for mobile sections */
.mobile-sections-container *, 
.mobile-nav-tab,
.mobile-dot {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
}

/* Global touch highlight removal for all interactive elements */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
}

button, a, [onclick], [role="button"], .btn, .carousel-control-prev, .carousel-control-next, .carousel-indicators button {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Carousel specific touch highlight removal */
.carousel *, .carousel-inner *, .carousel-item * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
}

/* Mobile section content optimizations */
@media (max-width: 991.98px) {
    .mobile-section-slide .band-member {
        margin-bottom: 1rem;
    }
    
    .mobile-section-slide .retro-card {
        margin-bottom: 1rem;
    }
    
    .mobile-section-slide .card {
        margin-bottom: 1rem;
    }
    
    /* Ensure proper spacing in mobile sections */
    .mobile-section-slide section {
        min-height: 70vh;
        display: flex;
        align-items: center;
    }
    
    .mobile-section-slide .container {
        width: 100%;
    }
}

/* Animation for mobile section transitions */
.mobile-sections-wrapper {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Touch feedback for mobile elements */
.mobile-nav-tab:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.mobile-dot:active {
    transform: scale(1.2);
}

/* Smooth scrolling for mobile nav tabs */
.mobile-nav-tabs {
    scroll-behavior: smooth;
}

/* Hide swipe indicator after interaction */
.mobile-sections-container.interacted .mobile-swipe-indicator {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Pull-to-refresh styles */
.mobile-sections-container.pulling {
    transition: transform 0.1s ease;
}

.mobile-sections-container.pulling::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(233, 69, 96, 0.3);
    border-top: 3px solid #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sections-container.pulling.pulling-active::before {
    opacity: 1;
}

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

/* Pull refresh indicator */
#pullRefreshIndicator {
    display: none;
}