/**
 * Noble Theme - Common Utility Classes
 * Reusable utility classes for common styling needs
 */

/* ============================================
   DISPLAY & VISIBILITY
   ============================================ */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline-block {
    display: inline-block !important;
}

.flex {
    display: flex !important;
}

.inline-flex {
    display: inline-flex !important;
}

.grid {
    display: grid !important;
}

/* ============================================
   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;
}

.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;
}

.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;
}

.gap-10 {
    gap: 10px !important;
}

.gap-20 {
    gap: 20px !important;
}

.gap-30 {
    gap: 30px !important;
}

.gap-40 {
    gap: 40px !important;
}

.gap-50 {
    gap: 50px !important;
}

/* ============================================
   POSITIONING
   ============================================ */
.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.fixed {
    position: fixed !important;
}

.sticky {
    position: sticky !important;
}

.absolute-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.absolute-center-x {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.absolute-center-y {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   SPACING - MARGIN
   ============================================ */
.m-0 { margin: 0 !important; }
.m-10 { margin: 10px !important; }
.m-20 { margin: 20px !important; }
.m-30 { margin: 30px !important; }
.m-40 { margin: 40px !important; }
.m-50 { margin: 50px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }

.ml-0 { margin-left: 0 !important; }
.ml-10 { margin-left: 10px !important; }
.ml-20 { margin-left: 20px !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-10 { margin-right: 10px !important; }
.mr-20 { margin-right: 20px !important; }
.mr-auto { margin-right: auto !important; }

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

/* ============================================
   SPACING - PADDING
   ============================================ */
.p-0 { padding: 0 !important; }
.p-10 { padding: 10px !important; }
.p-20 { padding: 20px !important; }
.p-30 { padding: 30px !important; }
.p-40 { padding: 40px !important; }
.p-50 { padding: 50px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-10 { padding-top: 10px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-30 { padding-top: 30px !important; }
.pt-40 { padding-top: 40px !important; }
.pt-50 { padding-top: 50px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-10 { padding-bottom: 10px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pb-30 { padding-bottom: 30px !important; }
.pb-40 { padding-bottom: 40px !important; }
.pb-50 { padding-bottom: 50px !important; }

.pl-0 { padding-left: 0 !important; }
.pl-10 { padding-left: 10px !important; }
.pl-20 { padding-left: 20px !important; }
.pl-30 { padding-left: 30px !important; }

.pr-0 { padding-right: 0 !important; }
.pr-10 { padding-right: 10px !important; }
.pr-20 { padding-right: 20px !important; }
.pr-30 { padding-right: 30px !important; }

/* ============================================
   WIDTH & HEIGHT
   ============================================ */
.w-full {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.h-full {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

.max-w-full {
    max-width: 100% !important;
}

.max-w-unset {
    max-width: unset !important;
}

.max-w-1250 {
    max-width: 1250px !important;
}

.max-w-1400 {
    max-width: 1400px !important;
}

.min-h-100vh {
    min-height: 100vh !important;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

.font-normal {
    font-weight: normal !important;
}

.font-bold {
    font-weight: bold !important;
}

.nowrap {
    white-space: nowrap !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   OVERFLOW
   ============================================ */
.overflow-hidden {
    overflow: hidden !important;
}

.overflow-visible {
    overflow: visible !important;
}

.overflow-auto {
    overflow: auto !important;
}

.overflow-x-hidden {
    overflow-x: hidden !important;
}

.overflow-y-hidden {
    overflow-y: hidden !important;
}

/* ============================================
   ASPECT RATIOS
   ============================================ */
.aspect-1x1 {
    aspect-ratio: 1 / 1 !important;
}

.aspect-16x9 {
    aspect-ratio: 16 / 9 !important;
}

.aspect-4x3 {
    aspect-ratio: 4 / 3 !important;
}

.aspect-21x9 {
    aspect-ratio: 21 / 9 !important;
}

/* ============================================
   OPACITY
   ============================================ */
.opacity-0 {
    opacity: 0 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ============================================
   Z-INDEX
   ============================================ */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }
.z-999 { z-index: 999 !important; }

/* ============================================
   POINTER EVENTS
   ============================================ */
.pointer-events-none {
    pointer-events: none !important;
}

.pointer-events-auto {
    pointer-events: auto !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* ============================================
   OBJECT FIT
   ============================================ */
.object-cover {
    object-fit: cover !important;
}

.object-contain {
    object-fit: contain !important;
}

.object-fill {
    object-fit: fill !important;
}

/* ============================================
   SVG UTILITIES
   ============================================ */
.svg-full svg {
    display: block;
    width: 100%;
    height: auto;
}

.svg-w-73 svg {
    display: block;
    width: 73%;
    height: auto;
}

.svg-w-79 svg {
    display: block;
    width: 79%;
    height: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.rotate-animation {
    animation: rotate 40s linear infinite;
}

.rotate-animation-slow {
    animation: rotate 60s linear infinite;
}

.rotate-animation-fast {
    animation: rotate 20s linear infinite;
}

.transition-all {
    transition: all 0.3s ease !important;
}

.transition-fast {
    transition: all 0.15s ease !important;
}

.transition-slow {
    transition: all 0.5s ease !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Tablet and up */
@media (min-width: 768px) {
    .tablet-flex {
        display: flex !important;
    }

    .tablet-hidden {
        display: none !important;
    }

    .tablet-h-full {
        height: 100% !important;
    }
}

/* Desktop and up */
@media (min-width: 1025px) {
    .desktop-flex {
        display: flex !important;
    }

    .desktop-hidden {
        display: none !important;
    }
}

/* Mobile only */
@media (max-width: 767px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-absolute-unset {
        position: unset !important;
    }

    .mobile-w-full {
        width: 100% !important;
    }

    .mobile-p-0 {
        padding: 0 !important;
    }
}