/* Responsive Utilities for Aruniva Clinic */
/* This file contains utility classes for responsive design across all devices */

/* Flexbox utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }

/* Display utilities for different screen sizes */
@media (max-width: 575px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
}

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

@media (min-width: 768px) and (max-width: 991px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
}

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

/* Text alignment utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

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

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

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

@media (min-width: 992px) {
  .text-xl-left { text-align: left !important; }
  .text-xl-center { text-align: center !important; }
  .text-xl-right { text-align: right !important; }
}

/* Spacing utilities for mobile */
@media (max-width: 575px) {
  .p-sm-0 { padding: 0 !important; }
  .p-sm-1 { padding: 0.25rem !important; }
  .p-sm-2 { padding: 0.5rem !important; }
  .p-sm-3 { padding: 1rem !important; }
  .p-sm-4 { padding: 1.5rem !important; }
  .p-sm-5 { padding: 3rem !important; }
  
  .m-sm-0 { margin: 0 !important; }
  .m-sm-1 { margin: 0.25rem !important; }
  .m-sm-2 { margin: 0.5rem !important; }
  .m-sm-3 { margin: 1rem !important; }
  .m-sm-4 { margin: 1.5rem !important; }
  .m-sm-5 { margin: 3rem !important; }
  
  .px-sm-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .px-sm-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
  .px-sm-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .px-sm-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  .py-sm-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  .py-sm-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
  .py-sm-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  .py-sm-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  
  .mx-sm-0 { margin-left: 0 !important; margin-right: 0 !important; }
  .mx-sm-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
  .mx-sm-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
  .mx-sm-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
  .mx-sm-auto { margin-left: auto !important; margin-right: auto !important; }
  
  .my-sm-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .my-sm-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
  .my-sm-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  .my-sm-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
}

/* Width utilities */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

@media (max-width: 575px) {
  .w-sm-25 { width: 25% !important; }
  .w-sm-50 { width: 50% !important; }
  .w-sm-75 { width: 75% !important; }
  .w-sm-100 { width: 100% !important; }
  .w-sm-auto { width: auto !important; }
}

/* Height utilities */
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Font size utilities for responsive typography */
@media (max-width: 575px) {
  .fs-sm-1 { font-size: 2.5rem !important; }
  .fs-sm-2 { font-size: 2rem !important; }
  .fs-sm-3 { font-size: 1.75rem !important; }
  .fs-sm-4 { font-size: 1.5rem !important; }
  .fs-sm-5 { font-size: 1.25rem !important; }
  .fs-sm-6 { font-size: 1rem !important; }
  .fs-sm-small { font-size: 0.875rem !important; }
  .fs-sm-smaller { font-size: 0.75rem !important; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .fs-md-1 { font-size: 3rem !important; }
  .fs-md-2 { font-size: 2.5rem !important; }
  .fs-md-3 { font-size: 2rem !important; }
  .fs-md-4 { font-size: 1.75rem !important; }
  .fs-md-5 { font-size: 1.5rem !important; }
  .fs-md-6 { font-size: 1.25rem !important; }
}

/* Border radius utilities */
.rounded-sm { border-radius: 0.2rem !important; }
.rounded { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 50% !important; }
.rounded-0 { border-radius: 0 !important; }

/* Shadow utilities */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

/* Position utilities */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Overflow utilities */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

/* Mobile-specific utilities */
@media (max-width: 575px) {
  .mobile-full-width {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
  }
  
  .mobile-center {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  
  .mobile-stack > * {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
  }
  
  .mobile-stack > *:last-child {
    margin-bottom: 0 !important;
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-show {
    display: block !important;
  }
}

/* Touch-friendly button sizing for mobile */
@media (max-width: 575px) {
  .btn-touch {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 12px 16px !important;
  }
  
  .btn-touch-lg {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 14px 20px !important;
  }
}

/* Responsive grid system enhancements */
@media (max-width: 575px) {
  .col-sm-auto { flex: 0 0 auto !important; width: auto !important; }
  .col-sm-1 { flex: 0 0 8.333333% !important; width: 8.333333% !important; }
  .col-sm-2 { flex: 0 0 16.666667% !important; width: 16.666667% !important; }
  .col-sm-3 { flex: 0 0 25% !important; width: 25% !important; }
  .col-sm-4 { flex: 0 0 33.333333% !important; width: 33.333333% !important; }
  .col-sm-5 { flex: 0 0 41.666667% !important; width: 41.666667% !important; }
  .col-sm-6 { flex: 0 0 50% !important; width: 50% !important; }
  .col-sm-7 { flex: 0 0 58.333333% !important; width: 58.333333% !important; }
  .col-sm-8 { flex: 0 0 66.666667% !important; width: 66.666667% !important; }
  .col-sm-9 { flex: 0 0 75% !important; width: 75% !important; }
  .col-sm-10 { flex: 0 0 83.333333% !important; width: 83.333333% !important; }
  .col-sm-11 { flex: 0 0 91.666667% !important; width: 91.666667% !important; }
  .col-sm-12 { flex: 0 0 100% !important; width: 100% !important; }
}

/* Accessibility improvements for mobile */
@media (max-width: 575px) {
  .sr-only-mobile {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  .focus-visible:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
  }
}

/* Performance optimizations */
@media (max-width: 575px) {
  .will-change-transform {
    will-change: transform !important;
  }
  
  .will-change-scroll {
    will-change: scroll-position !important;
  }
  
  .backface-hidden {
    backface-visibility: hidden !important;
  }
  
  .transform-gpu {
    transform: translateZ(0) !important;
  }
}

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