/* Binary Piano Specific Styles - CRT Aesthetic */

:root {
  --bg-dark: #0c0c10;
  --bg-card: #141418;
  --text-primary: #c8d8c8;
  --text-secondary: #707878;
  --accent-cyan: #00ffcc;
  --accent-purple: #cc66ff;
  --accent-pink: #ff66aa;
  --border-color: rgba(255, 255, 255, 0.15);
}

.app-container {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}

.binary-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
  min-height: 60vh;
}

.binary-display-large {
  font-family: 'Space Mono', monospace;
  font-size: 4rem;
  letter-spacing: 8px;
  color: var(--accent-cyan);
  margin-bottom: 40px;
  text-shadow:
    0 0 8px rgba(0, 255, 204, 0.4),
    -0.5px 0 rgba(255, 0, 0, 0.2),
    0.5px 0 rgba(0, 255, 255, 0.2);
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  border: 2px solid var(--accent-cyan);
  background: rgba(0, 255, 204, 0.1);
  color: var(--accent-cyan);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow:
    0 0 20px rgba(0, 255, 204, 0.4),
    inset 0 0 20px rgba(0, 255, 204, 0.1);
}

.play-button.playing {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(255, 102, 170, 0.1);
}

.play-button.playing:hover {
  background: rgba(255, 102, 170, 0.2);
  box-shadow:
    0 0 20px rgba(255, 102, 170, 0.4),
    inset 0 0 20px rgba(255, 102, 170, 0.1);
}

/* Editor Panel */
.editor-container {
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--border-color);
  transition: height 0.15s;
  height: 60px;
  overflow: hidden;
}

.editor-container.open {
  height: auto;
  min-height: 500px;
}

.editor-header {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.editor-header h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.editor-header .separator {
  margin: 0 15px;
  opacity: 0.5;
}

.editor-content {
  opacity: 0;
  transition: opacity 0.15s;
  padding: 20px;
}

.editor-container.open .editor-content {
  opacity: 1;
}

/* Notes Inputs */
.notes-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.notes-inputs input {
  width: 70px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 1.125rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.1s;
}

.notes-inputs input:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.notes-inputs input.focused {
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 102, 170, 0.3);
}

/* Piano Keyboard */
.piano-keyboard {
  position: relative;
  width: 625px;
  max-width: 100%;
  height: 100px;
  margin: 40px auto;
  display: flex;
}

.piano-key {
  cursor: pointer;
  transition: all 0.05s;
  position: relative;
}

.piano-key.white {
  width: 12px;
  height: 80px;
  background: #e8e8e8;
  border: 1px solid #888;
  border-radius: 0 0 2px 2px;
  z-index: 1;
}

.piano-key.white:hover {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.piano-key.black {
  width: 8px;
  height: 50px;
  background: #111;
  border: 1px solid #222;
  border-radius: 0 0 2px 2px;
  margin-left: -4px;
  margin-right: -4px;
  z-index: 2;
}

.piano-key.black:hover {
  background: #222;
  box-shadow: 0 0 10px rgba(204, 102, 255, 0.5);
}

/* Details Section */
.details {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

.details p {
  margin-bottom: 16px;
}

.details a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: text-shadow 0.1s;
}

.details a:hover {
  text-shadow:
    -1px 0 rgba(255, 0, 0, 0.5),
    1px 0 rgba(0, 255, 255, 0.5),
    0 0 10px var(--accent-cyan);
}

.home-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(204, 102, 255, 0.1);
  border: 2px solid var(--accent-purple);
  border-radius: 2px;
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.1s;
}

.home-link:hover {
  background: rgba(204, 102, 255, 0.2);
  box-shadow: 0 0 15px rgba(204, 102, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .binary-display-large {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .notes-inputs {
    gap: 8px;
  }

  .notes-inputs input {
    width: 60px;
    font-size: 1rem;
  }

  .piano-keyboard {
    width: 100%;
    overflow-x: auto;
  }

  .editor-container.open {
    min-height: 600px;
  }
}
