/* MAIN LAYOUT */
.qm-container {
    display: flex;
    max-width: 1300px;
    margin: 30px auto;
    gap: 60px;
}

/* LEFT PANEL */
.qm-board-panel {
    display: flex;
    gap: 25px;
    padding-top: 20px;
}

.qm-title {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 32px;
    font-weight: 900;
    color: #005bbb;
}

/* BUTTONS LEFT */
.qm-controls-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 60px;
}

.qm-controls-left button {
    padding: 12px;
    font-size: 22px;
    border-radius: 8px;
    border: 2px solid #005bbb;
    background: white;
    cursor: pointer;
    width: 60px;
}

/* BOARD */
.chessboard-wrapper {
    position: relative;
    width: 650px;
    height: 650px;
}

.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    border: 4px solid #005bbb;
    border-radius: 10px;
    overflow: hidden;
}

.square {
    position: relative;
    width: 100%;
    height: 100%;
}

.square.light {
    background: #f0d9b5;
}

.square.dark {
    background: #b58863;
}

/* PIECES */
.square img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.25s ease-in-out;
}

/* TEXTURE GREEN */
.square.path {
    background-image: url("/static/img/highlights/light_green_square.png");
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 3px #32cd32;
}

/* NOTATION */
.files-top,
.files-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #005bbb;
}

.ranks-left,
.ranks-right {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: #005bbb;
}

.ranks-left {
    left: -25px;
}

.ranks-right {
    right: -25px;
}

/* RIGHT PANEL */
.qm-info-panel {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 6px solid #005bbb;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.qm-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qm-btn {
    background: #005bbb;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.qm-btn:hover {
    background: #0077dd;
}

.qm-text-block {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.qm-voice-panel {
    margin-top: 25px;
    font-size: 16px;
}

/* PRIZES */
.qm-prizes {
    margin-top: 20px;
    font-size: 16px;
    color: #005bbb;
}
