/* ForgeTune Web — Custom Styles (brand colors preserved) */

:root {
  --accent: #e85d04;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tuner Arc Canvas */
#tuner-arc {
  touch-action: none;
  image-rendering: crisp-edges;
}

/* String Chips */
.string-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  font-size: 15px;
  font-feature-settings: "tnum";
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  min-width: 52px;
  justify-content: center;
}

.string-chip:hover {
  background: #27272a;
  border-color: rgba(255,255,255,0.15);
}

.string-chip.active {
  background: #e85d04;
  border-color: #e85d04;
  color: white;
  box-shadow: 0 4px 12px -2px rgb(232 93 4 / 0.35);
}

.string-chip .play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  margin-left: 4px;
  transition: background 0.1s;
}

.string-chip .play-btn:hover {
  background: rgba(255,255,255,0.25);
}

.string-chip.active .play-btn {
  background: rgba(255,255,255,0.3);
}

.string-chip.active .play-btn:hover {
  background: rgba(255,255,255,0.45);
}

/* Modal buttons */
#instrument-list button,
#tuning-list button {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  transition: background 0.1s;
}

#instrument-list button:hover,
#tuning-list button:hover {
  background: rgba(255,255,255,0.04);
}

#instrument-list button:active,
#tuning-list button:active {
  background: rgba(255,255,255,0.08);
}

/* Segmented control in settings */
#sharps-btn.active,
#flats-btn.active {
  background-color: #27272a;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
  color: white;
}

#sharps-btn:not(.active),
#flats-btn:not(.active) {
  color: #a1a1aa;
}

/* Nice focus rings */
button:focus-visible {
  outline: 2px solid #e85d04;
  outline-offset: 2px;
}

/* Prevent text selection on interactive elements */
#listen-btn, .string-chip {
  -webkit-user-select: none;
  user-select: none;
}

/* Subtle animation for the needle */
#tuner-arc {
  transition: filter 0.2s ease;
}

/* Responsive tweaks */
@media (max-width: 420px) {
  #note-name {
    font-size: 62px !important;
  }
}

/* New tighter mock-style elements */
.string-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 9999px;
  background: #27272a;
  border: 1px solid #3f3f46;
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
}
.string-chip.active {
  background: #e85d04;
  border-color: #e85d04;
  color: white;
}
.string-chip .play-btn {
  background: rgba(255,255,255,0.15);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}
.string-chip.active .play-btn {
  background: rgba(255,255,255,0.35);
}

#metro-arc, #tuner-arc {
  touch-action: none;
}

#chord-fretboard {
  background: #111113;
  border-radius: 12px;
  display: block;
}

/* Ensure brand orange is used for key interactive elements */
#tuner-listen-btn,
#metro-play {
  background-color: #e85d04;
}
#tuner-listen-btn:hover,
#metro-play:hover {
  background-color: #f97316;
}
