/* Mobile Optimizations for Brinde Mania */

/* Enhanced Touch Targets */
@media (max-width: 768px) {
    /* Ensure minimum touch target size */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve button spacing */
    .btn-mobile {
        padding: 12px 20px;
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Better text readability */
    .mobile-text {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Optimize spacing for mobile */
    .mobile-spacing {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    /* Improve card layouts */
    .mobile-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    /* Better grid layouts for mobile */
    .mobile-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
    }
    
    .mobile-landscape {
        padding: 0.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-small {
        font-size: 14px;
    }
    
    .mobile-small-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Optimize images for small screens */
    .mobile-image {
        max-width: 100%;
        height: auto;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .mobile-reduce-animations {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize shadows for mobile */
    .mobile-shadow {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Better loading states */
    .mobile-loading {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
}

/* Accessibility Improvements */
@media (max-width: 768px) {
    /* Better focus indicators */
    .mobile-focus:focus {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }
    
    /* Improve contrast for better readability */
    .mobile-contrast {
        color: #1f2937;
        background-color: #ffffff;
    }
    
    /* Better text sizing */
    .mobile-text-large {
        font-size: 18px;
        line-height: 1.5;
    }
}

/* Gesture Optimizations */
@media (max-width: 768px) {
    /* Improve swipe gestures */
    .mobile-swipe {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better scroll behavior */
    .mobile-scroll {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Battery Optimization */
@media (max-width: 768px) {
    /* Reduce motion for battery saving */
    @media (prefers-reduced-motion: reduce) {
        .mobile-reduce-motion {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* Optimize images */
    .mobile-lazy {
        loading: lazy;
        decoding: async;
    }
}

/* Network Optimization */
@media (max-width: 768px) {
    /* Prioritize critical content */
    .mobile-critical {
        font-display: swap;
    }
    
    /* Optimize loading order */
    .mobile-priority {
        fetchpriority: high;
    }
}

/* Custom Mobile Utilities */
.mobile-hidden {
    display: none !important;
}

.mobile-block {
    display: block !important;
}

.mobile-flex {
    display: flex !important;
}

.mobile-grid {
    display: grid !important;
}

/* Mobile-specific animations */
@keyframes mobileSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-slide-up {
    animation: mobileSlideUp 0.4s ease-out;
}

/* Mobile loading animation */
@keyframes mobileLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.mobile-loading {
    animation: mobileLoading 1.5s infinite;
}

/* Mobile-specific hover states */
@media (hover: hover) and (pointer: fine) {
    .mobile-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile-specific active states */
.mobile-active:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Mobile-specific focus states */
.mobile-focus:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile-specific disabled states */
.mobile-disabled:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile-specific error states */
.mobile-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.mobile-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Mobile-specific success states */
.mobile-success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.mobile-success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Mobile-specific warning states */
.mobile-warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.mobile-warning:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* ===================== CORREÇÃO DOS BOTÕES DE CATEGORIAS MOBILE ===================== */
/* Estilos removidos - usando category-mobile-fix.css em vez disso */ 