/* ==========================================================================
   JB AtlaZZ | Version 210 | css/personalization.css
   Created by Dean Senecal and Sparky
   Purpose: Appearance settings, section styles, preview and layout
   Documentation updated: 2026-10-20
   Original creation date: not independently verified
   Maintenance: edit the named sections; keep change history in README_VERSION_210.txt
   ========================================================================== */

/* --- Personalization controls ---
   Maintenance: Styles the settings panel; rendering logic is in personalization.js.
*/
/* --- Window and split-panel dimensions ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
#personalization-root {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  background: #dbdbdb;
  font-family: Arial,Helvetica,sans-serif;
}

#personalization-root.open {
  display: block;
}

.pers-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pers-header {
  margin: 5px 10px 0;
  padding: 10px 16px;
  border-radius: 7px;
  background: #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Settings controls and input rows ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-title {
  font-size: 20px;
  font-weight: 700;
}

/* --- Additional component styles ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-sub {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
}

/* --- Window and split-panel dimensions ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-header button,.pers-add button,.pers-section-row button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #555;
  color: #fff;
  font-weight: 700;
}

.pers-header .pers-save {
  background: #2e7d32;
  margin-left: 8px;
}

.pers-split {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(430px,46%) 1fr;
  gap: 8px;
  padding: 8px 10px 10px;
}

/* --- Settings controls and input rows ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-controls,.pers-preview {
  min-width: 0;
  overflow: auto;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f7f7f7;
  padding: 12px;
}

.pers-controls h3,.pers-preview h3 {
  margin: 6px 0 9px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.pers-style-row,.pers-section-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 5px;
  border-bottom: 1px solid #e1e1e1;
  font-size: 11px;
}

.pers-style-row strong,.pers-section-row strong {
  width: 105px;
}

.pers-style-row label,.pers-section-row label {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pers-style-row input[type=color],.pers-section-row input[type=color] {
  width: 26px;
  height: 22px;
  border: 0;
  padding: 0;
}

/* --- Additional component styles ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-num {
  width: 52px;
}

.pers-check-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(150px,1fr));
  gap: 5px;
  padding: 8px;
  font-size: 11px;
}

.pers-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 11px;
}

.pers-option select {
  height: 26px;
}

/* --- Settings controls and input rows ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-add {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}

.pers-add input {
  flex: 1;
  min-width: 0;
  padding: 7px;
}

.pers-add button {
  background: #3b8ed0;
  padding: 6px 10px;
}

.pers-section-row button {
  margin-left: auto;
  background: #a33;
  padding: 3px 8px;
}

/* --- Preview and song rendering ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-preview {
  background: #ecece8;
}

/* --- Additional component styles ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-sheet {
  background: #f9f9f6;
  border: 1px solid #d0d0c8;
  border-radius: 4px;
  overflow: auto;
  padding: 20px;
  min-height: 520px;
}

.pers-sheet>div {
  margin: 4px 0;
  white-space: pre-wrap;
}

.pers-demo-music {
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
}

.pers-demo-heading {
  margin: 15px 0 7px;
  padding: 3px 2px;
}

/* --- Preview and song rendering ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-demo-chord-row {
  box-sizing: border-box;
  min-height: 1.35em;
  margin: 3px 0 0;
  white-space: pre;
  overflow-x: auto;
}

.pers-demo-lyric {
  white-space: pre-wrap;
  margin: 0 0 7px;
  line-height: 1.35;
}

/* --- Additional component styles ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-sheet>div.pers-demo-music {
  white-space: normal;
}

/* --- Preview and song rendering ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-demo-chord-token {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pers-demo-chord-row span {
  white-space: pre;
}


/* --- Responsive personalization ---
   Maintenance: Small-screen adjustments.
*/
/* --- Responsive layout ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
@media (max-width:900px) {
/* --- Window and split-panel dimensions ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-split {
  grid-template-columns: 1fr;
}

/* --- Preview and song rendering ---
   Maintenance: selectors below control this part of the personalization interface.
   Change dimensions/colors here; check media-query overrides before adjusting widths.
*/
.pers-preview {
  min-height: 45vh;
}
}
