/*
 * CSS for FishyFEN - Board Editor
 * This file contains all styling for the application.
 */

body {
    font-family: 'Inter', sans-serif;
}
.chess-piece-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
}
.board-flipped .square .chess-piece-img {
    transform: none;
}
.square.movable-piece,
#main-app-container.edit-mode .square {
    cursor: pointer;
}
.selected-square {
    background-color: rgba(255, 235, 59, 0.75) !important;
    box-shadow: inset 0 0 0 3px rgba(255, 235, 59, 1);
}
.possible-move-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    z-index: 10;
}
.in-check-square {
    background-color: rgba(255, 0, 0, 0.5) !important;
    box-shadow: inset 0 0 0 3px rgba(255, 0, 0, 0.8);
}
#chessboard.board-flipped {
    transform: rotate(180deg);
}
#chessboard.board-flipped .square {
    transform: rotate(180deg);
}
#main-app-container.edit-mode {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
#main-app-container.edit-mode #toggle-edit-button {
    background-color: #ef4444; /* red-500 */
}
.palette-item {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    padding: 2px;
}
.palette-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.palette-item.selected-piece {
    background-color: #60a5fa; /* blue-400 */
    border-color: #2563eb; /* blue-600 */
}
.palette-item img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.turn-selector.selected-turn {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    border-color: #1d4ed8; /* blue-700 */
}
