/* ==========================================================================
   DENTALINS — UTILITY CLASSES (utilities.css)
   Küçük, tek amaçlı helper class'lar.
   Component CSS'lerini destekler, override etmez.
   !important sadece utility'lerde kullanılır — kesin uygulama garantisi.
   ========================================================================== */

/* ======================================================================
   1. DISPLAY
   ====================================================================== */

.d-none          { display: none !important; }
.d-block         { display: block !important; }
.d-inline        { display: inline !important; }
.d-inline-block  { display: inline-block !important; }
.d-flex          { display: flex !important; }
.d-inline-flex   { display: inline-flex !important; }
.d-grid          { display: grid !important; }

/* Responsive display */
@media (min-width: 768px) {
  .d-md-none         { display: none !important; }
  .d-md-block        { display: block !important; }
  .d-md-flex         { display: flex !important; }
  .d-md-grid         { display: grid !important; }
  .d-md-inline-flex  { display: inline-flex !important; }
}

@media (min-width: 1024px) {
  .d-lg-none         { display: none !important; }
  .d-lg-block        { display: block !important; }
  .d-lg-flex         { display: flex !important; }
  .d-lg-grid         { display: grid !important; }
}


/* ======================================================================
   2. FLEXBOX UTILITIES
   ====================================================================== */

.flex-row       { flex-direction: row !important; }
.flex-column    { flex-direction: column !important; }
.flex-wrap      { flex-wrap: wrap !important; }
.flex-nowrap    { flex-wrap: nowrap !important; }
.flex-1         { flex: 1 1 0% !important; }
.flex-auto      { flex: 1 1 auto !important; }
.flex-shrink-0  { flex-shrink: 0 !important; }
.flex-grow-0    { flex-grow: 0 !important; }

/* Alignment */
.items-start    { align-items: flex-start !important; }
.items-center   { align-items: center !important; }
.items-end      { align-items: flex-end !important; }
.items-stretch  { align-items: stretch !important; }
.items-baseline { align-items: baseline !important; }

.justify-start   { justify-content: flex-start !important; }
.justify-center  { justify-content: center !important; }
.justify-end     { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around  { justify-content: space-around !important; }

.self-start   { align-self: flex-start !important; }
.self-center  { align-self: center !important; }
.self-end     { align-self: flex-end !important; }

/* Gap */
.gap-1  { gap: var(--space-1) !important; }
.gap-2  { gap: var(--space-2) !important; }
.gap-3  { gap: var(--space-3) !important; }
.gap-4  { gap: var(--space-4) !important; }
.gap-6  { gap: var(--space-6) !important; }
.gap-8  { gap: var(--space-8) !important; }
.gap-10 { gap: var(--space-10) !important; }
.gap-12 { gap: var(--space-12) !important; }


/* ======================================================================
   3. TEXT ALIGNMENT
   ====================================================================== */

.text-left    { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }

@media (min-width: 768px) {
  .text-md-left   { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right  { text-align: right !important; }
}

@media (min-width: 1024px) {
  .text-lg-left   { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
}


/* ======================================================================
   4. TEXT SIZE UTILITIES
   ====================================================================== */

.text-size-xs   { font-size: var(--text-xs) !important; }
.text-size-sm   { font-size: var(--text-sm) !important; }
.text-size-base { font-size: var(--text-base) !important; }
.text-size-md   { font-size: var(--text-md) !important; }
.text-size-lg   { font-size: var(--text-lg) !important; }
.text-size-xl   { font-size: var(--text-xl) !important; }
.text-size-2xl  { font-size: var(--text-2xl) !important; }
.text-size-3xl  { font-size: var(--text-3xl) !important; }


/* ======================================================================
   5. FONT WEIGHT UTILITIES
   ====================================================================== */

.font-regular  { font-weight: var(--weight-regular) !important; }
.font-medium   { font-weight: var(--weight-medium) !important; }
.font-semibold { font-weight: var(--weight-semibold) !important; }
.font-bold     { font-weight: var(--weight-bold) !important; }
.font-extrabold{ font-weight: var(--weight-extrabold) !important; }


/* ======================================================================
   6. TEXT COLOR UTILITIES
   ====================================================================== */

.text-primary   { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-tertiary  { color: var(--color-text-tertiary) !important; }
.text-inverse   { color: var(--color-text-inverse) !important; }
.text-accent    { color: var(--color-accent-500) !important; }
.text-brand     { color: var(--color-primary-500) !important; }
.text-error     { color: var(--color-error) !important; }
.text-success   { color: var(--color-success) !important; }


/* ======================================================================
   7. BACKGROUND COLOR UTILITIES
   ====================================================================== */

.bg-white     { background-color: var(--color-bg-primary) !important; }
.bg-light     { background-color: var(--color-bg-secondary) !important; }
.bg-lighter   { background-color: var(--color-bg-tertiary) !important; }
.bg-dark      { background-color: var(--color-bg-dark) !important; }
.bg-primary   { background-color: var(--color-primary-500) !important; }
.bg-secondary { background-color: var(--color-secondary-500) !important; }
.bg-accent    { background-color: var(--color-accent-500) !important; }


/* ======================================================================
   8. SPACING UTILITIES (Margin & Padding)
   ====================================================================== */

/* Margin */
.m-0  { margin: 0 !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.mt-0  { margin-top: 0 !important; }
.mt-2  { margin-top: var(--space-2) !important; }
.mt-4  { margin-top: var(--space-4) !important; }
.mt-6  { margin-top: var(--space-6) !important; }
.mt-8  { margin-top: var(--space-8) !important; }
.mt-12 { margin-top: var(--space-12) !important; }
.mt-16 { margin-top: var(--space-16) !important; }

.mb-0  { margin-bottom: 0 !important; }
.mb-2  { margin-bottom: var(--space-2) !important; }
.mb-4  { margin-bottom: var(--space-4) !important; }
.mb-6  { margin-bottom: var(--space-6) !important; }
.mb-8  { margin-bottom: var(--space-8) !important; }
.mb-12 { margin-bottom: var(--space-12) !important; }
.mb-16 { margin-bottom: var(--space-16) !important; }

.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

/* Padding */
.p-0  { padding: 0 !important; }
.p-2  { padding: var(--space-2) !important; }
.p-4  { padding: var(--space-4) !important; }
.p-6  { padding: var(--space-6) !important; }
.p-8  { padding: var(--space-8) !important; }

.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }
.px-8 { padding-left: var(--space-8) !important; padding-right: var(--space-8) !important; }

.py-4  { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-6  { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
.py-8  { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
.py-12 { padding-top: var(--space-12) !important; padding-bottom: var(--space-12) !important; }
.py-16 { padding-top: var(--space-16) !important; padding-bottom: var(--space-16) !important; }
.py-20 { padding-top: var(--space-20) !important; padding-bottom: var(--space-20) !important; }


/* ======================================================================
   9. WIDTH & HEIGHT
   ====================================================================== */

.w-full   { width: 100% !important; }
.w-auto   { width: auto !important; }
.h-full   { height: 100% !important; }
.h-auto   { height: auto !important; }
.h-screen { height: 100vh !important; }
.min-h-screen { min-height: 100vh !important; }


/* ======================================================================
   10. BORDER & RADIUS
   ====================================================================== */

.border     { border: 1px solid var(--color-border) !important; }
.border-0   { border: none !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }


/* ======================================================================
   11. SHADOW
   ====================================================================== */

.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: var(--shadow-sm) !important; }
.shadow-md   { box-shadow: var(--shadow-md) !important; }
.shadow-lg   { box-shadow: var(--shadow-lg) !important; }
.shadow-xl   { box-shadow: var(--shadow-xl) !important; }


/* ======================================================================
   12. POSITION
   ====================================================================== */

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed    { position: fixed !important; }
.sticky   { position: sticky !important; }


/* ======================================================================
   13. OVERFLOW
   ====================================================================== */

.overflow-hidden  { overflow: hidden !important; }
.overflow-auto    { overflow: auto !important; }
.overflow-x-auto  { overflow-x: auto !important; }
.overflow-y-auto  { overflow-y: auto !important; }


/* ======================================================================
   14. VISIBILITY & OPACITY
   ====================================================================== */

.visible   { visibility: visible !important; }
.invisible { visibility: hidden !important; }
.opacity-0   { opacity: 0 !important; }
.opacity-50  { opacity: 0.5 !important; }
.opacity-100 { opacity: 1 !important; }


/* ======================================================================
   15. CURSOR & POINTER EVENTS
   ====================================================================== */

.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.pointer-events-none { pointer-events: none !important; }


/* ======================================================================
   16. TEXT UTILITIES
   ====================================================================== */

.text-uppercase  { text-transform: uppercase !important; }
.text-lowercase  { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-normal     { text-transform: none !important; }
.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.text-nowrap     { white-space: nowrap !important; }

/* Line clamp — çok satırlı truncate */
.line-clamp-2 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}


/* ======================================================================
   17. RESPONSIVE VISIBILITY
   ====================================================================== */

/* Mobilde göster, tablet+ gizle */
.show-mobile {
  display: block !important;
}

/* Tablet+ göster, mobilde gizle */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none !important;
  }
  .hide-mobile {
    display: block !important;
  }
}

/* Desktop+ göster, tablet- gizle */
.hide-tablet {
  display: none !important;
}

@media (min-width: 1024px) {
  .hide-tablet {
    display: block !important;
  }
}
