/* ==========================================================================
   PINKLADY ENTERPRISE — UTILITY CLASSES
   ========================================================================== */

/* Layout grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.fw-light { font-weight: var(--fw-light); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold { font-weight: var(--fw-bold); }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.font-heading { font-family: var(--font-heading); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Visibility */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* Radius / shadow helpers */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }

/* Glass panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.glass-panel-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}

/* Badges / tags */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}
.badge-gold { background: rgba(var(--color-accent-rgb), 0.15); color: #97781F; }

/* Divider */
.divider { height: 1px; background: var(--color-border); width: 100%; }
.divider-vertical { width: 1px; background: var(--color-border); align-self: stretch; }

/* Image ratio helpers */
.ratio-1x1 { aspect-ratio: 1/1; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4/5; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16/9; object-fit: cover; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-rounded { border-radius: var(--radius-md); overflow: hidden; }

/* Lazy load fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}
img[loading="lazy"].lazy-loaded,
img.lazy-loaded { opacity: 1; }

/* Skeleton shimmer for lazy content */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 37%, #f0f0f0 63%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* No horizontal overflow safeguard */
.overflow-hidden { overflow: hidden; }
html, body { max-width: 100%; }
