/* ============================================
   UTILITIES — Spacing, Text, Display Helpers
   ============================================ */

/* ── Text Alignment ── */
.text-center {
    text-align: center;
}

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

.text-left {
    text-align: left;
}

/* ── Text Colors ── */
.text-red {
    color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: white;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-danger {
    color: var(--color-danger);
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

/* ── Font Sizes ── */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

/* ── Font Weight & Style ── */
.font-bold {
    font-weight: 700;
}

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

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

.hover-underline:hover {
    text-decoration: underline;
}

/* ── Margin — Top ── */
.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: 2rem;
}

/* ── Margin — Bottom ── */
.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ── Margin — Start/End & Auto ── */
.ms-1 {
    margin-left: var(--spacing-xs);
}

.ms-2 {
    margin-left: var(--spacing-sm);
}

.me-1 {
    margin-right: var(--spacing-xs);
}

.me-2 {
    margin-right: var(--spacing-sm);
}

.ml-1 {
    margin-left: var(--spacing-sm);
}

.mr-1 {
    margin-right: var(--spacing-sm);
}

.ms-auto {
    margin-left: auto;
}

.me-auto {
    margin-right: auto;
}

/* ── Padding ── */
.p-2 {
    padding: var(--spacing-md);
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 2rem;
}

.pt-2 {
    padding-top: var(--spacing-md);
}

.pb-2 {
    padding-bottom: var(--spacing-md);
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ── Display & Flex Aliases (Bootstrap-compat) ── */
.d-flex,
.flex {
    display: flex !important;
}

.d-none,
.hidden {
    display: none !important;
}

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

.d-grid {
    display: grid !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.mobile-hide {
    /* Hidden on mobile */
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
}

/* ── Alignment Aliases ── */
.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

/* ── Sizing Aliases ── */
.w-100 {
    width: 100% !important;
}

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

/* ── Borders ── */
.border-left-green {
    border-left: 4px solid var(--color-success);
}

/* ── Grid Column Span ── */
.col-span-2 {
    grid-column: span 2;
}

.bg-dark-50 {
    background-color: rgba(0, 0, 0, 0.2);
}

/* ── Sticky ── */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* ── Animations ── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}