/* Game Page Specific Styles for Flunexo */

/* Game Page Layout */
.game-body {
  background-color: var(--dark);
}

.game-header {
  background: rgba(15, 15, 30, 0.95);
}

.game-container {
  max-width: 1400px;
  margin: 120px auto var(--spacing-lg);
  padding: var(--spacing-lg);
}

.game-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--primary-pink), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.game-frame-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--spacing-lg);
  background: #000;
}

.game-frame-container iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.game-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.back-btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(45deg, var(--secondary-teal), var(--accent-orange));
  color: var(--light);
  font-weight: 600;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.back-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-pink), var(--accent-violet));
  transition: all 0.5s ease;
  z-index: -1;
}

.back-btn:hover:before {
  width: 100%;
}

/* Game Frame Background Animation */
@keyframes gameFrameGlow {
  0% {
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.5);
  }
  33% {
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.5);
  }
  66% {
    box-shadow: 0 0 20px rgba(211, 0, 197, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.5);
  }
}

.game-frame-container {
  animation: gameFrameGlow 5s infinite;
}

/* Game Loading State */
.game-frame-container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 30, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-frame-container.loading:before {
  opacity: 1;
}

/* Responsive Adjustments for Game Pages */
@media (max-width: 768px) {
  .game-container {
    margin-top: 100px;
    padding: var(--spacing-sm);
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-frame-container {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .game-frame-container {
    height: 300px;
  }
  
  .game-title {
    font-size: 1.8rem;
  }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .game-container {
    margin-top: 80px;
  }
  
  .game-frame-container {
    height: 70vh;
  }
}

/* High Resolution Displays */
@media (min-width: 1800px) {
  .game-frame-container {
    height: 800px;
  }
}