/* Games Section Styling */
.training-simulators {
  padding: 60px 10%;
  background: linear-gradient(180deg, #0a0a0a 0%, #150030 100%);
  text-align: center;
}

.sim-header {
  margin-bottom: 40px;
}

.sim-header h2 {
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.sim-header p {
  color: #a0a0a0;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.sim-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sim-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #00ff88;
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.sim-card i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 20px;
}

/* Game Overlay */
.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.game-container {
  background: #1a1a1a;
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  border: 1px solid #333;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-game {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.close-game:hover {
  color: #ff4d4d;
}

/* Memory Match Specifics */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.memory-card {
  aspect-ratio: 1;
  background: #2a2a2a;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.memory-card.flipped {
  transform: rotateY(180deg);
}

.memory-card .front,
.memory-card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.memory-card .back {
  background: #3a3a3a;
  border: 2px solid #555;
}

.memory-card .front {
  background: #00ff88;
  color: #000;
  transform: rotateY(180deg);
}

/* Planet Sorting Specifics */
.sorting-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.planets-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  min-height: 80px;
  width: 100%;
}

.draggable-planet {
  padding: 10px 20px;
  background: #333;
  border: 1px solid #555;
  border-radius: 20px;
  cursor: grab;
  user-select: none;
  transition: 0.2s;
}

.draggable-planet:hover {
  border-color: #00ff88;
}

.drop-zones {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  width: 100%;
}

.drop-zone {
  min-width: 80px;
  height: 80px;
  border: 2px dashed #444;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.drop-zone.hovered {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.05);
}

.drop-zone .draggable-planet {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  cursor: default;
}
