﻿/* ===== Custom Styles for U SAT & Tyres ===== */
/* Only for things Tailwind utility classes cannot express */

/* === Nav underline hover animation === */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D4A017;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* === Marquee for brands on mobile === */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* === Scrollbar hide for horizontal scroll containers === */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* === Instagram grid hover overlay === */
.insta-tile .insta-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-tile:hover .insta-overlay {
  opacity: 1;
}

.insta-tile img {
  transition: transform 0.4s ease;
}

.insta-tile:hover img {
  transform: scale(1.08);
}

/* === Category card hover === */
.cat-card {
  overflow: hidden;
}

.cat-card img {
  transition: transform 0.4s ease;
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card .shop-arrow {
  transition: transform 0.3s ease;
}

.cat-card:hover .shop-arrow {
  transform: translateX(4px);
}

/* === Custom scroll-triggered reveal (used as final state fallback) === */
.reveal {
  opacity: 1;
  transform: none;
}

/* === Reduced motion safety === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Focus visible styles === */
*:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}