/* Reusable glass tile + animation utilities for Playora */
/* Base glass styling */
.glass-tile {
  background: rgba(15, 22, 39, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow:
    0 6px 26px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 1s ease,
    background 3s ease;
  margin-top: 6px;
}

/* Standard padding utility */
.pad-lg {
  padding: 2.2rem 2.3rem 2.5rem;
}

/* Hover effect */
.glass-tile:hover {
  transform: translateY(-6px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: linear-gradient(
    145deg,
    rgba(59, 109, 181, 0.16),
    rgba(214, 103, 103, 0.16)
  );
  border-color: rgba(255, 255, 255, 0.16);
}

/* Entrance animation utilities */
@keyframes tileFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  60% {
    opacity: 1;
    transform: translateY(-1px) scale(1.003);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tile-animate {
  opacity: 0;
  animation: tileFadeSlide 0.62s cubic-bezier(0.22, 0.65, 0.3, 1) forwards;
}

/* Stagger helper: add inline style animation-delay: Nms to each tile */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .tile-animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .glass-tile {
    transition: none;
  }
}
