/* Mobile-specific styles for specs tabs */

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
    .specs-nav-wrapper {
        margin-bottom: 20px;
    }
    
    .specs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
    
    .swipe-menu {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        padding: 5px;
    }
    
    .swipe-menu li {
        padding: 12px 20px;
        margin-right: 8px;
        font-size: 14px;
        min-width: 120px;
        text-align: center;
        border-radius: 5px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
        touch-action: manipulation; /* Optimize for touch */
    }
    
    .swipe-menu li:active {
        background-color: #1a3c6e;
        color: #fff;
        transform: scale(0.98);
    }
    
    /* Make the active state more visible */
    .swipe-menu li.active {
        background-color: #1a3c6e;
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    /* Improve swipe hint visibility */
    .swipe-hint {
        text-align: center;
        font-size: 12px;
        color: #666;
        margin-top: 5px;
        padding: 5px;
        background-color: #f5f5f5;
        border-radius: 20px;
        display: inline-block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    
    .swipe-hint i {
        animation: swipeHint 1.5s infinite;
        display: inline-block;
    }
    
    @keyframes swipeHint {
        0% { transform: translateX(0); }
        50% { transform: translateX(5px); }
        100% { transform: translateX(0); }
    }
    
    /* Fix for spec sections */
    .spec-section {
        margin-top: 30px;
        display: none;
    }
    
    .spec-section.active {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .swipe-menu li {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 13px;
    }
}
