/* Chess-specific styles */
.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-darker);
}

.chess-square {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.chess-piece {
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

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

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

.chess-piece.black {
    color: #000;
    text-shadow: 0 0 2px #fff, 0 0 4px #fff;
}

/* Game status */
.game-status {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 10px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid var(--primary-color);
}

/* Player info */
.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 10px;
    margin: 15px 0;
    border: 1px solid var(--primary-color);
}

.player-name {
    font-weight: bold;
    color: var(--primary-color);
}

/* OBS-specific styles */
.obs-chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100vh;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 0, 0, 0.3);
}

.obs-player-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    font-size: 14px;
    z-index: 100;
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.obs-game-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    font-size: 14px;
    z-index: 100;
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Animations */
@keyframes highlight-square {
    0% { background-color: rgba(255, 255, 0, 0.3); }
    100% { background-color: rgba(255, 255, 0, 0); }
}

.highlight {
    animation: highlight-square 1s ease-out;
}

/* Move history */
.move-history {
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-md);
    padding: 10px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--primary-color);
}

.move-history-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.move-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.move-item {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.move-number {
    width: 30px;
    font-weight: bold;
    color: var(--text-secondary);
}

.move-white, .move-black {
    flex: 1;
    padding: 0 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .chess-piece {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .chess-piece {
        font-size: 1.5rem;
    }
}