/**
 * ProRank Design System - Utility Helper Classes
 * 
 * Common utility classes for spacing, display, text, and layout.
 * These should be used sparingly - prefer component classes when possible.
 * 
 * @module utilities/helpers
 * @since 3.0.0
 */

/* ============================================
   DISPLAY UTILITIES
   Control element display properties
   ============================================ */

.prorank-hidden { display: none !important; }
.prorank-block { display: block !important; }
.prorank-inline { display: inline !important; }
.prorank-inline-block { display: inline-block !important; }
.prorank-flex { display: flex !important; }
.prorank-inline-flex { display: inline-flex !important; }
.prorank-grid { display: grid !important; }

/* Visibility */
.prorank-invisible { visibility: hidden !important; }
.prorank-visible { visibility: visible !important; }

/* Opacity */
.prorank-opacity-0 { opacity: 0 !important; }
.prorank-opacity-50 { opacity: 0.5 !important; }
.prorank-opacity-75 { opacity: 0.75 !important; }
.prorank-opacity-100 { opacity: 1 !important; }

/* ============================================
   SPACING UTILITIES
   Margin and padding helpers
   ============================================ */

/* Margin - All sides */
.prorank-m-0 { margin: 0 !important; }
.prorank-m-xs { margin: var(--prorank-space-xs) !important; }
.prorank-m-sm { margin: var(--prorank-space-sm) !important; }
.prorank-m-md { margin: var(--prorank-space-md) !important; }
.prorank-m-lg { margin: var(--prorank-space-lg) !important; }
.prorank-m-xl { margin: var(--prorank-space-xl) !important; }
.prorank-m-2xl { margin: var(--prorank-space-2xl) !important; }
.prorank-m-auto { margin: auto !important; }

/* Margin - Top */
.prorank-mt-0 { margin-top: 0 !important; }
.prorank-mt-xs { margin-top: var(--prorank-space-xs) !important; }
.prorank-mt-sm { margin-top: var(--prorank-space-sm) !important; }
.prorank-mt-md { margin-top: var(--prorank-space-md) !important; }
.prorank-mt-lg { margin-top: var(--prorank-space-lg) !important; }
.prorank-mt-xl { margin-top: var(--prorank-space-xl) !important; }
.prorank-mt-2xl { margin-top: var(--prorank-space-2xl) !important; }
.prorank-mt-auto { margin-top: auto !important; }

/* Margin - Right */
.prorank-mr-0 { margin-right: 0 !important; }
.prorank-mr-xs { margin-right: var(--prorank-space-xs) !important; }
.prorank-mr-sm { margin-right: var(--prorank-space-sm) !important; }
.prorank-mr-md { margin-right: var(--prorank-space-md) !important; }
.prorank-mr-lg { margin-right: var(--prorank-space-lg) !important; }
.prorank-mr-xl { margin-right: var(--prorank-space-xl) !important; }
.prorank-mr-2xl { margin-right: var(--prorank-space-2xl) !important; }
.prorank-mr-auto { margin-right: auto !important; }

/* Margin - Bottom */
.prorank-mb-0 { margin-bottom: 0 !important; }
.prorank-mb-xs { margin-bottom: var(--prorank-space-xs) !important; }
.prorank-mb-sm { margin-bottom: var(--prorank-space-sm) !important; }
.prorank-mb-md { margin-bottom: var(--prorank-space-md) !important; }
.prorank-mb-lg { margin-bottom: var(--prorank-space-lg) !important; }
.prorank-mb-xl { margin-bottom: var(--prorank-space-xl) !important; }
.prorank-mb-2xl { margin-bottom: var(--prorank-space-2xl) !important; }
.prorank-mb-auto { margin-bottom: auto !important; }

/* Margin - Left */
.prorank-ml-0 { margin-left: 0 !important; }
.prorank-ml-xs { margin-left: var(--prorank-space-xs) !important; }
.prorank-ml-sm { margin-left: var(--prorank-space-sm) !important; }
.prorank-ml-md { margin-left: var(--prorank-space-md) !important; }
.prorank-ml-lg { margin-left: var(--prorank-space-lg) !important; }
.prorank-ml-xl { margin-left: var(--prorank-space-xl) !important; }
.prorank-ml-2xl { margin-left: var(--prorank-space-2xl) !important; }
.prorank-ml-auto { margin-left: auto !important; }

/* Margin - X axis */
.prorank-mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.prorank-mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Margin - Y axis */
.prorank-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }

/* Padding - All sides */
.prorank-p-0 { padding: 0 !important; }
.prorank-p-xs { padding: var(--prorank-space-xs) !important; }
.prorank-p-sm { padding: var(--prorank-space-sm) !important; }
.prorank-p-md { padding: var(--prorank-space-md) !important; }
.prorank-p-lg { padding: var(--prorank-space-lg) !important; }
.prorank-p-xl { padding: var(--prorank-space-xl) !important; }
.prorank-p-2xl { padding: var(--prorank-space-2xl) !important; }

/* Padding - Top */
.prorank-pt-0 { padding-top: 0 !important; }
.prorank-pt-xs { padding-top: var(--prorank-space-xs) !important; }
.prorank-pt-sm { padding-top: var(--prorank-space-sm) !important; }
.prorank-pt-md { padding-top: var(--prorank-space-md) !important; }
.prorank-pt-lg { padding-top: var(--prorank-space-lg) !important; }
.prorank-pt-xl { padding-top: var(--prorank-space-xl) !important; }
.prorank-pt-2xl { padding-top: var(--prorank-space-2xl) !important; }

/* Padding - Right */
.prorank-pr-0 { padding-right: 0 !important; }
.prorank-pr-xs { padding-right: var(--prorank-space-xs) !important; }
.prorank-pr-sm { padding-right: var(--prorank-space-sm) !important; }
.prorank-pr-md { padding-right: var(--prorank-space-md) !important; }
.prorank-pr-lg { padding-right: var(--prorank-space-lg) !important; }
.prorank-pr-xl { padding-right: var(--prorank-space-xl) !important; }
.prorank-pr-2xl { padding-right: var(--prorank-space-2xl) !important; }

/* Padding - Bottom */
.prorank-pb-0 { padding-bottom: 0 !important; }
.prorank-pb-xs { padding-bottom: var(--prorank-space-xs) !important; }
.prorank-pb-sm { padding-bottom: var(--prorank-space-sm) !important; }
.prorank-pb-md { padding-bottom: var(--prorank-space-md) !important; }
.prorank-pb-lg { padding-bottom: var(--prorank-space-lg) !important; }
.prorank-pb-xl { padding-bottom: var(--prorank-space-xl) !important; }
.prorank-pb-2xl { padding-bottom: var(--prorank-space-2xl) !important; }

/* Padding - Left */
.prorank-pl-0 { padding-left: 0 !important; }
.prorank-pl-xs { padding-left: var(--prorank-space-xs) !important; }
.prorank-pl-sm { padding-left: var(--prorank-space-sm) !important; }
.prorank-pl-md { padding-left: var(--prorank-space-md) !important; }
.prorank-pl-lg { padding-left: var(--prorank-space-lg) !important; }
.prorank-pl-xl { padding-left: var(--prorank-space-xl) !important; }
.prorank-pl-2xl { padding-left: var(--prorank-space-2xl) !important; }

/* Padding - X axis */
.prorank-px-0 { padding-left: 0 !important; padding-right: 0 !important; }

/* Padding - Y axis */
.prorank-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ============================================
   FLEXBOX UTILITIES
   Flexbox layout helpers
   ============================================ */

/* Flex Direction */
.prorank-flex-row { flex-direction: row !important; }
.prorank-flex-row-reverse { flex-direction: row-reverse !important; }
.prorank-flex-col { flex-direction: column !important; }
.prorank-flex-col-reverse { flex-direction: column-reverse !important; }

/* Flex Wrap */
.prorank-flex-wrap { flex-wrap: wrap !important; }
.prorank-flex-nowrap { flex-wrap: nowrap !important; }
.prorank-flex-wrap-reverse { flex-wrap: wrap-reverse !important; }

/* Justify Content */
.prorank-justify-start { justify-content: flex-start !important; }
.prorank-justify-end { justify-content: flex-end !important; }
.prorank-justify-center { justify-content: center !important; }
.prorank-justify-between { justify-content: space-between !important; }
.prorank-justify-around { justify-content: space-around !important; }
.prorank-justify-evenly { justify-content: space-evenly !important; }

/* Align Items */
.prorank-items-start { align-items: flex-start !important; }
.prorank-items-end { align-items: flex-end !important; }
.prorank-items-center { align-items: center !important; }
.prorank-items-baseline { align-items: baseline !important; }
.prorank-items-stretch { align-items: stretch !important; }

/* Align Self */
.prorank-self-auto { align-self: auto !important; }
.prorank-self-start { align-self: flex-start !important; }
.prorank-self-end { align-self: flex-end !important; }
.prorank-self-center { align-self: center !important; }
.prorank-self-stretch { align-self: stretch !important; }

/* Flex */
.prorank-flex-1 { flex: 1 1 0% !important; }
.prorank-flex-auto { flex: 1 1 auto !important; }
.prorank-flex-initial { flex: 0 1 auto !important; }
.prorank-flex-none { flex: none !important; }

/* Gap */
.prorank-gap-0 { gap: 0 !important; }
.prorank-gap-xs { gap: var(--prorank-space-xs) !important; }
.prorank-gap-sm { gap: var(--prorank-space-sm) !important; }
.prorank-gap-md { gap: var(--prorank-space-md) !important; }
.prorank-gap-lg { gap: var(--prorank-space-lg) !important; }
.prorank-gap-xl { gap: var(--prorank-space-xl) !important; }

/* ============================================
   TEXT UTILITIES
   Text alignment and styling
   ============================================ */

/* Text Alignment */
.prorank-text-left { text-align: left !important; }
.prorank-text-center { text-align: center !important; }
.prorank-text-right { text-align: right !important; }
.prorank-text-justify { text-align: justify !important; }

/* Font Weight */
.prorank-font-normal { font-weight: 400 !important; }
.prorank-font-medium { font-weight: 500 !important; }
.prorank-font-semibold { font-weight: 600 !important; }
.prorank-font-bold { font-weight: 700 !important; }

/* Font Size */
.prorank-text-xs { font-size: 12px !important; }
.prorank-text-sm { font-size: 14px !important; }
.prorank-text-base { font-size: 16px !important; }
.prorank-text-lg { font-size: 18px !important; }
.prorank-text-xl { font-size: 20px !important; }
.prorank-text-2xl { font-size: 24px !important; }
.prorank-text-3xl { font-size: 30px !important; }

/* Text Transform */
.prorank-uppercase { text-transform: uppercase !important; }
.prorank-lowercase { text-transform: lowercase !important; }
.prorank-capitalize { text-transform: capitalize !important; }
.prorank-normal-case { text-transform: none !important; }

/* Text Decoration */
.prorank-underline { text-decoration: underline !important; }
.prorank-line-through { text-decoration: line-through !important; }
.prorank-no-underline { text-decoration: none !important; }

/* Text Colors */
.prorank-text-primary { color: var(--prorank-primary) !important; }
.prorank-text-secondary { color: var(--prorank-text-secondary) !important; }
.prorank-text-success { color: var(--prorank-success) !important; }
.prorank-text-warning { color: var(--prorank-warning) !important; }
.prorank-text-error { color: var(--prorank-error) !important; }
.prorank-text-muted { color: var(--prorank-text-tertiary) !important; }

/* Text Overflow */
.prorank-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.prorank-text-wrap { white-space: normal !important; }
.prorank-text-nowrap { white-space: nowrap !important; }

/* ============================================
   POSITIONING UTILITIES
   Position and z-index helpers
   ============================================ */

.prorank-static { position: static !important; }
.prorank-relative { position: relative !important; }
.prorank-absolute { position: absolute !important; }
.prorank-fixed { position: fixed !important; }
.prorank-sticky { position: sticky !important; }

/* Position Values */
.prorank-top-0 { top: 0 !important; }
.prorank-right-0 { right: 0 !important; }
.prorank-bottom-0 { bottom: 0 !important; }
.prorank-left-0 { left: 0 !important; }

.prorank-inset-0 {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

/* Z-Index */
.prorank-z-0 { z-index: 0 !important; }
.prorank-z-10 { z-index: 10 !important; }
.prorank-z-20 { z-index: 20 !important; }
.prorank-z-30 { z-index: 30 !important; }
.prorank-z-40 { z-index: 40 !important; }
.prorank-z-50 { z-index: 50 !important; }
.prorank-z-auto { z-index: auto !important; }

/* ============================================
   SIZING UTILITIES
   Width and height helpers
   ============================================ */

/* Width */
.prorank-w-auto { width: auto !important; }
.prorank-w-full { width: 100% !important; }
.prorank-w-screen { width: 100vw !important; }
.prorank-w-min { width: min-content !important; }
.prorank-w-max { width: max-content !important; }
.prorank-w-fit { width: fit-content !important; }

/* Height */
.prorank-h-auto { height: auto !important; }
.prorank-h-full { height: 100% !important; }
.prorank-h-screen { height: 100vh !important; }
.prorank-h-min { height: min-content !important; }
.prorank-h-max { height: max-content !important; }
.prorank-h-fit { height: fit-content !important; }

/* Max Width */
.prorank-max-w-full { max-width: 100% !important; }
.prorank-max-w-screen { max-width: 100vw !important; }
.prorank-max-w-none { max-width: none !important; }

/* ============================================
   BORDER UTILITIES
   Border styles and radius
   ============================================ */

/* Border Width */
.prorank-border-0 { border-width: 0 !important; }
.prorank-border { border-width: 1px !important; }
.prorank-border-2 { border-width: 2px !important; }

/* Border Style */
.prorank-border-solid { border-style: solid !important; }
.prorank-border-dashed { border-style: dashed !important; }
.prorank-border-dotted { border-style: dotted !important; }
.prorank-border-none { border-style: none !important; }

/* Border Color */
.prorank-border-transparent { border-color: transparent !important; }
.prorank-border-current { border-color: currentColor !important; }
.prorank-border-primary { border-color: var(--prorank-primary) !important; }
.prorank-border-error { border-color: var(--prorank-error) !important; }

/* Border Radius */
.prorank-rounded-none { border-radius: 0 !important; }
.prorank-rounded-sm { border-radius: var(--prorank-radius-sm) !important; }
.prorank-rounded { border-radius: var(--prorank-radius) !important; }
.prorank-rounded-lg { border-radius: var(--prorank-radius-lg) !important; }
.prorank-rounded-full { border-radius: 9999px !important; }

/* ============================================
   BACKGROUND UTILITIES
   Background colors and styles
   ============================================ */

.prorank-bg-transparent { background-color: transparent !important; }
.prorank-bg-white { background-color: white !important; }
.prorank-bg-primary { background-color: var(--prorank-primary) !important; }
.prorank-bg-secondary { background-color: var(--prorank-bg-secondary) !important; }
.prorank-bg-tertiary { background-color: var(--prorank-bg-tertiary) !important; }
.prorank-bg-success { background-color: var(--prorank-success) !important; }
.prorank-bg-warning { background-color: var(--prorank-warning) !important; }
.prorank-bg-error { background-color: var(--prorank-error) !important; }

/* ============================================
   OVERFLOW UTILITIES
   Control overflow behavior
   ============================================ */

.prorank-overflow-auto { overflow: auto !important; }
.prorank-overflow-hidden { overflow: hidden !important; }
.prorank-overflow-visible { overflow: visible !important; }
.prorank-overflow-scroll { overflow: scroll !important; }

.prorank-overflow-x-auto { overflow-x: auto !important; }
.prorank-overflow-x-hidden { overflow-x: hidden !important; }
.prorank-overflow-x-visible { overflow-x: visible !important; }
.prorank-overflow-x-scroll { overflow-x: scroll !important; }

.prorank-overflow-y-auto { overflow-y: auto !important; }
.prorank-overflow-y-hidden { overflow-y: hidden !important; }
.prorank-overflow-y-visible { overflow-y: visible !important; }
.prorank-overflow-y-scroll { overflow-y: scroll !important; }

/* ============================================
   CURSOR UTILITIES
   Cursor styles
   ============================================ */

.prorank-cursor-auto { cursor: auto !important; }
.prorank-cursor-default { cursor: default !important; }
.prorank-cursor-pointer { cursor: pointer !important; }
.prorank-cursor-wait { cursor: wait !important; }
.prorank-cursor-text { cursor: text !important; }
.prorank-cursor-move { cursor: move !important; }
.prorank-cursor-not-allowed { cursor: not-allowed !important; }

/* ============================================
   USER SELECT UTILITIES
   Control text selection
   ============================================ */

.prorank-select-none { user-select: none !important; }
.prorank-select-text { user-select: text !important; }
.prorank-select-all { user-select: all !important; }
.prorank-select-auto { user-select: auto !important; }

/* ============================================
   SCREEN READER UTILITIES
   Accessibility helpers
   ============================================ */

.prorank-sr-only {
  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-width: 0 !important;
}

.prorank-not-sr-only {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}