/* ================================
   RESPONSIVE UTILITIES
   ================================ */

/* Container utilities */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Flexbox utilities */
.flex-responsive {
    display: flex;
    flex-wrap: wrap;
}

.flex-column-mobile {
    flex-direction: column;
}

@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }
    
    .flex-row-mobile {
        flex-direction: row !important;
    }
}

/* Grid utilities */
.grid-responsive {
    display: grid;
    gap: 20px;
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Text responsive utilities */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.title-responsive {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Image responsive utilities */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Spacing utilities */
.p-responsive {
    padding: clamp(1rem, 3vw, 2rem);
}

.m-responsive {
    margin: clamp(1rem, 3vw, 2rem);
}

/* Card responsive utilities */
.card-responsive {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* Navigation responsive utilities */
.nav-responsive {
    position: relative;
}

.nav-responsive ul {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .nav-responsive ul {
        flex-direction: row;
    }
}

/* Table responsive utilities */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

/* Form responsive utilities */
.form-responsive {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .form-responsive {
        padding: 0 15px;
    }
}

/* Button responsive utilities */
.btn-responsive {
    padding: 12px 24px;
    font-size: 1rem;
    width: auto;
}

@media (max-width: 576px) {
    .btn-responsive {
        width: 100%;
        margin-bottom: 10px;
    }
}

.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 576px) {
    .btn-group-responsive {
        flex-direction: column;
    }
}

/* Modal responsive utilities */
.modal-responsive {
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
}

@media (max-width: 768px) {
    .modal-responsive {
        max-width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
}

/* Hero section responsive utilities */
.hero-responsive {
    min-height: 100vh;
    padding: 80px 0;
}

@media (max-width: 768px) {
    .hero-responsive {
        min-height: auto;
        padding: 60px 0;
    }
}

/* Section responsive utilities */
.section-responsive {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-responsive {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section-responsive {
        padding: 40px 0;
    }
}

/* Hide/Show utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

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

.hide-desktop {
    display: none;
}

.show-desktop {
    display: block;
}

@media (min-width: 769px) {
    .hide-desktop {
        display: block !important;
    }
    
    .show-desktop {
        display: none !important;
    }
}

/* Overflow utilities */
.overflow-hidden-mobile {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .overflow-hidden-mobile {
        overflow-x: hidden !important;
    }
}

/* Position utilities */
.position-relative-mobile {
    position: relative;
}

@media (max-width: 768px) {
    .position-static-mobile {
        position: static !important;
    }
}

/* Width utilities */
.w-full-mobile {
    width: 100% !important;
}

.w-auto-mobile {
    width: auto !important;
}

/* Height utilities */
.h-auto-mobile {
    height: auto !important;
}

.h-full-mobile {
    height: 100% !important;
}

/* Alignment utilities */
.text-center-mobile {
    text-align: center !important;
}

.text-left-mobile {
    text-align: left !important;
}

.text-right-mobile {
    text-align: right !important;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
    
    .text-left-mobile {
        text-align: left !important;
    }
    
    .text-right-mobile {
        text-align: right !important;
    }
}

/* Float utilities */
.float-none-mobile {
    float: none !important;
}

@media (max-width: 768px) {
    .float-none-mobile {
        float: none !important;
    }
}
