/* ============================================================
   Thalyron Forge UIKit — Main Entry
   Import this single file to get the full UIKit.

   Usage:
     @import url('/uikit/css/uikit.css');
   Or via <link> in HTML.
   ============================================================ */

@import 'tokens.css';
@import 'typography.css';
@import 'components/buttons.css';
@import 'components/badges.css';
@import 'components/cards.css';
@import 'components/tables.css';
@import 'components/forms.css';
@import 'components/alerts.css';
@import 'topnav.css';

/* ── Utility classes ── */

/* Display */
.tf-flex { display: flex; }
.tf-flex-col { display: flex; flex-direction: column; }
.tf-grid { display: grid; }
.tf-hidden { display: none !important; }

/* Align */
.tf-items-center { align-items: center; }
.tf-items-start  { align-items: flex-start; }
.tf-items-end    { align-items: flex-end; }
.tf-justify-between { justify-content: space-between; }
.tf-justify-center  { justify-content: center; }
.tf-justify-end     { justify-content: flex-end; }

/* Gap */
.tf-gap-1 { gap: var(--space-1); }
.tf-gap-2 { gap: var(--space-2); }
.tf-gap-3 { gap: var(--space-3); }
.tf-gap-4 { gap: var(--space-4); }
.tf-gap-5 { gap: var(--space-5); }

/* Spacing */
.tf-mb-0 { margin-bottom: 0; }
.tf-mb-2 { margin-bottom: var(--space-2); }
.tf-mb-3 { margin-bottom: var(--space-3); }
.tf-mb-4 { margin-bottom: var(--space-4); }
.tf-mb-5 { margin-bottom: var(--space-5); }
.tf-mb-6 { margin-bottom: var(--space-6); }

.tf-mt-auto { margin-top: auto; }
.tf-ml-auto { margin-left: auto; }

/* Width */
.tf-w-full { width: 100%; }
.tf-w-auto { width: auto; }

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

/* Overflow */
.tf-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-wrap { flex-wrap: wrap; }

/* Position */
.tf-relative { position: relative; }
.tf-absolute { position: absolute; }

/* Pointer */
.tf-pointer { cursor: pointer; }

/* Border radius */
.tf-rounded    { border-radius: var(--radius); }
.tf-rounded-lg { border-radius: var(--radius-lg); }
.tf-rounded-full { border-radius: var(--radius-pill); }

/* Separator */
.tf-sep {
  height: 1px;
  background: var(--border-muted);
  border: none;
  margin: var(--space-4) 0;
}

/* Scrollbar */
.tf-scroll-y { overflow-y: auto; }
.tf-scroll-x { overflow-x: auto; }
.tf-scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-4) transparent;
}
.tf-scrollbar-thin::-webkit-scrollbar { width: 4px; height: 4px; }
.tf-scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.tf-scrollbar-thin::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 2px; }

/* Loading spinner */
.tf-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-muted);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: tf-spin .7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.tf-spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.tf-spinner-lg { width: 32px; height: 32px; border-width: 3px; }

@keyframes tf-spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.tf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center;
  gap: var(--space-3);
}

.tf-empty__icon {
  font-size: 3rem;
  opacity: .3;
  color: var(--text-muted);
}

.tf-empty__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.tf-empty__desc {
  font-size: .875rem;
  color: var(--text-dim);
  max-width: 360px;
}

/* Skeleton loading */
.tf-skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: tf-shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes tf-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
