/* ========================================
   Chord sheet display & editor styles
   ======================================== */

.chord-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.chord-controls label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.transpose-controls { display: flex; align-items: center; gap: 8px; }
.transpose-btn {
    font-size: 1rem;
    font-weight: 700;
    min-width: 32px;
    padding: 4px 10px;
}
.transpose-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.current-key {
    font-weight: 800;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
    color: var(--accent);
}

/* ---- Lyrics ---- */
.lyrics-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.lyrics-section { margin-bottom: 24px; }
.lyrics-section:last-child { margin-bottom: 0; }

.chorus-section {
    padding-left: 20px;
    border-left: 3px solid var(--chorus-border);
    margin-left: 4px;
}

.section-label {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.lyric-line { position: relative; margin-bottom: 2px; }

.chord-line {
    display: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: pre;
    min-height: 1.3em;
    user-select: none;
}

.text-line { white-space: pre-wrap; word-break: break-word; }

/* ---- Chord Editor ---- */
.chord-editor-page { max-width: 820px; margin: 0 auto; }
.chord-editor-page h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.chord-editor-page h2 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.editor-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.chord-editor {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.editor-section { margin-bottom: 24px; }
.editor-section:last-child { margin-bottom: 0; }
.editor-line { position: relative; margin-bottom: 2px; }

.editor-chord-line {
    display: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: pre;
    min-height: 1.3em;
}

.editor-text-line {
    white-space: pre-wrap;
    cursor: crosshair;
    padding: 2px 0;
    border-radius: 3px;
    transition: background 0.1s;
}
.editor-text-line:hover { background: var(--accent-soft); }

.chord-input-popup { position: absolute; top: -30px; z-index: 50; }
.chord-input {
    padding: 4px 8px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-xs);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-card);
    width: 80px;
    box-shadow: var(--shadow-lg);
}
.chord-input:focus { outline: none; }

/* ---- Fullscreen chord display ---- */
.fs-chord-line {
    color: var(--accent);
    font-weight: 700;
    font-size: 2.4rem;
    white-space: pre;
    min-height: 1.3em;
    user-select: none;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.fs-text-line {
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .fs-chord-line {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .fs-chord-line {
        font-size: 2.8rem;
    }
}
