/**
 * /client/css/mobile.css
 * Date: 07/04/2025
 * Name: Programmed by Jaime C Smith
 * Objective of Code: Global mobile responsiveness enhancements
 */

/* Base mobile styles */
@media (max-width: 767.98px) {
    /* Typography adjustments */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Form adjustments */
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 10px !important;
    }
    
    .form-control {
        height: auto;
        min-height: 44px;
    }
    
    .form-select {
        height: auto;
        min-height: 44px;
    }
    
    /* Touch targets */
    button, .btn, .nav-link, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type="checkbox"], input[type="radio"] {
        min-height: 24px;
        min-width: 24px;
    }
    
    /* Tables */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Spacing adjustments */
    .section-padding {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    /* Footer adjustments */
    .footer {
        text-align: center;
    }
    
    .footer .social-icons {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
}

/* Utility classes */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
}

/* Active touch state */
.active-touch {
    opacity: 0.7;
}

/* Improved touch scrolling */
.overflow-auto, .table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
}
