/* Game Page Specific Styles */

/* Game Section */
#game-section {
  padding: var(--space-xl) 0;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.game-header h1 {
  margin-bottom: 0;
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--accent-glow), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(26, 21, 80, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-light);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.back-button:hover {
  background: rgba(79, 209, 197, 0.2);
  color: var(--accent-glow);
}

.game-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

.game-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Pulse animation for game container */
@keyframes container-pulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
  }
  50% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px var(--accent-purple);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
  }
}

.game-container {
  animation: container-pulse 5s infinite ease-in-out;
}

/* Responsive Styles for Game Page */
@media (max-width: 768px) {
  .game-header {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    text-align: center;
  }
  
  .game-header h1 {
    font-size: 2rem;
  }
  
  .game-container {
    padding-bottom: 75%; /* Higher aspect ratio for mobile */
  }
}

@media (max-width: 480px) {
  .game-header h1 {
    font-size: 1.8rem;
  }
  
  .back-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .game-container {
    padding-bottom: 100%; /* Square aspect ratio for small screens */
  }
}