/* ==== VoiceMuse — app styles ==== */
/* Accent override, song card layout, range slider styling, copy-per-section buttons. */

:root {
  --accent: #c026d3;
  --accent-contrast: #ffffff;
}

/* ---- Utility helpers used in markup ---- */
.flex-1 { flex: 1; min-width: 0; }
.gap-2 { gap: var(--space-2); }

/* ---- Chip group (genre select) ---- */
.chip-group {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.chip {
  min-height: 44px;
}
.chip[aria-checked="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* ---- Range slider ---- */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%; height: 6px; background: var(--border); border-radius: 999px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; background: var(--accent);
  border-radius: 50%; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer;
  border: none; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* ---- Song sections ---- */
.section-row {
  border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-3); margin-bottom: var(--space-3); background: var(--surface);
}
.section-head {
  display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2);
}
.section-head h4 { font-size: 14px; font-weight: 700; }
.section-head .section-genre { font-size: 11px; font-weight: 600; color: var(--accent); margin-left: auto; }
.section-lyrics { white-space: pre-line; color: var(--text-2); line-height: 1.5; }
.section-actions { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.section-actions button { flex: 1; min-height: 36px; padding: 0 var(--space-2); font-size: 12px; border-radius: var(--radius-s); }

/* ---- Title chips ---- */
#title-options { display: flex; gap: var(--space-2); flex-wrap: wrap; }
#title-options .chip { flex: 1; min-width: 0; min-height: 44px; }

/* ---- Style prompt ---- */
#style-prompt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* ---- Songbook list item actions ---- */
.song-item { position: relative; }
.song-item-actions { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); display: flex; gap: var(--space-1); opacity: 0; transition: opacity .15s; }
.song-item:hover .song-item-actions, .song-item:focus-within .song-item-actions { opacity: 1; }

/* ---- RTL ---- */
[dir="rtl"] .section-lyrics { text-align: right; }
[dir="rtl"] .section-head { flex-direction: row-reverse; }
[dir="rtl"] .section-head .section-genre { margin-left: 0; margin-right: auto; }
