/* Code Arena Popup Styles (extracted from index.html) */

@keyframes arenaSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmerEffect {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

#code-arena-popup:not(.hidden) .code-arena-modal {
  animation: arenaSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Poster container with 9:16 aspect ratio */
.code-arena-poster-container {
  width: 225px; /* 9:16 ratio base width for compact size */
  min-height: 400px; /* 16 units */
  max-height: 450px;
}

.code-arena-poster-inner {
  position: relative;
  overflow: hidden;
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmerEffect 3s infinite;
  pointer-events: none;
}

/* Responsive adjustments for Code Arena popup */
@media (max-width: 768px) {
  .code-arena-modal {
    max-width: 95vw;
  }

  /* Stack vertically on mobile */
  .code-arena-poster-container {
    width: 100%;
    min-height: 300px;
    max-height: 350px;
  }

  .code-arena-modal h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) {
  /* Horizontal layout on desktop */
  .code-arena-modal > div {
    max-height: 450px;
  }
}

@media (max-width: 480px) {
  .code-arena-poster-container {
    min-height: 250px;
    max-height: 280px;
  }

  .code-arena-modal h2 {
    font-size: 1.25rem;
  }
}
