/* Helix Games Theme for Asteroids */
/* Theme color: #3cd2a5 (cyan/turquoise) */

:root {
  --helix-primary: #3cd2a5;
  --helix-primary-dark: #2ab88c;
  --helix-primary-light: #5ddbb5;
  --helix-bg-dark: #0a0e10;
  --helix-bg-card: #1a1f23;
  --helix-text: #ffffff;
  --helix-text-muted: rgba(255, 255, 255, 0.6);
  --helix-glow: rgba(60, 210, 165, 0.6);
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Stats Bar - Above Game */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px auto;
  padding: 15px 30px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-label {
  color: var(--helix-text-muted);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--helix-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

/* Canvas styling */
.canvas-container {
  margin: 20px auto;
}

#canvas {
  background: #000000;
  border: 3px solid #3cd2a5;
  display: block;
  box-shadow: 0 0 20px rgba(60, 210, 165, 0.1);
}

/* Hover effect removed - can interfere with game performance */

/* Game title - with text glow */
.game-title {
  color: var(--helix-primary);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(60, 210, 165, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Info Panels - Below Game */
.info-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
  width: 100%;
}

.controls-panel {
  padding: 20px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.controls-panel h3,
.howto-panel h3 {
  margin-top: 0;
  color: var(--helix-primary);
}

.control-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.control-list div {
  padding: 5px 0;
}

.control-key {
  background: var(--helix-primary);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 8px;
}

.howto-panel {
  padding: 20px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.howto-panel p {
  margin: 10px 0;
  line-height: 1.6;
  color: var(--helix-text);
  font-size: 0.95rem;
}

/* Legacy controls section */
.game-controls {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(26, 31, 35, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
}

.game-controls h3 {
  color: var(--helix-primary);
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(60, 210, 165, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(60, 210, 165, 0.15);
  /* Transition removed - can cause performance issues */
}

/* Hover effect removed to prevent performance issues */

.control-key {
  background: var(--helix-primary);
  color: #0a0e10;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(60, 210, 165, 0.3);
}

.control-desc {
  color: var(--helix-text);
  font-size: 0.875rem;
  flex: 1;
}

/* Start button - with hover effects */
.start-button {
  background: var(--helix-primary);
  color: #0a0e10;
  border: none;
  padding: 15px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(60, 210, 165, 0.4);
  transition: all 0.3s ease;
}

.start-button:hover {
  background: var(--helix-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 210, 165, 0.6);
}

/* Instructions */
.game-instructions {
  color: var(--helix-text-muted);
  font-size: 0.875rem;
  margin-top: 20px;
  line-height: 1.6;
}

.game-instructions strong {
  color: var(--helix-primary);
  font-weight: 600;
}

/* Responsive design */
@media screen and (max-width: 820px) {
  #canvas {
    max-width: 100%;
    height: auto;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .info-panels {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .stat-item {
    justify-content: space-between;
    width: 100%;
  }
  
  .control-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation removed - can cause performance issues during gameplay */

/* Status indicator */
.game-status {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(60, 210, 165, 0.1);
  border: 1px solid var(--helix-primary);
  border-radius: 20px;
  color: var(--helix-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-status.active {
  background: var(--helix-primary);
  color: #0a0e10;
  box-shadow: 0 0 15px rgba(60, 210, 165, 0.5);
}

/* High score display */
.high-score {
  color: var(--helix-primary-light);
  font-size: 0.75rem;
  margin-top: 5px;
  opacity: 0.8;
}

/* Touch controls for mobile */
.touch-controls {
  display: none;
  margin-top: 20px;
  gap: 10px;
  justify-content: center;
}

@media (hover: none) and (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
  
  .touch-btn {
    background: rgba(60, 210, 165, 0.2);
    border: 2px solid var(--helix-primary);
    color: var(--helix-text);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    touch-action: manipulation;
  }
  
  .touch-btn:active {
    background: var(--helix-primary);
    color: #0a0e10;
  }
}
