/*
 * Tetris Game Styles
 * Copyright (c) 2025 VDS Framework
 */

#tetris-window .window-content {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ecf0f1;
  font-family: 'Courier New', monospace;
  justify-content: center;
  align-items: flex-start;
}

.tetris-game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#tetris-canvas {
  border: 3px solid #00f0f0;
  box-shadow: 0 0 20px rgba(0, 240, 240, 0.5),
              inset 0 0 20px rgba(0, 0, 0, 0.5);
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tetris-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tetris-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.tetris-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.tetris-btn:active {
  transform: translateY(0);
}

.tetris-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tetris-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 150px;
}

.tetris-info-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00f0f0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 240, 240, 0.3);
}

.tetris-info-box h3 {
  margin: 0 0 10px 0;
  color: #00f0f0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #00f0f0;
  padding-bottom: 5px;
}

.tetris-stat {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 16px;
}

.tetris-stat-label {
  color: #bdc3c7;
}

.tetris-stat-value {
  color: #f0f000;
  font-weight: bold;
  font-size: 18px;
}

#tetris-next {
  border: 2px solid #a000f0;
  background: #000;
  box-shadow: 0 0 10px rgba(160, 0, 240, 0.3);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin: 10px auto;
  display: block;
}

.tetris-instructions {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.tetris-instructions h4 {
  margin: 0 0 10px 0;
  color: #667eea;
  font-size: 13px;
  text-transform: uppercase;
}

.tetris-instructions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.tetris-instructions li {
  margin: 5px 0;
}

.tetris-instructions li::before {
  content: "▸ ";
  color: #00f0f0;
  font-weight: bold;
}

.tetris-key {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  color: #f0f000;
  font-size: 11px;
}

#tetris-game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #f00000;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  font-size: 32px;
  color: #f00000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  animation: gameOverPulse 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes gameOverPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #tetris-window .window-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 15px;
  }

  #tetris-canvas {
    max-width: 100%;
    height: auto;
  }

  .tetris-sidebar {
    width: 100%;
    max-width: 300px;
  }

  .tetris-controls {
    width: 100%;
    justify-content: center;
  }

  .tetris-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
  }

  .tetris-info-box {
    padding: 12px;
  }

  .tetris-instructions {
    padding: 12px;
    font-size: 11px;
  }

  #tetris-game-over {
    font-size: 24px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tetris-controls {
    flex-direction: column;
  }

  .tetris-btn {
    width: 100%;
  }

  .tetris-stat {
    font-size: 14px;
  }

  .tetris-stat-value {
    font-size: 16px;
  }
}
