/**
 * Chess Game Styles
 */

.chess-board {
    display: inline-block;
    border: 4px solid #4a3728;
    border-radius: 4px;
    background: #4a3728;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chess-row {
    display: flex;
}

.chess-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}

.chess-cell-light {
    background: #f0d9b5;
}

.chess-cell-dark {
    background: #b58863;
}

.chess-piece {
    font-size: 46px;
    cursor: pointer;
    transition: transform 0.15s;
    user-select: none;
    line-height: 1;
}

.chess-piece:hover {
    transform: scale(1.1);
}

.chess-white-piece {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chess-black-piece {
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.chess-selected {
    background: #829769 !important;
    box-shadow: inset 0 0 0 3px #6d8a4e;
}

.chess-valid-move {
    position: relative;
}

.chess-valid-move::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.chess-capture-move {
    position: relative;
}

.chess-capture-move::after {
    content: '';
    position: absolute;
    width: 54px;
    height: 54px;
    border: 4px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    pointer-events: none;
    box-sizing: border-box;
}

.chess-last-move {
    background: #cdd26a !important;
}

.chess-cell-dark.chess-last-move {
    background: #aaa23a !important;
}

.chess-info {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.chess-captured {
    margin-bottom: 12px;
}

.chess-captured-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.chess-captured-label {
    font-size: 13px;
    color: #666;
    min-width: 100px;
}

.chess-captured-pieces {
    font-size: 20px;
    letter-spacing: 2px;
}

.chess-status {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.chess-your-turn {
    color: #2e7d32;
}

.chess-waiting {
    color: #666;
}

.chess-winner {
    color: #1565c0;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 600px) {
    .chess-cell {
        width: 44px;
        height: 44px;
    }

    .chess-piece {
        font-size: 34px;
    }

    .chess-valid-move::after {
        width: 14px;
        height: 14px;
    }

    .chess-capture-move::after {
        width: 40px;
        height: 40px;
    }

    .chess-captured-pieces {
        font-size: 16px;
    }
}
