/* notation.css - Notation panel and move tree styling */

#notationPanel {
    min-width: 400px;
    max-width: 400px;
    width: 400px;
    height: 640px;
    background: linear-gradient(to bottom, #1a1a1a, #111);
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    margin-left: 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    color: #ddd;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#notationPanel.collapsed {
    display: none;
}

#titleContainer {
    flex-shrink: 0;
    position: relative;
}

.notation-title {
    padding: 14px 0 10px 0;
    text-align: center;
    font-size: 1.1em;
    border-bottom: 1px solid #2d2d2d;
    background: transparent;
    color: #ccc;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
    font-weight: normal;
}

#notationMoves {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    font-size: 1em;
    color: #eee;
}

/* Custom scrollbar styling for notation */
#notationMoves::-webkit-scrollbar {
    width: 8px;
}

#notationMoves::-webkit-scrollbar-track {
    background: transparent;
}

#notationMoves::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

#notationMoves::-webkit-scrollbar-thumb:hover {
    background: #444;
}

#notationMoves::-webkit-scrollbar-button {
    display: none;
}

.move {
    color: #eee;
    margin-right: 8px;
}

.move-num {
    color: #ffe066;
    margin-right: 4px;
    font-weight: bold;
    display: inline-block;
}

.move-line {
    margin-bottom: 8px;
}

/* Move tree node styling */
.move-tree-node {
    color: #fff;
    font-size: 1em;
    margin-bottom: 2px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.move-tree-node:hover {
    background: rgba(255, 255, 255, 0.1);
}

.move-tree-node.current-move {
    background: #444;
    color: #eee;
    border-radius: 6px;
    border-left: 3px solid #2ecc71;
}

.move-pair {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.move-number {
    min-width: 30px;
    color: #ffe066;
    font-weight: bold;
    margin-right: 8px;
}

/* White move container for alignment */
.move-pair > span:nth-child(2) {
    min-width: 100px;
}

.analysis-separator {
    border-bottom: 1px solid #2d2d2d;
    margin: 0 0 0 0;
    height: 0;
}

#openingName {
    padding: 10px 0 10px 12px;
    color: #ccc;
    font-size: 0.8em;
    text-align: left;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', sans-serif;
}

/* Panel controls */
#collapseIcon:hover {
    opacity: 1 !important;
}

#expandIcon:hover {
    opacity: 1 !important;
}

/* Container layout */
#openingContainer {
    flex-shrink: 0;
}
