/**
 * DECYON Utility Classes
 * ======================
 * Reusable utility classes for common styling patterns.
 */

/* =============================================
   GRADIENT TEXT
   ============================================= */

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   CONTAINER
   ============================================= */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =============================================
   CONTENT WRAPPER (for z-index layering)
   ============================================= */

.content-wrapper {
    position: relative;
    z-index: var(--z-base);
}

/* =============================================
   SECTION SPACING
   ============================================= */

.section {
    padding: var(--space-18) 0;
}

.section-lg {
    padding: var(--space-20) 0;
}

/* =============================================
   FLEX UTILITIES
   ============================================= */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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; }

/* Gap utilities */
.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-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

/* =============================================
   GRID UTILITIES
   ============================================= */

.grid { display: grid; }

.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-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .md\:grid-cols-1 { grid-template-columns: 1fr; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sm\:grid-cols-1 { grid-template-columns: 1fr; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   TEXT UTILITIES
   ============================================= */

/* Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Colors */
.text-primary { color: var(--color-text); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-white { color: white; }

/* Font Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.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); }

/* Font Weights */
.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); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* =============================================
   VISIBILITY
   ============================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .sm\:hidden { display: none !important; }
}

@media (min-width: 769px) {
    .sm\:block { display: block; }
}

/* =============================================
   SPACING UTILITIES
   ============================================= */

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-3); }
.mb-3 { margin-bottom: var(--space-5); }
.mb-4 { margin-bottom: var(--space-7); }
.mb-5 { margin-bottom: var(--space-9); }
.mb-6 { margin-bottom: var(--space-11); }
.mb-7 { margin-bottom: var(--space-13); }
.mb-8 { margin-bottom: var(--space-17); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-3); }
.mt-3 { margin-top: var(--space-5); }
.mt-4 { margin-top: var(--space-7); }
.mt-5 { margin-top: var(--space-9); }
.mt-6 { margin-top: var(--space-11); }
.mt-7 { margin-top: var(--space-13); }
.mt-8 { margin-top: var(--space-17); }
.mt-auto { margin-top: auto; }

/* =============================================
   WIDTH UTILITIES
   ============================================= */

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

/* =============================================
   MISC UTILITIES
   ============================================= */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
