/* Skeleton Loading Screens — Strategy Arena */
/* Shimmer animation: subtle light sweep on dark background */

@keyframes skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #1e293b 0%, #2a3a52 40%, #1e293b 80%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-text {
  height: 14px;
  background: #1e293b;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #1e293b 0%, #2a3a52 40%, #1e293b 80%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-text.w-30 { width: 30%; }

.skeleton-title {
  height: 24px;
  width: 60%;
  background: #1e293b;
  border-radius: 8px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #1e293b 0%, #2a3a52 40%, #1e293b 80%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-card {
  height: 120px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.skeleton-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1e293b;
  background: linear-gradient(90deg, #1e293b 0%, #2a3a52 40%, #1e293b 80%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.skeleton-bar {
  height: 30px;
  border-radius: 8px;
  background: #1e293b;
  background: linear-gradient(90deg, #1e293b 0%, #2a3a52 40%, #1e293b 80%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Dashboard skeleton grid — matches .arena-grid layout */
#skeleton-loader {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  padding: 0;
  margin-bottom: 20px;
}

#skeleton-loader .skeleton-card {
  height: 130px;
}

/* Landing page top-5 skeleton — matches .grid-5 layout */
#skeleton-top5 {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

#skeleton-top5 .skeleton-card {
  height: 100px;
  text-align: center;
}

@media (max-width: 600px) {
  #skeleton-top5 { grid-template-columns: repeat(2, 1fr); }
}
