/* Game Pages Common Styles */

/* Game Hero Section */
.game-hero {
  background: linear-gradient(135deg, #063852 0%, #0B84A5 100%);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.game-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/game-pattern.png.html') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.game-hero .container {
  position: relative;
  z-index: 1;
}

.game-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-rose);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.game-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Game Container */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  color: var(--accent-rose);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.back-button i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.back-button:hover {
  color: var(--accent-rose-dark);
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* Game Frame Container */
.game-frame-container {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.game-frame-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

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

/* Game Info Section */
.game-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.game-description {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.game-description h2 {
  color: var(--accent-rose);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.game-description h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-rose);
}

.game-description p {
  color: var(--text-taupe);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Game Features */
.game-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 1.75rem;
  color: var(--accent-rose);
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-card h3 {
  color: var(--accent-brown);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-taupe);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Game Disclaimer */
.game-disclaimer {
  background: rgba(160, 23, 43, 0.05);
  border-left: 4px solid var(--accent-rose);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2.5rem 0;
}

.game-disclaimer h3 {
  color: var(--accent-rose);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.game-disclaimer p {
  color: var(--text-taupe);
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .game-info {
    grid-template-columns: 1fr;
  }
  
  .game-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .game-hero h1 {
    font-size: 2rem;
  }
  
  .game-container {
    padding: 0 1rem 3rem;
  }
  
  .game-features {
    grid-template-columns: 1fr;
  }
  
  .game-frame-container {
    border-radius: 8px;
  }
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(160, 23, 43, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-rose);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: white;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

