/* Chess Board & Pieces Styles */

.chess-board-container {
    display: flex;
    justify-content: center;
}

.chess-board {
    display: flex;
    flex-direction: column;
    border: 5px solid #555;
    background-color: #555;
}

/* Small Board Size (for cards) */
.chess-board.small {
    width: 320px;
    height: 320px;
}

/* Large Board Size (for piece detail) */
.chess-board.large {
    width: 400px;
    height: 400px;
}

.rank {
    display: flex;
    flex: 1;
}

.square {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
}

.square.light {
    background-color: #f0d9b5;
}

.square.dark {
    background-color: #b58863;
}

/* Pieces */
.chess-piece {
    width: 80%;
    height: 80%;
    cursor: default;
    user-select: none;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chess-piece img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.piece-text {
    /* Fallback text style if SVGs fail or not used */
    font-size: 1.5rem;
}

.piece-white.piece-text {
    color: #fff;
    text-shadow: 0 0 2px #000;
}

.piece-black.piece-text {
    color: #000;
    text-shadow: 0 0 1px #fff;
}

/* Visualization Markers */
.target-square {
    /* Optional: highlight background of valid moves */
    /* background-color: rgba(0, 255, 0, 0.2) !important; */
}

.move-marker {
    width: 30%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.move-marker.slide {
    width: 40%;
    height: 40%;
    border-radius: 0;
    /* Triangle pointing UP */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    /* Adjust vertical alignment slightly since it's a triangle */
    margin-top: -5%; 
}

/* SVG Arrows (future implementation container) */
.board-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}
