/**
 * Board Styles
 * Customizations for chess boards (chessboard.js)
 */

/* Override chessboard.js default styles */
.board-b72b1 {
    border: none !important;
}

/* Square Colors */
.white-1e1d7 {
    background-color: #f0d9b5 !important;
}

.black-3c85d {
    background-color: #b58863 !important;
}

/* Piece Images - Ensure proper sizing */
.piece-417db {
    background-size: cover !important;
}

/* Mini Board Specific Styles */
.mini-board .board-b72b1 {
    border-radius: var(--border-radius);
}

/* Square highlighting (optional, for future features) */
.highlight-square {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 0, 0.6);
}

/* Notation Labels */
.notation-322f9 {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}

/* Preview Board Container */
#preview-board {
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Board Sizing */
@media (max-width: 768px) {
    #preview-board {
        max-width: 300px;
    }

    .notation-322f9 {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    #preview-board {
        max-width: 100%;
    }
}

/* Loading State for Boards */
.board-loading {
    position: relative;
    opacity: 0.5;
}

.board-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid var(--primary-color);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
}

/* Smooth board transitions */
.board-b72b1 {
    transition: all 0.3s ease;
}

/* Piece shadow for better visibility */
.piece-417db {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Board border styling */
.mini-board .board-b72b1,
#preview-board .board-b72b1 {
    box-shadow: var(--box-shadow);
}
