/* Custom styles for Android Apps catalog */

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth font loading - prevent FOIT */
.font-ar {
  font-feature-settings: "kern" 1, "calt" 1;
  line-height: 1.7;
}

/* Card icon image — ensure crisp rendering on Play Store icons */
img[loading="lazy"] {
  image-rendering: -webkit-optimize-contrast;
}

/* Active filter button transitions */
.filter-btn {
  transition: all 0.15s ease;
}

/* Subtle reveal on scroll (no JS, CSS only) */
article {
  animation: cardIn 0.4s ease backwards;
}
article:nth-child(1) { animation-delay: 0.02s }
article:nth-child(2) { animation-delay: 0.04s }
article:nth-child(3) { animation-delay: 0.06s }
article:nth-child(4) { animation-delay: 0.08s }
article:nth-child(5) { animation-delay: 0.10s }
article:nth-child(6) { animation-delay: 0.12s }
article:nth-child(n+7) { animation-delay: 0.14s }

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

/* Better RTL number rendering for ratings/installs */
[dir="ltr"] {
  unicode-bidi: isolate;
}
