/* (B) OPTIONAL - CELLS */
.head, .cell { padding: 6px; }
.head {
  font-weight: 700;
  border: 1px solid #3a260ea5;
  background: #ac890ac0;
  /*background: #c42727cc;*/
}
.cell {
  border: 1px solid #928b0be4;
  background: #cc942d;
  height: 10px;
  /*background-image: url('fret.png');*/
}

/* Make Notes and Chords entries look like push buttons */
#Notes .cell,
#Chords .cell {
  background: linear-gradient(#fff6dc, #ffd27a);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 40px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #104a8a;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease;
  margin: 2px;
}

/* Force Notes and Chords to be a single horizontal row of buttons */
#Notes.grid-horizontal-list,
#Chords.grid-horizontal-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

#Notes .cell:hover,
#Chords .cell:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 6px 10px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}

#Notes .cell:active,
#Chords .cell:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Button-like appearance only for Notes and Chords lists */
#Notes .notecell,
#Chords .notecell {
  background: linear-gradient(#ffd27a, #cc942d);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
}

#Notes .notecell:hover,
#Chords .notecell:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 6px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

#Notes .notecell:active,
#Chords .notecell:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12), inset 0 2px 4px rgba(0,0,0,0.08);
}

#Notes .notecell.selected-note,
#Chords .notecell.selected-chord {
  color: #e8e7dfe4;
  background-color: #144b03e4;
  background: linear-gradient(#47b226e4, #144b03e4);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
}

.spacer {
  height: 2px;
}

/* Tool button active state */
#Tools .deployed {
  background-color: rgb(4, 104, 4);
  color: orange;
}

.PlatHead {
  font-size: 0.95rem;
  text-align: center;
  background-color:bisque;
  color: black;
  padding: 4px 6px;
}

/* thin gray divider used between sections */
.section-divider {
  height: 1px;
  background-color: #cccccc;
  width: 100%;
  margin: 6px 0;
}

/* Layout wrapper: platter + left string-number column */
.platter-wrapper {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 6px 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.string-column {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 48px;
  min-width: 32px;
}

.string-column .strcell {
  min-width: 34px;
  height: 34px;
  text-align: center;
  color: #111;
  background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
  border: 1.5px solid #555;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-weight: 600;
  box-shadow: none;
  margin-bottom: 0;
}

.string-column .head {
  min-width: 34px;
  height: 34px;
  text-align: center;
  color: #111;
  background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
  border: 1.5px solid #555;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-weight: 700;
}

.ChordNotesHeader {
  text-align: center;
}

.platter-header-row {
    display: grid;
    grid-gap: 1px;
    min-width: 30px;
    min-height: 30px;
    height: 30px;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}

.platter-header-row .head {
    background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #222;
    border: 1.5px solid #555;
    box-shadow: none;
    text-shadow: none;
    font-weight: 700;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#Platter {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Wood background + carved-on-wood cell styles */
#Platter {
  background-color: #7a5a41;
  background-image:
    url('wood.jpg');
    /*linear-gradient(180deg,#5a3b22 0%, #2b1f13 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, rgba(0,0,0,0.02) 2px 14px); */
  background-size: cover, cover, 14px 100%;
  background-blend-mode: multiply, normal, overlay;
  border-radius: 6px;
  padding: 6px;
  box-shadow: inset 0 8px 40px rgba(0,0,0,0.35);
}

/* make platter cells appear written/painted on wood */
#Platter .notecell,
#Platter .cell,
#Platter .strcell {
  background: rgba(150, 95, 44, 0.386);
  color: #efe6d6;
  border: 1px solid rgba(0, 0, 0, 0.252);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

/* helper classes for visual fret separators */
#Platter .fret-zero { border-right: 4px solid black; }

#Platter .fret-twelve { border-right: 4px solid white; }

/* chord-note overlay to remain readable */
#Platter .chord-note {
  background: rgba(39, 104, 19, 0.28);
  color: #fff7e6;
  border: 1px solid rgba(0,0,0,0.7);
}

/* Tool button active state */
#Platter .deployed {
  /* background-color: rgb(4, 104, 4); */
  color: orange;
}

/* Optional utility class: apply higher-fidelity texture blending */
#Platter.texture { background-blend-mode: multiply; }

/* (A) GRID LAYOUT */
.grid {
  display: grid;
  grid-gap: 1px;
  min-width: 30px;
  min-height: 24px;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.grid-horizontal-list {
  text-align: center;
}

/* row with a label and its control (label + list side-by-side) */
.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.notecell {
  border: 1px solid #928b0be4;
  background: #cc942d;
  min-width: 30px;
  height: 30px;
  text-align: center;
  color: blue;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Remaining are reactive settings */
.candidateSharp {
  border: 1px solid #928b0be4;
  background: orange;
  /*background-image: url('ArrowR.png'); */
}

.candidateFlat {
  border: 1px solid #928b0be4;
  background: orange;
  /*background-image: url('ArrowL.png');*/
}

/* Association label and content inserted into candidate cells */
.assoc-label {
  height: 10px;
  font-size: x-small;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assoc-label.assoc-left { text-align: left; }
.assoc-label.assoc-right { text-align: right; }
.assoc-content {
  height: 20px;
  font-size: medium;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* chord-note (the note that is part of the selected chord) */
.chord-note {
  border: 1px solid #928b0be4;
  color: #e8e7dfe4;
  background-color: #144b03e4;
}

/* Hover and selection states for buttons */
.cell.hover {
  color: #e8e7dfe4;
  background-color: #144b03e4;
}

/* soften candidate markers to fit wood look */
.candidateSharp, .candidateFlat {
  background: rgba(255,165,0,0.20);
  border: 1px solid rgba(0,0,0,0.6);
}
