/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 */

/* ==========================================================================
   Catland Custom Styling & Refined Animations
   Theme Accent: Purple / Dark Aesthetics (#4B1650)
   ========================================================================== */

/* ── Typography & Smooth Rendering ── */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero Subtle Animations ── */
.sa-hero-eyebrow {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sa-hero-title {
  animation: heroFadeUp 0.7s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
  letter-spacing: -0.025em;
}

.sa-hero-subtitle {
  animation: heroFadeUp 0.7s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
  line-height: 1.6;
}

.sa-hero-actions {
  animation: heroFadeUp 0.7s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Spotlight Valorant Card (Hero) ── */
.valorant-spotlight-card,
.sa-hero--product-spotlight .sa-product-card {
  position: relative;
  background: linear-gradient(145deg, rgba(21, 10, 23, 0.95), rgba(10, 5, 11, 0.98)) !important;
  border: 1px solid rgba(75, 22, 80, 0.45) !important;
  box-shadow: 0 12px 36px -10px rgba(75, 22, 80, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.valorant-spotlight-card::before,
.sa-hero--product-spotlight .sa-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 127, 160, 0.4), transparent);
  pointer-events-none;
}

.valorant-spotlight-card:hover,
.sa-hero--product-spotlight .sa-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 22, 80, 0.8) !important;
  box-shadow: 0 20px 48px -12px rgba(75, 22, 80, 0.45), 0 0 20px rgba(75, 22, 80, 0.2) !important;
}

/* ── Primary CTA Subtle Glow ── */
.btn-primary,
.sa-hero-actions .btn-primary,
.sa-hero-actions a[class*="bg-accent"] {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(75, 22, 80, 0.35);
}

.btn-primary:hover,
.sa-hero-actions .btn-primary:hover,
.sa-hero-actions a[class*="bg-accent"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(75, 22, 80, 0.55);
}

/* ── Product Cards Elegance ── */
.sa-product-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.sa-product-card:hover {
  border-color: rgba(75, 22, 80, 0.4) !important;
  box-shadow: 0 10px 28px -8px rgba(75, 22, 80, 0.25) !important;
}

/* ── Features Hover Enhancements ── */
.sa-features-item {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sa-features-item:hover {
  transform: translateY(-3px);
  border-color: rgba(75, 22, 80, 0.35);
  box-shadow: 0 8px 24px -8px rgba(75, 22, 80, 0.2);
}

.sa-features-item i,
.sa-features-item svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-features-item:hover i,
.sa-features-item:hover svg {
  transform: scale(1.12);
}

/* ── Stats Subtle Card Depth ── */
.sa-stats-items {
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease;
}

.sa-stats-item {
  transition: background-color 0.2s ease;
}

.sa-stats-item:hover {
  background-color: rgba(75, 22, 80, 0.06);
}

/* ── Floating Navbar Glassmorphism on Scroll ── */
.sa-header.is-scrolled .sa-navbar > div > div,
.sa-header.is-scrolled .sa-navbar--classic > div,
.sa-header.is-scrolled .sa-navbar--centered-logo > div {
  border-color: rgba(75, 22, 80, 0.3) !important;
  box-shadow: 0 8px 32px -4px rgba(75, 22, 80, 0.22), 0 2px 8px -2px rgba(0, 0, 0, 0.4) !important;
}

/* ── Pulsating Status Indicators ── */
.pulsating {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ── Reduced Motion Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
