/* ============================================================
   CUSTOM STYLES — RoStore
   ============================================================ */

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #060609;
}
::-webkit-scrollbar-thumb {
  background: #1e1e2e;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a2a3e;
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
}

/* Smooth transitions for all links */
a {
  transition: color 0.2s ease;
}

/* Line clamp utilities */
.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;
}

/* Card shine effect on hover */
.card-shine {
  position: relative;
  overflow: hidden;
}
.card-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(124, 58, 237, 0.03) 50%,
    transparent 70%
  );
  transform: rotate(0deg);
  transition: transform 0.6s ease;
}
.card-shine:hover::before {
  transform: rotate(180deg);
}

/* Pulse dot animation */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.pulse-dot {
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Input autofill styling for dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px #111119 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Table responsive tweaks */
@media (max-width: 768px) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #e2231a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(10px)) {
  .backdrop-blur-xl {
    background-color: rgba(6, 6, 9, 0.95) !important;
  }
}

/* Lightbox transitions */
.lightbox-transition {
  transition: opacity 0.3s ease;
}
.lightbox-img-transition {
  transition: transform 0.3s ease;
}

/* Zoom-in cursor for lightbox-enabled images */
.cursor-zoom-in {
  cursor: zoom-in;
}
