/*==============================================================
  Lunar Logic v2.0
  Utilities
  File: utilities.css
==============================================================*/

/*==============================================================
  Display
==============================================================*/

.hidden {
    display: none !important;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

/*==============================================================
  Flex Alignment
==============================================================*/

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/*==============================================================
  Width
==============================================================*/

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.max-content {
    width: max-content;
}

/*==============================================================
  Text Alignment
==============================================================*/

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/*==============================================================
  Text Colors
==============================================================*/

.text-primary {
    color: var(--color-heading);
}

.text-secondary {
    color: var(--color-text);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-accent {
    color: var(--color-brand-400);
}

/*==============================================================
  Backgrounds
==============================================================*/

.bg-surface {
    background: var(--color-surface);
}

.bg-surface-alt {
    background: var(--color-background-alt);
}

.bg-transparent {
    background: transparent;
}

/*==============================================================
  Borders
==============================================================*/

.border {
    border: var(--border);
}

.border-strong {
    border: var(--border-strong);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/*==============================================================
  Shadows
==============================================================*/

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/*==============================================================
  Position
==============================================================*/

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

/*==============================================================
  Overflow
==============================================================*/

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/*==============================================================
  Opacity
==============================================================*/

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: .25;
}

.opacity-50 {
    opacity: .5;
}

.opacity-75 {
    opacity: .75;
}

.opacity-100 {
    opacity: 1;
}

/*==============================================================
  Spacing
==============================================================*/

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }

.pb-0 { padding-bottom: 0; }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }

/*==============================================================
  Animation Helpers
==============================================================*/

.fade-in {
    animation: fadeIn .8s ease forwards;
}

.slide-up {
    animation: slideUp .8s ease forwards;
}

.scale-in {
    animation: scaleIn .5s ease forwards;
}

/*==============================================================
  Keyframes
==============================================================*/

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes slideUp {

    from {

        opacity: 0;
        transform: translateY(24px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}

@keyframes scaleIn {

    from {

        opacity: 0;
        transform: scale(.94);

    }

    to {

        opacity: 1;
        transform: scale(1);

    }

}

/*==============================================================
  Accessibility
==============================================================*/

.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    white-space: nowrap;

    clip: rect(0,0,0,0);
    clip-path: inset(50%);

    border: 0;

}

/*==============================================================
  Responsive Helpers
==============================================================*/

@media (max-width:992px){

    .desktop-only{
        display:none !important;
    }

}

@media (min-width:993px){

    .mobile-only{
        display:none !important;
    }

}

/*==============================================================
  Reduced Motion
==============================================================*/

@media (prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{

        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;

    }

}