/**
 * Hunt Feed Mobile Navigation Improvements
 * 
 * Removes tap zones and enhances bottom navigation bar
 * for better mobile UX without overlapping touch targets
 */

/* ===========================
   HIDE TAP ZONES
   =========================== */
.hunt-feed .tap-zone {
    display: none !important;
}

.hunt-feed .tap-zone-left,
.hunt-feed .tap-zone-right,
.hunt-feed .tap-hint {
    display: none !important;
}

/* ===========================
   BOTTOM NAVIGATION - HIDDEN
   =========================== */
.hunt-feed .bottom-navigation {
    display: none !important;
}

/* Enhanced button styling */
.hunt-feed .bottom-nav-btn {
    flex: 1;
    max-width: 100px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Button hover/active states */
.hunt-feed .bottom-nav-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.hunt-feed .bottom-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Icon styling */
.hunt-feed .bottom-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Map button special styling */
.hunt-feed .bottom-nav-map {
    background: rgba(0, 87, 255, 0.2);
    border-color: rgba(0, 87, 255, 0.4);
}

.hunt-feed .bottom-nav-map:active {
    background: rgba(0, 87, 255, 0.3);
}

/* ===========================
   SWIPE GESTURE INDICATORS
   =========================== */
/* Add subtle swipe indicators */
@media (max-width: 768px) {
    .hunt-feed .image-container::after {
        content: 'Swipe left/right for images • Swipe up to return to map';
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        text-align: center;
        padding: 8px 16px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 20px;
        opacity: 0;
        animation: fadeInOut 4s ease-in-out;
        pointer-events: none;
        white-space: nowrap;
    }
    
    @keyframes fadeInOut {
        0% { opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { opacity: 0; }
    }
}

/* ===========================
   MOBILE-SPECIFIC ADJUSTMENTS
   =========================== */
@media (max-width: 414px) {
    .hunt-feed .bottom-navigation {
        bottom: 15px;
        height: 65px;
        width: calc(100% - 24px);
        padding: 0 12px;
    }
    
    .hunt-feed .bottom-nav-btn {
        height: 48px;
        font-size: 9px;
        gap: 2px;
    }
    
    .hunt-feed .bottom-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 375px) {
    .hunt-feed .bottom-navigation {
        bottom: 10px;
        height: 60px;
        gap: 4px;
        width: calc(100% - 20px);
    }
    
    .hunt-feed .bottom-nav-btn {
        height: 45px;
        max-width: 80px;
        border-radius: 10px;
    }
    
    .hunt-feed .bottom-nav-btn span {
        font-size: 8px;
    }
}

/* ===========================
   IMAGE CONTAINER ADJUSTMENTS
   =========================== */
/* Full height without bottom nav */
.hunt-feed .image-container {
    bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* Ensure action buttons remain accessible */
.hunt-feed .image-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: auto;
}

/* AI button specific fixes to prevent navigation trigger */
.hunt-feed .ai-btn {
    position: relative;
    z-index: 60;
    touch-action: none; /* Prevent default touch behaviors */
    -webkit-tap-highlight-color: transparent;
}

/* Score button also needs protection */
.hunt-feed .score-btn {
    position: relative;
    z-index: 60;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===========================
   GESTURE ENHANCEMENT
   =========================== */
/* Make the entire image area swipeable */
.hunt-feed .image-wrapper {
    touch-action: pan-y pinch-zoom; /* Allow vertical swipes and zoom */
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */
/* Focus states for keyboard navigation */
.hunt-feed .bottom-nav-btn:focus {
    outline: 2px solid #0057ff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hunt-feed .bottom-navigation {
        background: black;
        border-top-color: white;
    }
    
    .hunt-feed .bottom-nav-btn {
        background: black;
        border-color: white;
        color: white;
    }
    
    .hunt-feed .bottom-nav-btn:active {
        background: white;
        color: black;
    }
}

/* ===========================
   SWIPE FEEDBACK ANIMATIONS
   =========================== */
.swipe-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 200;
    animation: swipeFeedback 0.5s ease-out;
}

@keyframes swipeFeedback {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.swipe-up { animation-name: swipeUpFeedback; }
.swipe-down { animation-name: swipeDownFeedback; }
.swipe-left { animation-name: swipeLeftFeedback; }
.swipe-right { animation-name: swipeRightFeedback; }

@keyframes swipeUpFeedback {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(1.2); }
}

@keyframes swipeDownFeedback {
    0% { opacity: 0; transform: translate(-50%, -70%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -30%) scale(1.2); }
}

@keyframes swipeLeftFeedback {
    0% { opacity: 0; transform: translate(-30%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-70%, -50%) scale(1.2); }
}

@keyframes swipeRightFeedback {
    0% { opacity: 0; transform: translate(-70%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-30%, -50%) scale(1.2); }
}

/* ===========================
   ANIMATION IMPROVEMENTS
   =========================== */
/* Smooth transitions for navigation */
.hunt-feed .bottom-nav-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hunt-feed .bottom-nav-btn:active {
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add ripple effect on tap */
.hunt-feed .bottom-nav-btn::after {
    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, height 0.3s;
    pointer-events: none;
}

.hunt-feed .bottom-nav-btn:active::after {
    width: 100px;
    height: 100px;
}