/* Page Layout */
.flashcards-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  gap: 24px;
}

/* Title */
.page-title {
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--accent-color);
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.controls select,
.controls input,
.controls button {
  padding: 6px 10px;
  background: #111;
  color: var(--fg);
  border: 1px solid var(--muted);
  border-radius: 6px;
}

.controls button {
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
  border: none;
  transition: 0.2s ease;
}

.controls button:hover {
  opacity: 0.85;
}

/* Scale display */
.scale-display {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--fg);
}

/* Flashcards Layout */
.flashcards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Card */
.card {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  padding: 14px;
  color: #000; /* cards use HSL background, so text stays readable */
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Chord Name */
.chord-name {
  font-weight: bold;
}

/* Notes row */
.notes {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

/* Individual note */
.note-box {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.9em;
  background-color: #111;
  color: var(--fg);
  border: 1px solid var(--muted);
  white-space: nowrap;
}

/* Characteristic highlight */
.note-box.characteristic,
.scale-characteristic {
  border: 2px solid var(--accent-color);
  background-color: #1a1a1a;
  box-shadow: 0 0 8px rgba(255,159,26,0.6);
  border-radius: 8px;
  padding: 3px 8px;
}

/* Tooltip */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: var(--fg);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  border: 1px solid var(--accent-color);
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
}

