/**
 * iNKPPL Design System — Utility Classes
 * Includes shared section patterns, spacing, and animations used across all v2 pages.
 */

/* Typography */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.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-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-brand-accent); }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

.uppercase { text-transform: uppercase; letter-spacing: var(--letter-spacing-caps); }

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Gap */
.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-6 { gap: var(--space-6); }

/* Margin */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* Line clamping */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Section Heading
   Uppercase editorial h2/h3 used as page section labels across all v2 pages.
   Usage: <h2 class="section-heading">Featured Artists</h2>
   ========================================================================== */

.section-heading {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

.section-heading--sm {
  font-size: var(--text-base);
  letter-spacing: 0.05em;
}

.section-heading--lg {
  font-size: var(--text-xl);
  letter-spacing: 0.03em;
}

.section-heading__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

/* ==========================================================================
   Gold Accent Line
   ========================================================================== */

.gold-line {
  height: 2px;
  background: linear-gradient(90deg, var(--color-brand-accent), transparent);
  margin: var(--text-base) 0;
}

/* ==========================================================================
   Section Headings (header + title + link pattern)
   ========================================================================== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 1.2em;
  background: var(--color-brand-accent);
  display: inline-block;
}

.section-link {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-accent);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition-normal);
}

.section-link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Section Spacing
   ========================================================================== */

.section-gap {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section-gap {
    padding: 4rem 0;
  }
}

.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  opacity: 0;
}

.anim.visible {
  animation: fadeUp 600ms cubic-bezier(.4, 0, .2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    opacity: 1;
  }
  .anim.visible {
    animation: none;
  }
}
