/* ====================================
   RESPONSIVE UTILITY CLASSES
   Quick helper classes for responsive design
   ==================================== */

/* Display Utilities */
@media (max-width: 575.98px) {
    .d-mobile-none { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-inline { display: inline !important; }
    .d-mobile-inline-block { display: inline-block !important; }
    .d-mobile-flex { display: flex !important; }
    .d-mobile-grid { display: grid !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .d-tablet-none { display: none !important; }
    .d-tablet-block { display: block !important; }
    .d-tablet-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-desktop-none { display: none !important; }
    .d-desktop-block { display: block !important; }
    .d-desktop-flex { display: flex !important; }
}

/* Width Utilities */
@media (max-width: 575.98px) {
    .w-mobile-100 { width: 100% !important; }
    .w-mobile-75 { width: 75% !important; }
    .w-mobile-50 { width: 50% !important; }
    .w-mobile-auto { width: auto !important; }
}

/* Text Alignment */
@media (max-width: 575.98px) {
    .text-mobile-center { text-align: center !important; }
    .text-mobile-left { text-align: left !important; }
    .text-mobile-right { text-align: right !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .text-tablet-center { text-align: center !important; }
    .text-tablet-left { text-align: left !important; }
}

/* Padding Utilities */
@media (max-width: 575.98px) {
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-1 { padding: 0.25rem !important; }
    .p-mobile-2 { padding: 0.5rem !important; }
    .p-mobile-3 { padding: 1rem !important; }
    .p-mobile-4 { padding: 1.5rem !important; }

    .px-mobile-0 { padding-left: 0 !important; padding-right: 0 !important; }
    .px-mobile-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
    .px-mobile-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

    .py-mobile-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
    .py-mobile-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .py-mobile-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-mobile-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
}

/* Margin Utilities */
@media (max-width: 575.98px) {
    .m-mobile-0 { margin: 0 !important; }
    .m-mobile-auto { margin: auto !important; }

    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-2 { margin-top: 0.5rem !important; }
    .mt-mobile-3 { margin-top: 1rem !important; }
    .mt-mobile-4 { margin-top: 1.5rem !important; }

    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-2 { margin-bottom: 0.5rem !important; }
    .mb-mobile-3 { margin-bottom: 1rem !important; }
    .mb-mobile-4 { margin-bottom: 1.5rem !important; }

    .mx-mobile-auto { margin-left: auto !important; margin-right: auto !important; }
}

/* Flex Utilities */
@media (max-width: 575.98px) {
    .flex-mobile-column { flex-direction: column !important; }
    .flex-mobile-row { flex-direction: row !important; }
    .flex-mobile-wrap { flex-wrap: wrap !important; }
    .flex-mobile-nowrap { flex-wrap: nowrap !important; }

    .justify-mobile-start { justify-content: flex-start !important; }
    .justify-mobile-center { justify-content: center !important; }
    .justify-mobile-end { justify-content: flex-end !important; }
    .justify-mobile-between { justify-content: space-between !important; }

    .align-mobile-start { align-items: flex-start !important; }
    .align-mobile-center { align-items: center !important; }
    .align-mobile-end { align-items: flex-end !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .flex-tablet-column { flex-direction: column !important; }
    .flex-tablet-row { flex-direction: row !important; }
    .justify-tablet-center { justify-content: center !important; }
}

/* Font Size Utilities */
@media (max-width: 575.98px) {
    .fs-mobile-1 { font-size: 2rem !important; }
    .fs-mobile-2 { font-size: 1.75rem !important; }
    .fs-mobile-3 { font-size: 1.5rem !important; }
    .fs-mobile-4 { font-size: 1.25rem !important; }
    .fs-mobile-5 { font-size: 1rem !important; }
    .fs-mobile-6 { font-size: 0.875rem !important; }
}

/* Gap Utilities */
@media (max-width: 575.98px) {
    .gap-mobile-1 { gap: 0.25rem !important; }
    .gap-mobile-2 { gap: 0.5rem !important; }
    .gap-mobile-3 { gap: 1rem !important; }
    .gap-mobile-4 { gap: 1.5rem !important; }
}

/* Height Utilities */
@media (max-width: 575.98px) {
    .h-mobile-auto { height: auto !important; }
    .h-mobile-100 { height: 100% !important; }
    .vh-mobile-50 { height: 50vh !important; }
    .vh-mobile-100 { height: 100vh !important; }
}

/* Border Utilities */
@media (max-width: 575.98px) {
    .border-mobile-0 { border: 0 !important; }
    .rounded-mobile-0 { border-radius: 0 !important; }
}

/* Position Utilities */
@media (max-width: 575.98px) {
    .position-mobile-static { position: static !important; }
    .position-mobile-relative { position: relative !important; }
    .position-mobile-sticky { position: sticky !important; }
}

/* Overflow Utilities */
@media (max-width: 575.98px) {
    .overflow-mobile-auto { overflow: auto !important; }
    .overflow-mobile-hidden { overflow: hidden !important; }
    .overflow-mobile-scroll { overflow: scroll !important; }
    .overflow-x-mobile-auto { overflow-x: auto !important; }
}

/* Container Utilities */
@media (max-width: 575.98px) {
    .container-mobile-fluid {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Order Utilities (Flexbox) */
@media (max-width: 575.98px) {
    .order-mobile-first { order: -1 !important; }
    .order-mobile-last { order: 999 !important; }
    .order-mobile-0 { order: 0 !important; }
    .order-mobile-1 { order: 1 !important; }
    .order-mobile-2 { order: 2 !important; }
}

/* Grid Utilities */
@media (max-width: 575.98px) {
    .grid-mobile-1 { grid-template-columns: 1fr !important; }
    .grid-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .grid-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-tablet-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Shadow Utilities */
@media (max-width: 575.98px) {
    .shadow-mobile-none { box-shadow: none !important; }
    .shadow-mobile-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important; }
}

/* Visibility Utilities */
.visible-mobile,
.visible-tablet,
.visible-desktop {
    display: none !important;
}

@media (max-width: 575.98px) {
    .visible-mobile { display: block !important; }
    .hidden-mobile { display: none !important; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .visible-tablet { display: block !important; }
    .hidden-tablet { display: none !important; }
}

@media (min-width: 992px) {
    .visible-desktop { display: block !important; }
    .hidden-desktop { display: none !important; }
}

/* Line Height Utilities */
@media (max-width: 575.98px) {
    .lh-mobile-1 { line-height: 1 !important; }
    .lh-mobile-sm { line-height: 1.25 !important; }
    .lh-mobile-base { line-height: 1.5 !important; }
    .lh-mobile-lg { line-height: 2 !important; }
}

/* Letter Spacing */
@media (max-width: 575.98px) {
    .ls-mobile-tight { letter-spacing: -0.05em !important; }
    .ls-mobile-normal { letter-spacing: 0 !important; }
    .ls-mobile-wide { letter-spacing: 0.05em !important; }
}

/* Max Width Utilities */
@media (max-width: 575.98px) {
    .mw-mobile-100 { max-width: 100% !important; }
}

/* Responsive Container Padding */
@media (max-width: 575.98px) {
    .container-px-mobile-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Z-index Utilities */
@media (max-width: 575.98px) {
    .z-mobile-0 { z-index: 0 !important; }
    .z-mobile-1 { z-index: 1 !important; }
    .z-mobile-10 { z-index: 10 !important; }
}

/* Aspect Ratio Fix for Images/Videos */
.aspect-ratio-mobile {
    position: relative;
    width: 100%;
}

.aspect-ratio-mobile::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

@media (max-width: 575.98px) {
    .aspect-ratio-mobile::before {
        padding-top: 75%; /* 4:3 aspect ratio on mobile */
    }
}

/* Touch Action */
@media (hover: none) and (pointer: coarse) {
    .touch-scroll {
        -webkit-overflow-scrolling: touch;
    }

    .touch-manipulation {
        touch-action: manipulation;
    }
}

/* Print Utilities */
@media print {
    .d-print-none { display: none !important; }
    .d-print-block { display: block !important; }
    .d-print-inline { display: inline !important; }
}

