/* ============================================================
   BIYAPOINT — Utility Classes
   ============================================================ */

/* ── Display ── */
.hidden         { display: none !important; }
.block          { display: block; }
.inline-block   { display: inline-block; }
.flex           { display: flex; }
.inline-flex    { display: inline-flex; }
.grid           { display: grid; }

/* ── Flex Helpers ── */
.flex-col        { flex-direction: column; }
.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-end     { justify-content: flex-end; }
.flex-1          { flex: 1; }
.flex-wrap       { flex-wrap: wrap; }
.flex-shrink-0   { flex-shrink: 0; }

/* ── Gap ── */
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-5  { gap: 20px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

/* ── Sizing ── */
.w-full     { width: 100%; }
.h-full     { height: 100%; }
.w-auto     { width: auto; }
.max-w-sm   { max-width: 420px; }
.max-w-md   { max-width: 640px; }
.max-w-lg   { max-width: 860px; }
.max-w-xl   { max-width: 1100px; }

/* ── Spacing ── */
.m-0    { margin: 0; }
.mt-1   { margin-top: 4px; }
.mt-2   { margin-top: 8px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mt-5   { margin-top: 20px; }
.mt-6   { margin-top: 24px; }
.mb-1   { margin-bottom: 4px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mb-5   { margin-bottom: 20px; }
.mb-6   { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-3   { padding: 12px; }
.p-4   { padding: 16px; }
.p-5   { padding: 20px; }
.p-6   { padding: 24px; }
.px-4  { padding-left: 16px; padding-right: 16px; }
.py-3  { padding-top: 12px; padding-bottom: 12px; }

/* ── Typography ── */
.text-xs    { font-size: 11px; }
.text-sm    { font-size: 13px; }
.text-base  { font-size: 14px; }
.text-md    { font-size: 15px; }
.text-lg    { font-size: 18px; }
.text-xl    { font-size: 22px; }
.text-2xl   { font-size: 28px; }
.text-3xl   { font-size: 36px; }

.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono      { font-family: var(--mono); }

.leading-tight  { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-loose  { line-height: 1.7; }

.tracking-tight  { letter-spacing: -0.02em; }
.tracking-wide   { letter-spacing: 0.04em; }
.tracking-wider  { letter-spacing: 0.08em; }
.uppercase       { text-transform: uppercase; }

/* ── Colors ── */
.text-white   { color: var(--white); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-orange  { color: var(--orange); }
.text-blue    { color: var(--blue); }
.text-gray    { color: var(--gray-500); }
.text-dark    { color: var(--gray-900); }
.text-muted   { color: var(--gray-400); }

/* ── Overflow ── */
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }
.overflow-x-auto  { overflow-x: auto; }
.truncate         { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Border ── */
.border            { border: 1px solid var(--gray-200); }
.border-top        { border-top: 1px solid var(--gray-200); }
.border-bottom     { border-bottom: 1px solid var(--gray-200); }
.rounded-sm        { border-radius: var(--radius-sm); }
.rounded           { border-radius: var(--radius); }
.rounded-lg        { border-radius: var(--radius-lg); }
.rounded-full      { border-radius: 9999px; }

/* ── Position ── */
.relative   { position: relative; }
.absolute   { position: absolute; }
.fixed      { position: fixed; }
.sticky     { position: sticky; }
.inset-0    { inset: 0; }
.z-10       { z-index: 10; }
.z-100      { z-index: 100; }

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }

/* ── Opacity ── */
.opacity-0    { opacity: 0; }
.opacity-50   { opacity: 0.5; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ── Shadow ── */
.shadow-sm  { box-shadow: var(--shadow-sm); }
.shadow     { box-shadow: var(--shadow); }
.shadow-lg  { box-shadow: var(--shadow-lg); }

/* ── Divider ── */
.divider { height: 1px; background: var(--gray-200); margin: 20px 0; }

/* ── Background ── */
.bg-white      { background: var(--white); }
.bg-gray-50    { background: var(--gray-50); }
.bg-green      { background: var(--green); }
.bg-green-light{ background: var(--green-light); }

/* ── Animation ── */
.animate-fade-in {
  animation: fadeIn 0.4s var(--ease) both;
}
.animate-slide-up {
  animation: slideUp 0.4s var(--ease) both;
}
@keyframes fadeIn  { from { opacity: 0; }             to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Stagger helpers ── */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .grid-4       { grid-template-columns: repeat(2,1fr); }
  .hide-md      { display: none !important; }
}
@media (max-width: 768px) {
  .grid-2,
  .grid-3       { grid-template-columns: 1fr; }
  .hide-sm      { display: none !important; }
  .col-span-2,
  .col-span-3   { grid-column: span 1; }
}
