/* BPE Bike Playground — Shared Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #fff;
}

/* --- Display Page --- */

.display-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
}

.display-gate h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.display-gate input {
  font-size: 2rem;
  padding: 12px 24px;
  text-align: center;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  width: 300px;
}

.display-gate input:focus {
  outline: none;
  border-color: #4f8cff;
}

.display-gate .error {
  color: #ff4444;
  font-size: 0.9rem;
}

.display-gate button {
  font-size: 1.2rem;
  padding: 12px 48px;
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.display-gate button:hover {
  background: #3a7ae8;
}

/* Sketch selector on display page */
.sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sketch-card {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sketch-card:hover {
  border-color: #4f8cff;
}

.sketch-card h3 {
  margin-bottom: 8px;
}

.sketch-card p {
  color: #888;
  font-size: 0.9rem;
}

/* Fullscreen sketch container */
#sketch-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Reconnecting overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 1.5rem;
}

.hidden {
  display: none;
}

/* --- Setup Page --- */

.setup-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.setup-page h1 {
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.setup-section {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.setup-section h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #4f8cff;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.connected { background: #44ff44; }
.status-indicator.disconnected { background: #ff4444; }

.code-display {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 6px;
  text-align: center;
  padding: 20px;
  background: #0a0a0a;
  border-radius: 8px;
  margin: 16px 0;
  font-family: monospace;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
}

.btn-primary { background: #4f8cff; }
.btn-primary:hover { background: #3a7ae8; }

select, input[type="text"] {
  padding: 8px 12px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}
