/* Chess Game Styles */

.game-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.game-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.player-info {
    width: 600px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #769656;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.player-details {
    flex: 1;
}

.player-name {
    font-weight: bold;
    font-size: 18px;
}

.player-time {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.move-history {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.move-history h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.moves-table {
    width: 100%;
    border-collapse: collapse;
}

.moves-table tr {
    border-bottom: 1px solid #e9ecef;
}

.moves-table td {
    padding: 8px 12px;
}

.moves-table td:first-child {
    font-weight: bold;
    color: #666;
    width: 50px;
}

.moves-table td:nth-child(2),
.moves-table td:nth-child(3) {
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

#game-status {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-board-container {
        width: 100%;
    }
    
    #chess-board {
        width: 100% !important;
        max-width: 400px !important;
    }
    
    .player-info {
        width: 100%;
        max-width: 400px;
    }
    
    .move-history {
        max-width: 400px;
    }
}

/* Waiting screen styles */
.waiting-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.waiting-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waiting-hint {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.status-waiting {
    color: #f59e0b;
}
