@tailwind base;
@tailwind components;
@tailwind utilities;

.fade-out {
  animation: fadeOut 7s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.4;
    display: none;
  }
}

/* Leaderboard */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.table-zebra tr:nth-child(even) {
  background-color: #f9fafb;
}

.btn-primary {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.1);
}

.scale-105 {
  transform: scale(1.05);
}

/* Search */
#suggestions {
  @apply border rounded shadow-lg overflow-y-auto;
  min-width: var(--input-width, 100%);
  max-height: calc(100vh - 100px);
  max-width: calc(100vw - 20px);
  right: 0;
  top: 100%;
  z-index: 1001;
}

.input {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}