/* ===========================================
   STUDIO SOLEN — Utilities
   Helper Classes
   =========================================== */

/* ===== DISPLAY ===== */

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

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

.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

/* 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;
}

/* ===== IMAGES ===== */

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== LAZY LOADING ===== */

.lazy {
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lazy.loaded {
  opacity: 1;
}

/* ===== ANIMATIONS ===== */

.fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp var(--transition-slow) ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* ===== RESPONSIVE UTILITIES ===== */

/* Hide on mobile */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* Show only on desktop */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: initial;
  }
}

/* ===== CURSOR ===== */

.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

/* ===== POINTER EVENTS ===== */

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

.pointer-events-auto {
  pointer-events: auto;
}

/* ===== USER SELECT ===== */

.select-none {
  user-select: none;
}

.select-text {
  user-select: text;
}

/* ===== BORDER UTILITIES ===== */

.rounded {
  border-radius: var(--radius-md);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ===== BACKGROUND UTILITIES ===== */

.bg-primary {
  background-color: var(--color-background);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-accent {
  background-color: var(--color-accent);
}

/* ===== OPACITY ===== */

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

/* ===== TRANSITIONS ===== */

.transition {
  transition: all var(--transition-base);
}

.transition-fast {
  transition: all var(--transition-fast);
}

.transition-slow {
  transition: all var(--transition-slow);
}

/* ===== NO SCROLLBAR ===== */

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
