/**
 * Classes Utilitárias - NupesMI
 * Classes auxiliares reutilizáveis para layout e estilização
 */

/* ========================================
   LAYOUT - DISPLAY
   ======================================== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* ========================================
   LAYOUT - FLEXBOX
   ======================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

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

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

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* ========================================
   LAYOUT - GRID
   ======================================== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ========================================
   SPACING - GAP
   ======================================== */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-11 { gap: var(--space-11); }
.gap-15 { gap: var(--space-15); }
.gap-20 { gap: var(--space-20); }
.gap-28 { gap: var(--space-28); }

/* ========================================
   SPACING - PADDING
   ======================================== */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-20 { padding: var(--space-20); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-10 { padding-left: var(--space-10); padding-right: var(--space-10); }
.px-20 { padding-left: var(--space-20); padding-right: var(--space-20); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-25 { padding-top: var(--space-25); padding-bottom: var(--space-25); }

.pt-10 { padding-top: var(--space-10); }
.pt-20 { padding-top: var(--space-20); }
.pb-10 { padding-bottom: var(--space-10); }
.pb-20 { padding-bottom: var(--space-20); }
.pb-25 { padding-bottom: var(--space-25); }

/* ========================================
   SPACING - MARGIN
   ======================================== */
.m-0 { margin: 0; }
.m-auto { margin: 0 auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-15 { margin-top: var(--space-15); }

.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-15 { margin-bottom: var(--space-15); }
.mb-18 { margin-bottom: var(--space-18); }
.mb-20 { margin-bottom: var(--space-20); }

/* ========================================
   WIDTH & HEIGHT
   ======================================== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.max-w-container { max-width: var(--container-default); margin-left: auto; margin-right: auto; }
.max-w-container-wide { max-width: var(--container-wide); margin-left: auto; margin-right: auto; }
.max-w-container-narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.max-w-full { max-width: 100%; }

/* ========================================
   TIPOGRAFIA - SIZE
   ======================================== */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

/* ========================================
   TIPOGRAFIA - WEIGHT
   ======================================== */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* ========================================
   TIPOGRAFIA - LINE HEIGHT
   ======================================== */
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* ========================================
   TIPOGRAFIA - ALIGN
   ======================================== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ========================================
   TIPOGRAFIA - DECORATION
   ======================================== */
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* ========================================
   POSITION
   ======================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ========================================
   OVERFLOW
   ======================================== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }

/* ========================================
   BORDER RADIUS
   ======================================== */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* ========================================
   TRANSITIONS
   ======================================== */
.transition-opacity { transition: opacity var(--transition-base); }
.transition-all { transition: all var(--transition-base); }
.transition-colors { 
  transition: color var(--transition-base), 
              background-color var(--transition-base), 
              border-color var(--transition-base); 
}
.transition-transform { transition: transform var(--transition-base); }

/* ========================================
   CURSOR
   ======================================== */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* ========================================
   Z-INDEX
   ======================================== */
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ========================================
   OPACITY
   ======================================== */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ========================================
   OBJECT FIT (para imagens)
   ======================================== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ========================================
   ASPECT RATIO (helper)
   ======================================== */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
