/**
 * Chord highlighting styles for acorduri text content
 */

strong.chord {
    font-weight: 700;
    color: #2a7b99;
    cursor: pointer;
}

/* Chord diagram tooltip */
.chord-tooltip {
    position: absolute;
    background: white;
    border: 2px solid #2a7b99;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: monospace;
    min-width: 200px;
}

.chord-tooltip.show {
    opacity: 1;
}

.chord-diagram {
    text-align: center;
}

.chord-name {
    font-weight: bold;
    font-size: 18px;
    color: #2a7b99;
    margin-bottom: 8px;
}

.chord-fretboard {
    display: inline-block;
    border: 1px solid #ccc;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
    position: relative;
}

.fret-grid {
    display: flex;
    flex-direction: column;
}

.fret-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.fret-row:last-child {
    margin-bottom: 0;
}

.fret-numbers {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

.string-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 2px;
    width: 20px;
}

.string-name {
    width: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-left: 2px;
}

.fret {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    margin: 0 1px;
    position: relative;
    background: white;
}

.fret.empty {
    background: transparent;
}

.fret.pressed {
    background: #2a7b99;
    border-radius: 50%;
    position: relative;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
    line-height: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}


.fret.muted::after {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4444;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.chord-diagram-error {
    color: #ff4444;
    font-style: italic;
    padding: 10px;
}