/* Physics Playground Styles */

.physics-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.physics-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.physics-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-color), #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.physics-hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.8;
  color: var(--text-color);
}

.physics-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(0, 255, 136, 0.2));
}

.physics-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.physics-btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

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

.physics-btn-reset {
  border-color: #ff4444;
  color: #ff4444;
}

.physics-btn-reset:hover {
  background: #ff4444;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

.physics-info {
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: var(--bg-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.physics-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent-color);
  background: rgba(0, 0, 0, 0.2);
}

.physics-canvas {
  display: block;
  width: 100%;
  height: 600px;
  cursor: grab;
  transition: transform 0.1s ease;
}

.physics-canvas:active {
  cursor: grabbing;
}

.physics-instructions {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(0, 255, 136, 0.2));
}

.physics-instructions h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.physics-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.physics-instructions li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  line-height: 1.6;
}

.physics-instructions li:last-child {
  border-bottom: none;
}

.physics-instructions strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .physics-hero-title {
    font-size: 2rem;
  }

  .physics-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .physics-btn,
  .physics-info {
    width: 100%;
    text-align: center;
  }

  .physics-canvas {
    height: 400px;
  }

  .physics-instructions {
    padding: 1.5rem;
  }
}

/* Light theme adjustments */
[data-theme="light"] .physics-canvas-wrapper {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .physics-instructions li {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Animation for beat pulse */
@keyframes beatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.physics-canvas.beat-pulse {
  animation: beatPulse 0.2s ease;
}
